[Voyage-linux] Re: check/repair fs

Sean (spam-protected)
Wed Jun 24 01:30:31 HKT 2009


If you're writing to a CF card, your filesystem can break. Your CF card 
sectors can wear out. Then the CF card marks them as bad blocks and it 
will show the filesystem as being used up. Don't write to a CF card very 
often.

Sean

Gustin Johnson wrote:
> -----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-----
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
>   




More information about the Voyage-linux mailing list