Bill Jonas on Sat, 26 Jan 2002 23:40:14 +0100


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

Re: [PLUG] EXT2-fs error


On Fri, Jan 25, 2002 at 11:26:48PM -0500, Martin DiViaio wrote:
> In order to run e2fsck on your root partition you need to boot from some
> sort of rescue disk with e2fsck on it and run it from there while
> /dev/hda1 is unmounted.

Or you could remount / read-only, which generally involves booting into
single-user mode or switching to single-user mode and shutting down
processes which may be writing to the disk.

If you're going to reboot afterward (though it's not strictly necessary)
you'll probably want to look at the -f and -n options to mount.  (I
think that most distributions' shutdown scripts do it this way, using
two calls to mount(8), else you'd be greeted with an fsck on boot every
time.)

-- 
Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/

Developer/SysAdmin for hire!   See http://www.billjonas.com/resume.html

Attachment: pgpUUrArmyNgw.pgp
Description: PGP signature