Re: e2fsck...

Riley Williams (rhw@bigfoot.com)
Thu, 12 Nov 1998 15:42:59 +0000 (GMT)


Hi Mo.

>> if i wanna repair a partition an old slackware boot disk comes in
>> handy :)

> So let me get this straight, If I want to check my file system for
> errors there is no problems, but if I want to fix any errors found
> I have to reboot via a boot disk, and then e2fsck the now unmounted
> drive ?

> If true (makes sense since it is a multitasking environment), then
> this is not so good for my internet gateway, which may have some
> corruption. But hey no use winging about it.

The other alternative is to remount the partition in question as
read-only using the following command...

mount -o remount,ro PART

...where PART is the partition in question. The partition can then be
safely e2fsck'd and then re-remounted as rw by omitting the ",ro" in
the above...

Best wishes from Riley.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/