View previous topic :: View next topic |
Author |
Message |
luismw Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Jan 2010 Posts: 91
|
Posted: Thu Oct 06, 2011 9:45 am Post subject: Best way to recover data from a dying HDD? |
|
|
Hi, my main computer has severe HDD problems and is unable to boot from that disk. I'm using the System Rescue CD to mount the failing disk, mount an external USB disk and try to copy over as much data as possible.
But here's the thing: the disk kind of works just after power on, but in a couple of minutes it starts failing again. What I'd like to find is a way to ask the system to back up a whole directory, for instance. It should start copying, until the disk fails. The I would cancel the transfer, shut down, wait for the computer to cool off, boot again and issue this same command so that it continues copying were it left off last time. There are many files I'd like to back up and I can't just "cp" each one manually.
I tried using "rsync --partial --inplace" for this purpose, but it seems that I'm misunderstanding the manual because each time I try it, it copies files that have already been backed up, therefore losing valuable time before the disk starts failing.
Any suggestions are very welcome. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chiefbag Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Wiggum.jpg)
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Thu Oct 06, 2011 9:52 am Post subject: |
|
|
Sounds like the disk may not be the issue rather a shady power supply or something.
I would remove the drive totally and replace it with a different one, if that one shows up the same problem then its a hardware issue other then the drive.
Also you could put the existing drive into another machine this will prove out the issue also.
In any case your are going to need either another machine or another drive to test. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
destroyedlolo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Thu Oct 06, 2011 12:03 pm Post subject: |
|
|
If chiefbag's test is not successful, it looks like to 2 a problem with the HDD electronics.
So :
- Try to keep it cold
- if you find an other similare HDD (exactly the same), you can try to swap the electronic card ... but it's very risky : recover the maximum you can before.
Good luck. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
luismw Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Jan 2010 Posts: 91
|
Posted: Thu Oct 06, 2011 1:37 pm Post subject: |
|
|
Thanks for your advice, but my question was more about how to salvage the data. What program can I use (preferably, included in the system rescue CD).
The computer, by the way, is a Mac, so I'm afraid that opening it up to do anything is not really feasible. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chiefbag Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Wiggum.jpg)
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Thu Oct 06, 2011 8:09 pm Post subject: |
|
|
Quote: | The computer, by the way, is a Mac, so I'm afraid that opening it up to do anything is not really feasible |
Are you planning on just dumping it in a skip so?
Your issue is defiantly relating to hardware at some level so like it or not if you wish to use this machine again you will have to get someone to open it at some stage.
Rsync will do the job fine but as you have already stated the drive keeps dropping after x amount of time.
No software is going to help you in this scenario.
Please do yourself a favour and take the previous advice from this thread as suggested by both "destroyedlolo" and I. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cach0rr0 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/14936637654ee19d6630f96.gif)
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Thu Oct 06, 2011 9:53 pm Post subject: |
|
|
no two ways about it. it has to come open
what you need:
-ziploc bag
-beer cooler full of ice
-external enclosure that does power purely via USB
-long enough USB cord to reach your new machine
not kidding. Recovered data from an old Samsung HDD like this way back when |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
luismw Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 Jan 2010 Posts: 91
|
Posted: Fri Oct 07, 2011 7:34 am Post subject: |
|
|
Opening the Mac up is, right now, out of the question. Sorry if I'm not explaining myself: I'm not asking for ways to repair or recover the disk. I'm only asking for the correct flags for rsync or any other suitable program to be able to recover the data. I'm simply asking: Is there a program that can copy over some data from one place to the other, and is also able to resume after canceling just were it left off? And if there is such program (rsync looks like it), what flags should I use?
Don't take me wrong, I don't plan to somehow get the data out and then throw the computer away. But for the time being I'd love to have a straight answer to my question.
Thanks for your advice, anyway, it will come in handy, but right now my question is more specific. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chiefbag Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Wiggum.jpg)
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Fri Oct 07, 2011 8:40 am Post subject: |
|
|
From
Quote: | Perhaps the best way to explain the syntax is with some examples:
rsync -t *.c foo:src/
This would transfer all files matching the pattern *.c from the current directory to the directory src on the machine foo. If
any of the files already exist on the remote system then the rsync remote-update protocol is used to update the file by send-
ing only the differences. See the tech report for details. |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drescherjm Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Fri Oct 07, 2011 1:24 pm Post subject: |
|
|
Quote: | Sounds like the disk may not be the issue rather a shady power supply or something. |
I see this happen a lot with seagate drives at work where I have 200+ drives. Sometimes you hit a URE (unrecoverable read error) and the drive totally goes offline. In the last 2 weeks I have had that happen to 2 different 750 GB 7200.10s.
I recommend using ddrescue with the log option. However it may help to look at the SMART data first to see if this is indeed the problem. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chithanh Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/3210501551dc02a09eeb8.png)
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Sat Oct 08, 2011 2:59 am Post subject: |
|
|
dd supports the seek= and skip= and count= options. So if the drive works for a given amount of time, run dd in a for loop, copying 100MB (or so) at a time and note which iteration fails.
Then on next power cycle, start the copy after the last successful iteration.
Also you may be able to spin down the drive using hdparm to let it cool off and avoid a power cycle. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
s_bernstein Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 11 Mar 2006 Posts: 172 Location: Bremen, Germany
|
Posted: Sat Oct 08, 2011 5:47 am Post subject: |
|
|
I would probably try to use rsync -av <old_disc_mount_point> <new_disc_mount_point> because dd is a rather lengthy process. Also, rsync should be able to resume automatically and you can restrict it to specified a directory - like /home. So you can save your important data first - just in case your hdd is failing completely before you were able to recover all data. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drescherjm Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Sun Oct 09, 2011 2:33 am Post subject: |
|
|
One reason why I prefer dd_rescue over copying the files 1 by 1 using whatever method is speed. I mean dd/dd_rescue will be block by block at the hard drives fastest speed which is typically > 100 MB/s. While copying files 1 by 1 will be much slower if you have many small files (lots of hard drive seeks). However rsync will definitely be faster if your disk is nearly empty and with rsync you can pick the most important files first. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|