fsck?

Hello I went to run fsck and I get the following message "/dev/disk/by-id/ata-WDC_WD1200UE-22KVT0_WD-WXE906958552-part6 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)?"

Now I don’t know what this is and where exactly it mounts to,is it something I should ignore?..any help would be appreciated. Thanks

You can’t fsck a mounted partition. Either unmount the partition, or as su, run

shutdown now -rF

and the system will do a reboot and scan.

threatingbehaviour wrote:
> Hello I went to run fsck and I get the following message
> “/dev/disk/by-id/ata-WDC_WD1200UE-22KVT0_WD-WXE906958552-part6 is
> mounted.
>
> WARNING!!! Running e2fsck on a mounted filesystem may cause
> SEVERE filesystem damage.
>
> Do you really want to continue (y/n)?”
>
> Now I don’t know what this is and where exactly it mounts to,is it
> something I should ignore?..any help would be appreciated. Thanks

At the command prompt type: mount

It may be referenced there as /dev/hda6 or possibly /dev/sda6. The six
is the clue - whatever is mounted on partition six is your answer.
Unless you have two disks with a partition with a six in it.

Why are you running fsck? Is your disk blowing errors?


Kevin Miller
Juneau, Alaska
http://www.alaska.net/~atftb
In a recent poll, seven out of ten hard drives preferred Linux.

yeh you cant fsck a mounted partition

Use a live cd then run fsck /dev/sdaX , where is the placeholder for partition number.

alright I’ve checked into it and it seems that the partitions it was complaining about are the home and root directories

Then, since you want to check the root filesystem, your only choice is to run a live OS, like openSUSE LiveCD, gparted Live CD, or run live from USB memory stick.

Once you started the live OS, say the same fsck command. But first find out the device name of the partition you want to check. It could be different, for example, /dev/sda6 may change into /dev/sdb6

I thought more. There is, of course, one more evident option.

You can pull out the hard drive and install it (without mounting) into another computer. There, you do the check.

Thanks but I think I’m gonna go with your first suggestion…as it’s a laptop I’m working on it would be much more trouble than what it’s worth to do the check that way.

also one more thing…is it safe to label a mounted disk?

Probably no, since the mounting procedure might have used the disk’s label, and the OS wouldn’t like a change.