use of fschk
Basil Chupin
blchupin at iinet.net.au
Thu Oct 14 13:14:04 UTC 2010
On 14/10/2010 23:20, Joep L. Blom wrote:
> Basil Chupin wrote:
>
>> On 14/10/2010 21:48, Joep L. Blom wrote:
>>
>>> I, have- I hope - a rather simple question.
>>> My HD (1 year old: ATA SAMSUNG HD502HI).
>>> Since several weeks I get kernel errors related to this disk like:
>>> ______________________________________________
>>> ata1.00: error: { UNC } ...: 51 Time(s)
>>> end_request: I/O error, dev sda, sector ...: 6 Time(s)
>>> sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto
>>> reallocat ...: 6 Time(s)
>>> sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descr ...: 6 time(s)
>>> _______________________________________________
>>>
>>> As this disk is the main disk with / and /home etc I cannot unmount it
>>> to perform an fsck when running th system. I assume a live-CD (or
>>> USB-stick) would do the trick But does anybody if there is an easier
>>> method as it is such a hassle, and moreover is the best way to do it?
>>> Thanks in advance,
>>>
>>>
>> Go to init 1 (CTRL-ALT-F3 then do init1) then
>>
>> mount -o remount,ro /dev/sd<X>
>>
>> where the<x> is where the system is installed and perform the fsck (eg,
>> e2fsck /dev/sdX).
>>
>> After the check is finished,
>>
>> mount -o remount, rw /dev/sd<X>
>>
>> then reboot.
>>
>> [NOTE: "-o" is not "-zero" but the letter "o".]
>>
>> BC
>>
>>
> Basil,
> Even better. I didn't think Ubuntu could revert to runlevel 1 as I
> thought they had deemed it wise to get rid of runlevels (more M$-like!)
> but I will try that. I think colins idea is essentially equal but I have
> to look into it.
> By the way why go to terminal 3?? Why not terminal 1.
>
The simple answer is, this is what I wrote down in my "little black
book" and have been doing it because it works for me :-) .
But you are probably quite right - why no go directly to init 1?
The world has changed quite a bit since Noah constructed the Ark so I
have some catching up to do :-) .
Have a look at "man fsck" to see how the modern world handles all this :-) .
BC
--
There comes a time in the affairs of a man when he has to take the bull by the tail and face the situation.
W C Fields
More information about the ubuntu-users
mailing list