> If I run 'fsck -n /dev/hda3'  I'm told that there are some errors:
> 
>   fsck 1.35 (28-Feb-2004)
>   e2fsck 1.35 (28-Feb-2004)
>   Warning!  /dev/hda3 is mounted.
>   /dev/hda3 was not cleanly unmounted, check forced.
>   Pass 1: Checking inodes, blocks, and sizes
>   Inode 131170, i_blocks is 64, should be 8.  Fix? no

Because it is mounted you're almost guaranteed to encounter errors.  Try
remounting as read-only if you need to, but...

> However, /dev/hda3 is mounted as my root filesystem, so it's not
> simply a case of unmounting it to run fsck to fix the errors.
> 
> I've tried booting of the Gentoo boot disk, but when I do that fsck
> tells me there are no errors on that partition.
> 
> Why the difference?
> How do I fix the errors?
> Why does fsck tell me that the drive wasn't cleanly unmounted? (I
> always shutdown and restarted the system properly)

fsck'ing from the gentoo disk is the best way to go (that's how I always do
it).

The problem I have sometimes is that I tend to do this, mount the drive to
make some changes, then issue the 'reboot' command w/o unmounting it first.
When I forget to unmount it then I'll typically see the 'not cleanly
unmounted' error (and I say 'duh, well I'll have to do that again...').

Dave


--
[email protected] mailing list

Reply via email to