On Wed, Feb 23, 2000 at 03:20:46PM -0700, Cameron Matheson wrote:
> Hey everyone,
> 
> I did a bad configuration in a program, and it completely locked up my
> computer.  I was forced to reboot, and now after fsck checks my hard drive,
> I get the error:
> 
> fsck failed.  Please repair manually and reboot.  Please note
> that the root file system is currently mounted read-only.  To
> remount it read-write:
> 
>   # mount -n -o remount,rw /
> 
> CONTROL-D will exit from the shell and REBOOT the system.
> 
> hda:  status error: status=0x59 { DriveReady SeekComplete DataRequest
> Error }
> hda:  status error: error=0x40 { UnCorrectable Error }, LBAsect=65,
> sector=10
> end_request: I/0 error, dev 03:01, sector 10
> ....
> Give root password for maintenance:
> 
> I don't know what to maintain or how to fix anything.  Please help
> 
> Thanks,
> Cameron Matheson

Looks like you have bad blocks on your harddrive .. 

login with the root password for maintenance

now .. the system is readonly right now .. so you can run fsck .. 

run this :

fsck.ext2 -c /dev/hda?

replace ? with the partition your linux / is mounted on .. ie hda1 hda2 etc 

now .. this is going to run manually .. and better to do so.

You will have to answer "yes" to questions .. etc that fsck asks you. Use common
sense when answering the questions ... 99% of them if not 100% the answer is 
always
yes .. due to it asking you whether to fix things. Depending on the extent of
damage .. you may have to answer alot of yes's to questions.

if there are way too many erros .. you can run :

fsck.ext2 -c -py /dev/hda?    

to answer yes to all questions etc .. but not recommended.

the -c option runs badblocks with fsck, if it finds any bad blocks it will move
them to the "badblocks" inode of the filesystem .. 

Now .. you *may* lose some files if they are on the bad blocks .. but fsck will
try and move them if it can .. 

Once fsck has been run ... you can remount the filesystem read-write by :

mount -n -o remount,rw /

the filesystem should now be clean .. 

probably best then to reboot and see if everything comes back ok.

Good luck .. 

Once drives get badblocks ... i have found that most of the time things only
get worse and more bad blocks appear .. 

I went thru the same a month ago or so .. and I ended up just getting a new
hd .. and doing a clean install ... was time for one anways ;)

Regards,

-- 
[EMAIL PROTECTED]
Anthony Green
B. Information Technology and Communication     http://www.orange.net.au
Orange Internet                                 Level 1, 40 Pacific Highway
Technical Sales Consultant                      St Leonards NSW 2065
Hutchison Telecommunications (Australia) Ltd    Phone: +61-2-99644646
Telecommunications from Hutchison Whampoa Ltd   Fax:   +61-2-99644848

Reply via email to