Subject: Re: ext2 support
To: None <netbsd-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-users
Date: 10/30/2005 15:53:09
In article <dk2b2l$1ip$1@sea.gmane.org>,
Stéphane Witzmann  <stephane.witzmann@gmail.com> wrote:
>Hi
>
>After creating then almost filling a 160GB ext2 partition under NetBSD, I
>ran fsck on it. It says "filesystem contains large files but lacks
>LARGE_FILE flag in superblock; fix y/n ?". As far as I know, the partition
>is not readable on NetBSD if this flag is set. So, it is ok to say no ?
>Since I used NetBSD to copy the data, it would probably have told me if
>something was wrong. I mean I don't have large files for which ext2 doesn't
>work unless the flag is turned on... or so I hope.

Setting the large flag only works with 3.0 and current I think.

>So here is question 1 : is the data (it is my backup, I'm trying ext2 so
>that I can also read it on Linux or Windows [there is a driver, which I am
>gonna try soon]) safe or not ?
>
>Now question 2 : every time I fscked this ext2 partition (even before I put
>any data on it), the system hung up soon after fsck returned. The first
>time, it hung up when I synced, and right now (after copying the data) I
>could sync but mount didn't return.
>
>$ fsck.ext2 -f /dev/wd1e
>...
>$ sync
>$ mount
>/dev/wd0a on / type ffs (soft dependencies, local)
>/dev/wdoe on /home type ffs (soft dependencies, local)
>kernfs on /kern type kernfs (local)
>
>At this point, I can type stuff but not switch to another tty.
>This is not a permanent hangup, the system seems to go back to normal a few
>minutes later.

It can take some time to mount a large fs. If you do ps -xl at that time,
what wait channel is the mount process stuck on?

christos