need FSCK help!

Lonni J Friedman netllama at gmail.com
Mon Oct 2 16:59:51 UTC 2006


On 10/2/06, Claude Jones <claude_jones at levitjames.com> wrote:
> I'm getting the following in my system log:
>
> Oct  2 12:43:53 tehogee smartd[2509]: Device: /dev/sda, 1
> Currently unreadable (pending) sectors
> Oct  2 12:43:53 tehogee smartd[2509]: Device: /dev/sda, 1 Offline
> uncorrectable sectors
>
> many, many, of them
> /dev/sda contains my /boot and / mounts
> /home is mounted on a separate drive
>
> How can /dev/sda be "Offline" since this is the machine I'm typing
> this message on???
>
> Is FSCK the right tool for this? If so, I can't figure out how to
> run it on /dev/sda since, if I read correctly, the mount has to
> be unmounted - presumably, I need to do this from a rescue disk?
>
> I've searched on this in the past, but was never able to find a
> good explanation of how it's donw. If someone can give me one, or
> point to a good document, I would be grateful

you can run fsck on a read-only partition, it doesn't have to be
unmounted.  Reboot into single user mode, and remount each partition
on /dev/sda readonly:
mount -o remount,ro $mountpoint

and then you can fsck them.  Good luck, hope you have backups.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       http://netllama.linux-sxs.org




More information about the fedora-list mailing list