[Voyage-linux] Re: check/repair fs

Gustin Johnson (spam-protected)
Wed Jun 24 00:56:12 HKT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Rawlins - Think Blue wrote:
> Hello Raimund,
> 
> Thanks for all your input so far, I greatly appreciate it! I tried to mount
> the partition a second time however it won't let me, just complains that
> it's busy.
> 
> voyage:~# mount -t ext2 -r /dev/disk/by-label/ROOT_FS /mnt
> mount: /dev/disk/by-label/ROOT_FS already mounted or /mnt busy
> mount: according to mtab, /dev/disk/by-label/ROOT_FS is mounted on /
> 

Actually, you should be creating a mount point under /mnt, using mnt as
a mount point is a bad, bad idea.  mkdir a new directory then try
mounting that.  Also, instead of -r, try "-o ro"

> I'm also not keen to run the e2fsck just yet as I get a horrible warning at
> the start telling me not to do this on a mounted FS. Is there any way to
> have fsck run on the next reboot before the fs is mounted and make any
> repairs it needs to?

tune2fs -c 1 -C 1 /dev/hda1
- -c = max mount count
- -C = mount count

Then reboot.  I am assuming that you have serial access to the device
remotely?  I would reboot once without running the previous command,
just to make sure it reboots.

If you don't have serial access, I would replace the device in the field
and work on this in the lab.  If there is something wrong with the file
system, you might not be able to boot again.

Hth,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpBCSgACgkQwRXgH3rKGfNpaACdGT0tOCVqWXGp8CF92Tc30aN5
DU4AoJ73ybzfqXF/S6DBS8hRqLJD6alG
=2JAM
-----END PGP SIGNATURE-----




More information about the Voyage-linux mailing list