unattended reboot/fsck

Christian evilninja at gmx.net
Fri Mar 18 21:38:04 UTC 2005

On Tue, March 15, 2005 23:45, Tim Allen said:
> with shutdown -F) but I'd also like to make this fsck not require any
> human intervention.

if it's not "/" what is to be checked, then simply unmount the partition,
or mount it readonly and fsck it while you're logged in. if it is "/" you
can only mount it readonly and try to fsck, but be careful letting fsck
"fix" things to quickly. unmounting is really the better choice.

perhaps you can do some nasty chroot tricks to unmount the "real /" on a
running system, but i've never done that.

another solution: setup a new partition (50M) where you populate a working
"/" directory, reboot with "root=/dev/new_partition", then you can check
the real "/".

make bzImage, not war

More information about the Ext3-users mailing list