LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-19-2012, 01:17 AM   #1
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Rep: Reputation: Disabled
Trying to recover data from Hitachi 3TB external drive HELP ME!


I tried all the methods I could find on the web, but none seem to work. I used ddrescue to make an image of the drive and tried to mount it, but it seems to always error out. Here is the error I'm getting as well as some info about the drive. I also used foremost to try and scrape files off it, but I have a lot of backed up DVD files that it doesn't seem to get which I would like to recover.

Code:
$ sudo mount -t ntfs -o loop,offset=32256 image.iso mnt/
NTFS signature is missing.
Failed to mount '/dev/loop0': Invalid argument
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

$ sudo parted /dev/sdc
GNU Parted 2.2
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit                                                             
Unit?  [compact]? B                                                       
(parted) print                                                            
Model: Hitachi HDS723030ALA640 (scsi)
Disk /dev/sdc: 3000592982016B
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End            Size           Type     File system  Flags
1      32256B  375072767999B  375072735744B  primary
sudo fdisk -l -C 63 /dev/sdc

Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6e1a101f

  Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       45600   366281968+   7  HPFS/NTFS
3:54 PM
Any help with this would be appreciated!
 
Old 12-19-2012, 03:41 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I'd start with testdisk.
 
Old 12-19-2012, 04:07 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What exact command did you do to create image.iso? Did you run it on the NTFS partition, or the whole disk?
 
Old 12-19-2012, 04:27 PM   #4
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I ran the command below to make the image and ran it on the NTFS partition. I know how the above shows I'm using sdc but it's really sdd since I plugged in another external to copy and move files to.

sudo ddrescue -r 3 /dev/sdd1 /media/External/Hitachi/image.iso /media/External/Hitachi/log
 
Old 12-19-2012, 04:37 PM   #5
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
I have not used ddrescue but it looks like you have backed up /dev/sdd1 so you should not need an offset. Try:
Code:
sudo mount -t ntfs -o loop image.iso mnt/
testdisk is a great recovery tool. If you cannot mount the partition, use testdisk to recover the partition from the image. It is not iso btw.

Regards,
Stefan

Last edited by propofol; 12-19-2012 at 04:40 PM.
 
Old 12-19-2012, 04:54 PM   #6
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Same problem:

Code:
$ sudo mount -t ntfs -o loop /media/External/Hitachi/image.iso /media/Slave/Hitachi/mnt/
 
NTFS signature is missing.
Failed to mount '/dev/loop0': Invalid argument
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Last edited by tcpdumper; 12-19-2012 at 04:55 PM.
 
Old 12-19-2012, 04:58 PM   #7
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Gonna try testdisk to analyze the disk now.
 
Old 12-19-2012, 05:28 PM   #8
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Also, please try the command:
Code:
file /media/External/Hitachi/image.iso
 
Old 12-19-2012, 05:34 PM   #9
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
$ file /media/External/Hitachi/image.iso
/media/External/Hitachi/image.iso: data
 
Old 12-19-2012, 05:39 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Try the -s option i.e.
file -s /media/External/Hitachi/image.iso
 
Old 12-19-2012, 05:42 PM   #11
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
$ file -s /media/External/Hitachi/image.iso
/media/External/Hitachi/image.iso: data
 
Old 12-19-2012, 06:41 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
There must be some hidden magic going on since by definition the max size of a MBR formatted disk is 2TB with 512K sector size. Were you previously able to mount the drive via linux? Technically all this means is that you can not boot from it...

However, the file command does not recognise the file as a block device.

Last edited by michaelk; 12-19-2012 at 06:55 PM.
 
Old 12-19-2012, 06:54 PM   #13
tcpdumper
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I was never able to mount it in linux. It was just an external hard drive that I thought broke so I ripped it out of the enclosure and tried to recover it from there. Originally it was formatted in windows.

Last edited by tcpdumper; 12-19-2012 at 09:50 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
3TB External USB drive LOLobo Slackware 3 09-08-2012 03:27 PM
Need to use 3TB USB drive that already contains data on a Linux server. turbodisturbo Linux - Server 4 10-06-2011 03:49 AM
How to recover data from external USB Drive montylee Linux - Software 6 09-22-2011 12:38 PM
Hitachi external cdrom drive Kevin_Thompson Linux - Newbie 1 05-28-2001 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 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
Open Source Consulting | Domain Registration