[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: unattended reboot/fsck



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 "/".

Christian.
-- 
make bzImage, not war


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]