Solved

Error reading harddisk

Posted on 2004-04-05
10
213 Views
Last Modified: 2010-04-20
Hello Friends

I am Shrinivas, Please help me

I have installed linux in one machine with static ip.but one  morning suddenly that server was hack.i tryed to take backup but it giving error as a mention below

hdb: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdb: read_intr: error=0x40 { UncorrectableError }, LBAsect=20996957, sector=2
end_request: I/O error, dev 03:43 (hdb), sector 2

it can't read data can anyboby solve this problem has my data was very important


Thanks
Shrinivas B G
0
Comment
Question by:sb_gundu
10 Comments
 
LVL 20

Expert Comment

by:Gns
ID: 10755770
This looks a bit ugly.
Can you still boot the machine? If so, can you perhaps use tar or similar to just back up the relevant "user data" to another machine?
Or perhaps this is what you are trying to do... and failing?

If the drive is toast you can do very little.
You could try to get as much as possible from it with dd (either on the raw disk (if=/dev/hdb) or on the raw partition (if=/dev/hdbX)), but you might be looking at a situation where you'll have to rely on other measures to reconstruct your data.
Worst case, you can pay exorbitantly for a "hd rescue firm" to do their best with it... with absolutely no guarantees that they'll get better results than the "dd if=..." would. If the data is gone, due to a headcrash or similaril, then the data is gone.

-- Glenn
0
 
LVL 8

Expert Comment

by:da99rmd
ID: 10756355
I had the same error once then it was a DMA conflict(i think), so i just changed the position of the disks on the IDE cable, after that i started up the box in "linux single" mode and ran a fsck on the disk. Dont know with of these that helped but it solved the problem at lest untill this day :).

/Rob
0
 
LVL 20

Expert Comment

by:Gns
ID: 10756502
... Probably moving the cable!-)... Oxide buildup/marginal contactation... Or even "solving the conflict";-).
We still need feedback as to the actual state of affairs, since the error can have many many causes... Where the worst ones will lead to complete data loss.

-- Glenn
0
 

Author Comment

by:sb_gundu
ID: 10764115
Hello Gns

No i can't boot from  Linux harddisk if i so then also it boot first then it giving error the same which i mention first .I think i want to tell to that while putting linux harddisk as a slave i can see only extended partitions as ext3 but primary partiton i can see but not ext3 format it shows none.

Waiting for reply

Thanks
Shrinivas B G
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Expert Comment

by:neulich
ID: 10787356
hi,
download the slackware iso image (cd1) or any other dist and put in cd. after reboot  you should mount your harddisk with "mount /dev/hdb" (or hdax for partition x) before you enter setup in shell.maybe it's working.
neulich
0
 
LVL 20

Expert Comment

by:Gns
ID: 10796488
Hello Shrinivas and sorry for not getting back to you earlier... Have been very busy lately... and your problem requires some time and thought:-)

neulich is quite correct, if you cannot boot it, you'll need boot something else to try determine the state of your drive. I'd recommend knoppix (http://www.knoppix.net) for this, or if the download is a bit too hefty one could probably get by with a floppy-linux like toms root&boot (http://www.toms.net/rb) or even the rescue mode of the distribution...
The main goal here is to try salvage the data in such a way that you can put it to use on another drive/install... Because it's really not looking up, with the results so far:-/.

In this work, tools like "fdisk -l" and possibly e2fsck will be your friend. One could perhaps try remapping any bad blocks (assuming it's not entirely dead), but that would probably entail reformatting it... so you still need try get it to be "mountable". Note that if you have more than one partition, and the damage is solely on the root partition, then you should perhaps be able to salvage all data onto another drive.

Anyway, do try booting from something else and tell us what you find ... If you have trouble making sense of it, please quote as much info here as you can, and we'll be sure to try help.

-- Glenn

0
 

Author Comment

by:sb_gundu
ID: 10830063
Hello Glenn

Thanks For response.
If i boot from another harddisk of linux then it show 4 partition which i made in that harddisk in that 3 partition show of ext3 format of linux only one partition Unfortunately  in that partition my data is there how can i recover that partition.If i  try to boot from cd then machine hangs up by reading that partition there are lots of bad sector are there can u tell me how can i retrive this partition .please .


Thanks
Shrinivas B G
0
 
LVL 20

Accepted Solution

by:
Gns earned 500 total points
ID: 10832548
Hm, could that perhaps be a linux swap partition? If so, it'll have a partition type id of 0x82 ...
On the "other linux", can you make mountpoints for the partitions and try mount them readonly? The mountpoint is just a directory (preferably empty, since the mount will hide the directory content:-)...
mkdir /crash1
mkdir /crash2
mkdir /crash3
mount -t ext2 -o ro /dev/whateverisappropriate /crash1
...
As you probably know, whateverisappropriate should be hdXY where X is a for primary IDE master, b for primary IDE slave, c for secondary master and Y is partition number (1-4 is "primary partitions... one will be of type "extended" and contain partitions 5-up) etc and sdXY for scsi in a similar way (a, b, c etc is in "order" of bun#, target#, lun# where closest to 0,0,0 will be sda).

If you're unable to mount the partitions/inspect the content/salvage data files, then we're looking at some not-so-fun options: trying to mend the filesystems with e2fsck (with possibility of huge (additional) data loss) or reading each partition with dd onto a file on the "other linux" drive (assuming these is space enough), and then trying to glean the data manually from this file. Not particularily fun at all (I've done this on an ISAM db one upon a time... I also sent the drive to a recovery firm... Who charged me exorbitantly and gave me the exact same data three days to late, together with a huge bill...).

Tell us what you find, or if you need some more clarifications.

-- Glenn
0
 
LVL 4

Expert Comment

by:ngopu
ID: 15668991

No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Accept GNS's comment as answer

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Gopu N
EE Cleanup Volunteer
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now