LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2013, 03:10 AM   #1
pippet
Member
 
Registered: May 2004
Posts: 67

Rep: Reputation: 15
Recovering external harddrive with ntfs


Hi,
We have a WD 2TB external harddrive which failed recentely. We decided to make a copy of the failed drive and fix the copy.
We have another 2TB external hdd. The strange thing is that the size of the two - 2TB hardrives are different in the fdisk listing.
Code:
fdisk -l
Disk /dev/sdb: 2000.4 GB, 2000365289472 bytes
255 heads, 63 sectors/track, 243197 cylinders, total 3906963456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x38d65ad7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63  3906959804  1953479871    7  HPFS/NTFS/exFAT

Disk /dev/sdc: 1999.7 GB, 1999664930816 bytes
255 heads, 63 sectors/track, 30389 cylinders, total 488199446 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x38d65ad7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63  3906959804  2742937080    7  HPFS/NTFS/exFAT

/dev/sdb (failed drive) is 2000.4GB and /dev/sdc is (where I want to copy) is only 1999.7 GB. It has a virtual CD in it which I couldn't get rid of.
An image copy of the drive using ddrescue was done.

Code:
ddrescue -f --direct --max-retries=10 /dev/sdb /dev/sdc rescue.log
Naturally, it copied 1999GB and threw an 'out of space error'. Windows couldn't recognise it as a ntfs drive, where in fdisk listing in ubuntu listed it as a NTFS partition. Anyway,when tried to mount, it threw an error that it doesn't contain ntfs.

I was hoping that sectotrs that are not copied could be neglected some way, and a part of data can be recovered from the copy. The plan was to run the chkdsk on the copy drive, without touching the original.

Is it possible in some way?


Thanks,
Pippet
 
Old 05-30-2013, 05:51 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Nope.

ddrescue only worries about the used sectors, but you need to get a device big enough to contain the entire image. NTFS keeps a second copy of the MFT at the end of the partition, and I suspect looks for it to ensure it's a valid filesystem.

These days the "filesystem" flags in the partition table are useless - it's the integrity of the filesystem that's important. You may be able to get some forensic tools for NTFS (for a price) - some posters have mentioned success on threads I've seen here in the past.
 
Old 05-30-2013, 03:19 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Kind of depends on what has failed.

In order to not touch the original you may be able to just take an image compressed to a file to some known good storage. Then you might be able to mount it to use tools on the image. Tools like testdisk. Might be able to compress it to a windows format to then try windows tools.

In most cases you need a good copy of a working drive to trust the data.

Last edited by jefro; 05-30-2013 at 03:22 PM.
 
  


Reply



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
Anonymous upload to external NTFS harddrive with vsftpd ConnyJ Linux - Server 4 10-09-2010 05:02 PM
Problems mounting NTFS external harddrive lrt2003 Linux - Newbie 6 03-24-2009 12:05 AM
Recovering my harddrive Grimmi- Linux - Hardware 1 01-07-2006 05:05 AM
can't mount external usb ntfs harddrive etienne.navarro Mandriva 1 10-27-2005 12:54 PM
recovering a fat32 harddrive kingswood76 Linux - Hardware 1 07-24-2002 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:35 PM.

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
Open Source Consulting | Domain Registration