LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-31-2012, 08:51 AM   #1
raven4d
Member
 
Registered: Feb 2006
Location: Damascus-Syria
Posts: 117

Rep: Reputation: 15
a half or so ddrescue image


hello friends ,

so i was doing an image of my failing HDD but the hard drive died before the image complete !

now i have about 80 Giga image out of my 160 HDD

i tried to mount this image but i couldn't ! what can i do ?

thank you
 
Old 08-31-2012, 09:36 AM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.1, LFS-current, NetBSD 6.1.3
Posts: 119

Rep: Reputation: 38
When you say the drive is dead, does it still spin up? Does Linux still see it as a drive? Does the drive click or make sound?

If it Linux can find the drive and the drive makes noise... You might be able temperately fix it just to copy data off it. This is a last solution fix and the windows of time that you have to copy the data is very limited.

If all the above is the case then you can try the following:
1) Shutdown the computer and take the drive out and let it cool down completely until its regular temperature.
2) Find a zip lock bag and pressure test it to ensure water and vapor can't get to the bag.
3) Place the damaged drive in the freezer.
4) Let the hard drive sit in the freezer until the drive gets really cold.
5) Quickly and I mean very quickly hoot the drive up to the computer again (do not put it in the computer case itself, the reason for this is the case will cause the drive to warm up after because of the restricted air flow.
6) Use dd (diskdump) to capture the image of the drive (dd if=/drive/to/copy of=/drive/image/to/copy/to conv=noerror,sync ) This will attempt to copy the damaged drive at block level to either an image file or another hard drive.

The reason why this works is because when you freeze the drive you are causing the barring inside to shrink a tiny bit, which can help fix the old clicking sound on hard drives and will buy you sometime to allow you to copy the data over (whats left of it anyways if there are too many damaged sectors then dd will skip them but pad the skipped sectors with zeros so if the drive is too damaged recovery might not be possible.
 
Old 08-31-2012, 09:40 AM   #3
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.1, LFS-current, NetBSD 6.1.3
Posts: 119

Rep: Reputation: 38
Quote:
Originally Posted by /dev/random View Post
When you say the drive is dead, does it still spin up? Does Linux still see it as a drive? Does the drive click or make sound?

If it Linux can find the drive and the drive makes noise... You might be able temperately fix it just to copy data off it. This is a last solution fix and the windows of time that you have to copy the data is very limited.

If all the above is the case then you can try the following:
1) Shutdown the computer and take the drive out and let it cool down completely until its regular temperature.
2) Find a zip lock bag and pressure test it to ensure water and vapor can't get to the bag.
3) Place the damaged drive in the freezer.
4) Let the hard drive sit in the freezer until the drive gets really cold.
5) Quickly and I mean very quickly hoot the drive up to the computer again (do not put it in the computer case itself, the reason for this is the case will cause the drive to warm up after because of the restricted air flow.
6) Use dd (diskdump) to capture the image of the drive (dd if=/drive/to/copy of=/drive/image/to/copy/to conv=noerror,sync ) This will attempt to copy the damaged drive at block level to either an image file or another hard drive.

The reason why this works is because when you freeze the drive you are causing the barring inside to shrink a tiny bit, which can help fix the old clicking sound on hard drives and will buy you sometime to allow you to copy the data over (whats left of it anyways if there are too many damaged sectors then dd will skip them but pad the skipped sectors with zeros so if the drive is too damaged recovery might not be possible.
(Warning: I am not responsible for damages if you skip steps and fail to seal the drive in the bag properly, if done correctly it works, if not moisture will build up on the drive and you will fry something, be it the drive or the controller, you have been warned!)
 
Old 08-31-2012, 10:45 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,005
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
Quote:
Originally Posted by /dev/random View Post
The reason why this works
...should be "the reason why this might work". At least that's my practical experience.


Quote:
Originally Posted by /dev/random View Post
6) Use dd
I'd suggest ddrescue or dd_rescue instead (see the manual pages of both for an explanation why) unless disk contents should be recovered at all costs. Then the OP shouldn't waste time freezing it but contact a professional recovery service instead...



Quote:
Originally Posted by raven4d View Post
i tried to mount this image but i couldn't !
With what exact command did you make the backup?
Did you copy to another disk or to a file on that disk?
Was the size of the target disk equal to or greater than the source disk?
Were target disk contents zeroed out before copying or else what data did it hold?
Can you run 'testdisk /debug /log' on the target disk, run analysis, quit and then attach (plain text) or Pastebin the log file?
 
Old 08-31-2012, 10:47 AM   #5
raven4d
Member
 
Registered: Feb 2006
Location: Damascus-Syria
Posts: 117

Original Poster
Rep: Reputation: 15
thank you for your reply , am familiar with the freezer method , but my hard drive died completely , it's gone to the drives heavens by now.

any thing i can do with the semi-image ?

thank you again
 
Old 08-31-2012, 02:32 PM   #6
raven4d
Member
 
Registered: Feb 2006
Location: Damascus-Syria
Posts: 117

Original Poster
Rep: Reputation: 15
thank you all ,

problem solved after using foremost -i image_file
 
  


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
configuring laptop C drive into half windows 7 and half linux muddyholiday Linux - Newbie 6 03-16-2012 04:30 AM
Half installing linux-image 2.6.38-2_amd64.deb colotd Linux - Kernel 2 04-02-2011 09:56 AM
LXer: KNDISwrapper is half-done, but far from half-baked LXer Syndicated Linux News 0 12-04-2008 01:41 AM
Beryl/Ati/XGL half working, half not! LDJ Ubuntu 4 04-23-2007 04:05 PM
how do I install half windows98 half linux? xandar Linux - General 3 09-07-2005 03:23 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration