Unclean shutdown renders ext2 filesystems unusable
This project has moved to github - see https://github.com/freenas
Brought to you by:
cochard,
mattolander
Logged In: YES
user_id=1466787
I am not sure but I think you want to run e2fsck rather than
fsck.
If you can't get the included e2fsck to work from within
freenas, I had great success bailing my freenas out of this
very same jam by running a liveCD distro (damn small linux)
and running e2fsck from it. (That was before he included
e2fsck in freenas.)
I do recall that I needed some command line switches to make
it work properly. Look around the web for examples, assuming
you are as new to this as I was.
And yes, I saw no problems with UFS drive.
Logged In: YES
user_id=1370551
whole physical disk.
Try to use:
/dev/ad2s1 (for partition 1) in the place
/usr/local/sbin/e2fsck -f -p -y /dev/ad2s1
and send me the result ?
Logged In: YES
user_id=1472664
Sorry I had already gone the live cd route and fixed it
(needed the data).
The point was not the fact that ext2 died, it was that ufs
survived or was automagically fixed.
Can ext2 filesystems be "automagically" fixed ?
Logged In: YES
user_id=1370551
The FreeNAS process is:
1. try to mount the disk
2. If error (can't mount it), launch a fsck
Logged In: YES
user_id=1472664
Sorry for my incorrect identification of the error.
In that case this is an error report to say that it can't be
running the fsck properly on ext2 filesystems (as they
continue to refuse to mount after several re-boots).
Running fsck from a livecd fixed the errors and allowed the
ext2 filesystems to be mounted (this was before you told me
about e2fsck).
(I'm not a bsd/php programmer so sorry for any idiot speak
no harm intended)
Are you by any chance running the same fsck routine against
each filesystem to be mounted? If so could it be that the
fsck you are using in the "startup" looks for fsck_ext2 when
trying to fix an ext2 filesystem rather than the e2fsck you
are using ?
Thus failing to repair the ext2 filesystem ?
Could e2fsck be sym linked to fsck_ext2 ? (If they are
parameter compatible ?)
Logged In: YES
user_id=1370551
Originator: NO
Fixed in 0.68