e43a data recovery? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > System Hardware

System Hardware Internal storage, motherboards, PCI cards, stuff inside the case.

Reply
 
Thread Tools Display Modes
  #1  
Old September 16th, 2012, 14:33
kr651129 kr651129 is offline
Member
 
Join Date: Feb 2012
Posts: 292
Thanks: 20
Thanked 3 Times in 3 Posts
Default data recovery?

I have an external SimpleTech 1TB hard drive that I suspect is going bad. When I turn on the power the light blinks on and off and the system doesn't see it in camcontrol. I removed the drive from the enclosure and mounted it via usb.

Code:
# mount -t ntfs /dev/da1s1 /usr/home/kclark/external
This command just sits without returning a prompt. I can leave it for an hour and nothing happens. When I kill power or unplug it I get an error message saying the device is not configured. A few weeks ago I dumped all my vital information over to my home server because it has been acting up on me for a while now but I still have some non-essential data I'd like to get from it.

I'm running DFT on the drive waiting for the results. I'm not getting an "click of death" from the drive so I'd imagine using dd to remap the bad block will work.

Here are my questions.

1. If DFT comes back and says the drive has passed, will dd force a remap of the bad blocks?

2. Is there any good FreeBSD data recovery software?
Reply With Quote
  #2  
Old September 16th, 2012, 15:00
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

If you have a drive that is suspected to be failing, the very first thing to do is copy all data from it. If the filesystem can't be mounted, use dd(1) to make an image of the whole drive.

After that has been done, run drive tests, not before, because if the drive really is failing, more running time will lead to more errors and more lost data.

Remapping bad blocks is not a cure, and requires writing to them, so it will wipe out existing data on the drive anyway.
Reply With Quote
  #3  
Old September 16th, 2012, 15:13
kr651129 kr651129 is offline
Member
 
Join Date: Feb 2012
Posts: 292
Thanks: 20
Thanked 3 Times in 3 Posts
Default

wblock -- thanks for the reply. I can't use dd to make an image because I don't have another drive around large enough to fit the data. The good news, I got all essential data off last week so if I do end up with anymore lost data it's no big deal.

Just for education sake let me ask this question, if the drive comes back as pass with DFT what could cause the disk to not mount? I've already come to the conclusion the reason the drive wasn't spinning up in the first place was because of the enclosure...once I removed the drive it spins up and can be seen.
Reply With Quote
  #4  
Old September 16th, 2012, 15:41
NewGuy NewGuy is offline
Member
 
Join Date: Nov 2009
Posts: 112
Thanks: 4
Thanked 8 Times in 7 Posts
Default

If you can't copy all the data off the drive due to lack of space then recovery is going to be a lot harder. You could try installing PhotoRec (part of the TestDisk suite). It will try to work with the original drive and grab any good pieces of data or files. Ideally it should be run on an image of the drive, but it can work with physical hardware.
Reply With Quote
  #5  
Old September 16th, 2012, 17:18
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

If the drive is fine, I'd suspect filesystem corruption from the failing power supply. NTFS just makes that worse. The existing filesystem may be repairable with sysutils/ntfsprogs or a live CD that includes them, like GParted. Otherwise, reformat, preferably with something more cross-platform than NTFS.
Reply With Quote
  #6  
Old September 17th, 2012, 02:27
kr651129 kr651129 is offline
Member
 
Join Date: Feb 2012
Posts: 292
Thanks: 20
Thanked 3 Times in 3 Posts
Default

It was a bad drive, when I ran dd sometime it'd write 30ish GB of data, I'd run again it's write 130ish GB, I did this and it gave different results each time before giving me an input/output error. Time for a new drive.
Reply With Quote
  #7  
Old September 17th, 2012, 13:19
kisscool-fr kisscool-fr is offline
Member
 
Join Date: Feb 2010
Posts: 176
Thanks: 8
Thanked 16 Times in 16 Posts
Default

You can try dd_rescue. It's the same work as dd but it can managed failing disks (depends on the failing causes and damage state).
__________________
http://lacabanedeladmin.dyndns.org/
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ZFS Data Recovery passager System Hardware 7 October 21st, 2011 22:48
Vinum Data Recovery SkymanScott General 0 July 6th, 2011 18:52
Data recovery Nick2011 General 1 June 18th, 2011 19:06
[Solved] Data Recovery mairving System Hardware 11 May 28th, 2010 02:36
vi recovery Seeker General 7 December 5th, 2009 21:35


All times are GMT +1. The time now is 21:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0