LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2007, 11:02 AM   #1
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 179

Rep: Reputation: 30
Please help me recover from Hard Drive failure...


Hello all,

I have had a catastrophic hard drive failure. I hope that I can recover at least partially but I am going to need step-by-step instructions I'm afraid.

This is my situation.

I have (had) two Maxtor drives.
One was a 60Gb with 3 partitions (1 NTFS with Win XP, 2 FAT32 partitions with data).
The other was a 200Gb with 11 extended partitions containing my real stuff (Fedora Core 6, FC5, Ubuntu, /home and others).

Now I backed each drive up onto the other figuring that the likelihood of both drives failing simultaneously would be remote - and... guess what???

OK, OK, please stop - I'm embarrassed enough as it is...

It seems that the 60Gb is truly dead. If plugged in it emits a plaintive beeping sound and will not even register with the Bios as existing at all. I may need specialist help to get stuff off it (any suggestions?).

The 200Gb - when I tested it with a Maxtor/Seagate utility - said it was failing and must be replaced. Knoppix could not read any of the partitions. However, having run another Maxtor/Seagate utility it found 31 errors which it fixed. It now "certifies" the drive as good. My /home partition is now readable under knoppix (Yay!) and so are a couple of the others (including my old FC5 partition). Unfortunately however one of the partitions that will not mount is my FC6 one - my primary OS. I have invested a great deal of time on the configuration / setup of this and would really like to be able to access at least the config files, crontab, SSH keys and root scripts that I have created since I switched from FC5.

Now for some good news (well at least I hope it'll help some of you gurus to help me...) Many moons ago when I created the partition structure I ran a shell command (which I cannot now remember) and piped the output to a file which I then edited to put some notes on. Mercifully that has remained intact and is in /home. Here it is:
Code:
Model: Maxtor 6Y060L0 (ide) 
Disk /dev/hda: 61.5GB 
Sector size (logical/physical): 512B/512B 
Partition Table: msdos 

Number  Start   End     Size    Type     File system  Flags   Note 
 1      32.3kB  21.5GB  21.5GB  primary  ntfs         boot    /ntfs 
 2      21.5GB  43.0GB  21.5GB  primary  fat32            /windata    
 3      43.0GB  61.5GB  18.5GB  primary  fat32                /newdisk 



Model: Maxtor 6Y200P0 (ide) 
Disk /dev/hdb: 204GB 
Sector size (logical/physical): 512B/512B 
Partition Table: msdos 

Number  Start   End     Size    Type      File system  Flags   Note 
 3      32.3kB  204GB   204GB   extended                       /Extended Partition (Holds all others) 
11      96.8kB  10.5GB  10.5GB  logical   ext3                 /FC6 (Current)          
12      10.5GB  21.0GB  10.5GB  logical   ext3                 /Free 
13      21.0GB  31.5GB  10.5GB  logical   ext3                 /Free 
14      31.5GB  41.9GB  10.5GB  logical   ext3                 /Free 
15      41.9GB  53.4GB  11.5GB  logical   ext3                 /Free 
 8      53.4GB  65.0GB  11.6GB  logical   ext3         boot    /Vmware Virtual Machines 
 5      65.0GB  75.5GB  10.5GB  logical   ext3                /FC5            
 9      75.5GB  86.0GB  10.5GB  logical   ext3                /Home (New)          
10      86.0GB  96.5GB  10.5GB  logical   ext3                /Home (Old) 
 6      96.5GB  203GB   107GB   logical   fat32              /tempstore        
 7      203GB   204GB   526MB   logical   linux-swap          /swap
And here is what it looks like now (sorry not quite same format - if you can tell me how I did the first file I'll re-do it...)

Code:
root@Knoppix:/ramdisk/home/knoppix# fdisk -l 

Disk /dev/hda: 203.9 GB, 203928109056 bytes 
255 heads, 63 sectors/track, 24792 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 

   Device Boot      Start         End      Blocks   Id  System 
/dev/hda3               1       24792   199141708+   5  Extended 
/dev/hda5            7908        9182    10241406   83  Linux 
/dev/hda6           11733       24728   104390338+   b  W95 FAT32 
/dev/hda7           24729       24792      514048+  82  Linux swap / Solaris 
/dev/hda8   *        6498        7907    11325762   83  Linux 
/dev/hda9            9183       10457    10241406   83  Linux 
/dev/hda10          10458       11732    10241406   83  Linux 
/dev/hda11              1        1275    10241343   83  Linux 
/dev/hda12           1276        2550    10241406   83  Linux 
/dev/hda13           2551        3824    10233373+  83  Linux 
/dev/hda14           3825        5099    10241406   83  Linux 
/dev/hda15           5100        6497    11229403+  83  Linux 

Partition table entries are not in disk order
Can I recover at least some of the files from /dev/hda11 (FC6)?

What do I need to do? (Step by step please).

Thanks in advance for your help...

Mark
 
Old 03-24-2007, 12:01 PM   #2
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 609

Rep: Reputation: 32
First of all you should use dd_rescue (which is included in Knoppix) to make a copy of your damaged HDD as those errors get bigger each time the HDD is used.

It should be something like

dd_rescue /dev/hda /dev/hdb

if the hda is the damaged and the hdb is the new drive.

After this is done you can start to rebuild the partitions(table).
 
Old 03-24-2007, 12:12 PM   #3
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 179

Original Poster
Rep: Reputation: 30
OK - Thanks for that. The first problem I have is that the damaged drive is 200Gb - the largest spare drive I have lying around is 20Gb. I only really want to try to recover one(10Gb) partition(and that not full)to begin with. Can I still use dd_rescue ?
 
Old 03-24-2007, 02:34 PM   #4
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 609

Rep: Reputation: 32
well unfortunattely i don`t really have a knoppix here, and i always used to "rescue" whole drives... but i am nearly absolutely sure that it should work with a partition.

mybe its something like

dd_rescue /dev/hda1 /dev/hdb

if hda1 it the damaged one.

maybe you just take a look at man dd_rescue.....
 
Old 03-24-2007, 07:16 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Should not be a problem, you don't necessarily have to use dd rescue, you can just use dd to copy the entire partition to the 20GB drive in a partition of the exact same size. You can also use dd to make an image file of it that you can mount and retrieve files. With dd you can specify where on the drive to start copying and where to end, or specify a specific partition like /dev/hda11. The command to make an exact copy to a partition on another drive of the same size would be something like:

Quote:
dd if=/dev/hda11 of=/dev/hdb1 bs=512 conv=notrunc,noerror
Assuming you have the second drive as slave.

But, also if you have another Linux OS on the same drive that runs, you should be able to add /dev/hda11 to /etc/fstab and read it from another Linux system. (not sure about that, did not have the occasion to try). Here is a link to Awesome's dd tutorials.

http://www.linuxquestions.org/questi...d.php?t=362506
 
Old 03-24-2007, 07:29 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
You must have got a nasty power surge, I had a customer's drive end up like the dead one you described due to a power spike or surge, or power failure, kind of forgot what it was. But when it gave me errors in my trusty work horse computer when I tried to access the data, similar errors you described by the bios, means it won't turn, and you won't get nothing out of it.
Because hard drives are sealed due to the delicate magnetic flux on the platters, opening a drive in a non-filtered environment can ruin the flux. So to get data off the 60GB, means you have to send it to a hard drive manufacturer that has proper lab conditions to take it apart and transfer the platters to another drive body of the same make and model with special equipment etc. And when it is an outdated model, makes it virtually impossible to do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover files from hard drive crawford69 Linux - General 8 03-23-2007 02:14 AM
how to recover data from a dead hard drive mariav Linux - General 3 03-19-2007 06:37 AM
LXer: Recover Data From a dead hard drive using ddrescue LXer Syndicated Linux News 0 11-28-2006 03:03 PM
how do i salvage/recover unerased data on my hard drive? nickleus Linux - General 8 01-19-2006 10:59 AM
How can I recover hard drive on NT and Linux Lynn Linux - Software 1 03-20-2001 02:06 PM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration