LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-04-2022, 01:47 PM   #1
bricem13
LQ Newbie
 
Registered: Oct 2022
Location: Switzerland
Distribution: Archlinux
Posts: 6

Rep: Reputation: 0
Old external drive


Hi guys

I have an old IDE drive that I put in an external usb connector box.

It's pretty old hardware but the data on it has some interest to me - I try now to recover it and then will throw the drive away.

So it's a mass-storage device which filesystem should be ext2fs (old drive I told).

Unfortunately I have errors at connection:

Code:
[root@TuxBox brice]# dmesg 
...
[ 1764.352846] critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1764.352860] Buffer I/O error on dev sda, logical block 0, async page read
[ 1764.353527] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 1764.353537] sd 1:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] 
[ 1764.353545] sd 1:0:0:0: [sda] tag#0 Add. Sense: Invalid command operation code
[ 1764.353551] sd 1:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[ 1764.353554] critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1764.353565] Buffer I/O error on dev sda, logical block 0, async page read
[ 1764.353588] ldm_validate_partition_table(): Disk read failed.
[ 1764.354151] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 1764.354159] sd 1:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] 
[ 1764.354165] sd 1:0:0:0: [sda] tag#0 Add. Sense: Invalid command operation code
[ 1764.354171] sd 1:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[ 1764.354175] critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1764.354185] Buffer I/O error on dev sda, logical block 0, async page read
[ 1764.357916] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 1764.357928] sd 1:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] 
[ 1764.357936] sd 1:0:0:0: [sda] tag#0 Add. Sense: Invalid command operation code
[ 1764.357943] sd 1:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[ 1764.357946] critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1764.357962] Buffer I/O error on dev sda, logical block 0, async page read
[ 1764.360751] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 1764.360761] sd 1:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] 
[ 1764.360766] sd 1:0:0:0: [sda] tag#0 Add. Sense: Invalid command operation code
[ 1764.360771] sd 1:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
[ 1764.360773] critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1764.360784] Buffer I/O error on dev sda, logical block 0, async page read
[ 1764.360808]  sda: unable to read partition table
[ 1764.360889] sd 1:0:0:0: [sda] Attached SCSI disk
[ 1764.382591] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 1764.382597] sd 1:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] 
[ 1764.382599] sd 1:0:0:0: [sda] tag#0 Add. Sense: Invalid command operation code
[ 1764.382602] sd 1:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 ff ff ff 80 00 00 00 08 00 00
[ 1764.382603] critical target error, dev sda, sector 4294967168 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 1764.383164] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 1764.383168] sd 1:0:0:0: [sda] tag#0 Sense Key : Illegal Request [current] 
[ 1764.383170] sd 1:0:0:0: [sda] tag#0 Add. Sense: Invalid command operation code
[ 1764.383172] sd 1:0:0:0: [sda] tag#0 CDB: Read(16) 88 00 00 00 00 00 ff ff ff 80 00 00 00 08 00 00
[ 1764.383173] critical target error, dev sda, sector 4294967168 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1764.383178] Buffer I/O error on dev sda, logical block 536870896, async page read
[root@TuxBox brice]#

I have no clue which tool could help me, I found some topic here and tried smartctl but:


Code:
[root@TuxBox brice]# smartctl -a /dev/sda 
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.19.12-arch1-1] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sda: Unsupported USB bridge [0x04b4:0x6830 (0x001)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

[root@TuxBox brice]#

and here I am stuck...

any advice please?

thank you
Brice
 
Old 10-04-2022, 01:54 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,672

Rep: Reputation: Disabled
I think the interface you are using is a POS. If I was in your shoes I'd use ddrescue and pull a full image of this drive, then mount partitions-filesystems in this image and see what's intact and can be used.
 
Old 10-04-2022, 03:01 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Guess you can check the jumpers. Not sure which way they might need to be or even if in.
 
Old 10-04-2022, 03:06 PM   #4
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Make sure the drive is fully spun up before you plug it in via usb. That sometimes works.

You aren't getting any reads, so something (if the drive is good) is wrong.

Last edited by elgrandeperro; 10-04-2022 at 03:07 PM.
 
Old 10-05-2022, 01:29 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,908
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by jefro View Post
Guess you can check the jumpers. Not sure which way they might need to be or even if in.
IOW, without correctly setting drive jumpers according to the instructions for the USB container, you cannot expect to mount or read whatever the drive contains. Correct jumper settings depend on both the drive and the container, as not all PATA drives require the same jumper setting for the same purpose. Most likely the container requires use of either a master drive setting (e.g. for Seagate), or an only drive setting (e.g. for WD).
 
Old 10-05-2022, 04:57 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,503

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
From post #1:

The drive appears to be a dud from those errors. Forget it.

If you have an old PC, I'd remove it from it's external box, remove the jumpers and try it as a slave. The master jumper is usually marked if there's no other drive on that lead. Forget any external boxes. It's just an extra source of possible error.

When my diagnosis is confirmed, sling it.
 
Old 10-05-2022, 08:35 AM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
A long time ago I played with those and found some cases and drives needed to have jumpers in non-standard locations. Play with them to see if it changes.
 
Old 10-05-2022, 09:19 AM   #8
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
Give the drive make and model and someone can lookup the jumper settings.
 
Old 10-05-2022, 10:45 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,826

Rep: Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962
The other basic questions are, is the external power supply plugged in and do you feel it spinning?
 
Old 10-05-2022, 01:48 PM   #10
bricem13
LQ Newbie
 
Registered: Oct 2022
Location: Switzerland
Distribution: Archlinux
Posts: 6

Original Poster
Rep: Reputation: 0
hi

thank you for the replies.

Drive spins at power up and then stops after some seconds.

I tried under W.. and not able to initialize it.

I tried in an old computer directly on an IDE connector and got at start a "disk2 failure" (with or without the original IDE drive). I did not change the jumper settings at that time as it was previously working in the external box. I let the jumper as is and not as slave, I can give it a go but I have little hope...

Drive is a WD1600AAJB - 00WRA0.

BR
 
Old 10-05-2022, 01:50 PM   #11
bricem13
LQ Newbie
 
Registered: Oct 2022
Location: Switzerland
Distribution: Archlinux
Posts: 6

Original Poster
Rep: Reputation: 0
one more thing: now I seem not getting any "sda" mention at power up:

Output of dmesg:
Code:
[  612.781866] usb 1-3: new high-speed USB device number 6 using xhci_hcd
[  612.922953] usb 1-3: New USB device found, idVendor=04b4, idProduct=6830, bcdDevice= 0.01
[  612.922961] usb 1-3: New USB device strings: Mfr=56, Product=78, SerialNumber=100
[  612.922964] usb 1-3: Product: USB2.0 Storage Device
[  612.922966] usb 1-3: Manufacturer: Cypress Semiconductor
[  612.922968] usb 1-3: SerialNumber: ############
[  612.924063] ums-cypress 1-3:1.0: USB Mass Storage device detected
[  612.924220] scsi host1: usb-storage 1-3:1.0
 
Old 10-05-2022, 02:01 PM   #12
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,908
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by bricem13 View Post
I let the jumper as is and not as slave, I can give it a go but I have little hope...
You have a one chance in four doing that. Master, Slave, Only, CS are the usual WD options, IIRC.
 
Old 10-05-2022, 04:31 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,826

Rep: Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962Reputation: 5962
Stops after some seconds and no sda in dmesg is not a good sign.
 
1 members found this post helpful.
Old 10-05-2022, 06:12 PM   #14
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Given the errors related to the USB interface, what happens if you try a different IDE-USB interface. It easily could be either the drive itself, or the external case / adapter you connected it with. Should you happen to have access to older PC hardware with a mobo that has the ide interface it might be possible to connect directly to the drive and eliminate the usb interface entirely.

Smartctl often does not communicate with a drive connected by USB, though for better quality interfaces it may.
 
Old 10-06-2022, 10:59 AM   #15
bricem13
LQ Newbie
 
Registered: Oct 2022
Location: Switzerland
Distribution: Archlinux
Posts: 6

Original Poster
Rep: Reputation: 0
ok got the old computer back up.

drive in slave, other IDE drive is master. Bios output drive 2 error... not good

anyway I got a knoppix live-CD and can get the computer to start.

but then, what to do next? there is only gparted on the live-cd and it only recognizes the master drive.
 
  


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
Installing Linux Mint 19.1 cinnamon to an external hard drive & backing up to another external hard drive. bluelakecompany@yahoo.co Linux - Newbie 1 01-23-2019 06:30 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
New install on new hard drive messed up old install of old hard drive. AbsoluteMonkey Linux - General 26 01-10-2007 12:21 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
big plans for old old old laptop vdogvictor Linux - Laptop and Netbook 0 05-26-2004 07:33 PM

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

All times are GMT -5. The time now is 03:19 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