LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-05-2008, 01:33 PM   #1
TurkisH
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Rep: Reputation: 0
USB to IDE - Broken harddisk?


LS,

Recently I have bought an USB to IDE (cable + powersupply) to access my older harddisks. Unfortunately i cannot get my old IDE harddisk (used to be gentoo on it) to work with the USB-cable:

output dmesg

Code:
[  562.525175] usb-storage: device found at 18
[  562.525181] usb-storage: waiting for device to settle before scanning
[  563.455834] usb-storage: device scan complete
[  563.457752] scsi 19:0:0:0: Direct-Access     Maxtor 6 Y120P0           0811 PQ: 0 ANSI: 0
[  563.459955] sd 19:0:0:0: [sdb] 240121728 512-byte hardware sectors (122942 MB)
[  563.461452] sd 19:0:0:0: [sdb] Test WP failed, assume Write Enabled
[  563.461460] sd 19:0:0:0: [sdb] Assuming drive cache: write through
[  563.463074] sd 19:0:0:0: [sdb] 240121728 512-byte hardware sectors (122942 MB)
[  563.464697] sd 19:0:0:0: [sdb] Test WP failed, assume Write Enabled
[  563.464704] sd 19:0:0:0: [sdb] Assuming drive cache: write through
[  563.464711]  sdb:
[  563.481554] sd 19:0:0:0: [sdb] Attached SCSI disk
[  563.481639] sd 19:0:0:0: Attached scsi generic sg2 type 0
fdisk gives:
Code:
ubuntu@ubuntu:/$ sudo fdisk -l

Disk /dev/sda: 100.0 GB, 100030242816 bytes
240 heads, 63 sectors/track, 12921 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x7e827e0d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4856    36703232    7  HPFS/NTFS
/dev/sda2            4856       12922    60980224    7  HPFS/NTFS

Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x91b3b121

   Device Boot      Start         End      Blocks   Id  System
Mount gives the following message:
Code:
ubuntu@ubuntu:/$ sudo mount /dev/sdb /mnt/usbstorage
mount: you must specify the filesystem type

ubuntu@ubuntu:/$ sudo mount -t ext3 /dev/sdb /mnt/usbstorage
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

dmesg
[  751.565112] VFS: Can't find ext3 filesystem on dev sdb.
Important to know is that Gentoo on this harddisk has crashed (can't remember the reasons). My purpose is to get old data (photo's/music), that are still on this disc.

Can someone help me please? Maybe the partition table is broken?

By the way I am using ubuntu live CD
Thanks in advance for your help.

Last edited by TurkisH; 08-05-2008 at 01:43 PM.
 
Old 08-05-2008, 02:00 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
fdisk -l for /dev/sdb does not look good.

Does your USB to IDE thing work OK with other (good) disks?
If so, I suggest you read up on testdisk and photorec which both have good reputations for recovering data from partly broken, but still readable disks.

Do you have enough HDD space free to take a dd copy of your bad disk?

If so, I recommend you image it now. You probably should do this as root (so triple-check your commands before you press RETURN!):

Code:
dd  if=/dev/sdb  of=/home/me/baddisk.raw
Wait (maybe for quite a long time, depending on the size of your disk, and the speed of your interface (remember, USB is s-l-o-w)) while the disk is imaged.

Then you can play with your copy, leaving the original HDD unchanged:

Code:
mkdir /home/me/baddisk
mount  -o  loop  /home/me/baddisk.raw  /home/me/baddisk
Then you should be able to point photorec at /home/me/baddisk and it will behave as though it was looking at /dev/sdb

See what happens, and let us know.
 
Old 08-05-2008, 02:59 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,666
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
On the other hand, if you are certain it's just the partition table, you might want to run 'testdisk' (photorec's companion app) first on the disk to see if it can retrieve settings as you think are right. Notice running testdisk diagnosis is not destructive (no backup necessary) until you use "write".
 
Old 08-05-2008, 03:01 PM   #4
TurkisH
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Dear Tredegar, thanks for your reply and extensive explanation.

I followed your advice and download testdisk, excellent program by the way. Unfortunately the first analysis didn't found any lost partitions. I am now doing a deeper search, after that I will try the advanced superblock option.

I'll keep you informed.
 
Old 08-05-2008, 03:07 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Did you see unSpawn's post, above?
 
Old 08-05-2008, 03:36 PM   #6
TurkisH
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, I've seen unspawn's post (thx btw )

Discovered this also myself. I've used the diagnosis tool on the live disk, however no results. Now trying the photorec tool...
 
Old 08-05-2008, 03:52 PM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
I wonder if there is a problem with your interface hardware. What we have here, so far, is a clear inability to read the HD. The HD's firmware can be read, but an attempt to read the platter to get the MBR fails, as does (apparently) any attempt to read the platter to obtain partition information the hard way.

If I were you, I would put the drive into another machine and try to read it.
 
Old 08-05-2008, 04:01 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
I wonder if there is a problem with your interface hardware.
I already asked him to check this.
Quote:
Does your USB to IDE thing work OK with other (good) disks?
Maybe he hasn't.
 
Old 08-05-2008, 04:23 PM   #9
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Yeah, maybe he hasn't. From where I sit, based on the symptoms, it is the most likely problem.
 
  


Reply

Tags
data, harddisk, ide, recovery, usb


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sata harddisk not detected with usb 2.0 to sata/ide cable devrieshh Linux - Hardware 3 06-02-2008 05:10 PM
IDE harddisk not recognised while installing latest linux distros biswajit12 Linux - Software 2 09-06-2007 12:09 AM
Cannot enable IDE harddisk DMA in Etch super-momo Debian 4 07-29-2005 01:31 PM
RH9.0 Ide harddisk errors dxt Linux - Hardware 1 11-18-2003 05:50 AM
RH9 support flash IDE harddisk? captainstorm Linux - Newbie 1 08-04-2003 09:57 AM


All times are GMT -5. The time now is 02:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration