[WBEL-users] How to run e2fsck on the root file system

Terry trryhend at gmail.com
Fri Apr 1 08:38:44 CST 2005


On Mar 30, 2005 4:43 PM, Kirby C. Bohling <kbohling at birddog.com> wrote:
> On Wed, Mar 30, 2005 at 02:34:04PM -0800, Shapiro, Mark wrote:
> > It appears that I have one or more bad blocks on my root files system on
> > one of my machines running whitebox 3.0.
> >
> >
> >
> > When I run e2fsck /dev/hda5, I get a warning that it is very dangerous
> > to run e2fsck on a mounted file system.
> >
> >
> >
> > However, I don't believe it's possible to unmount /.
> >
> >
> >
> > Is there a safe way to bring the system up so that I can run e2fsck on
> > /.
> >
> 
> The generally way this is done is:
> 
> Go to single user mode, remount it ro, run fsck:
> 
> root# init 1
> root# mount -o remount,ro /dev/hda5
> root# fsck -C /dev/hda5

Yea this is the best, ... but, when finished:

root# mount -o remount,rw /dev/hda5
root# init 3
or 
root# init 5
or whatever...

(If you don't remount rw, it'll hang - be unable to start services,
like syslog etc.)


More information about the Whitebox-users mailing list