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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-03-2020, 03:50 AM
|
#1
|
LQ Newbie
Registered: Dec 2020
Posts: 10
Rep: 
|
Buffer I/O error on dev sda
First of all thank you for the help, and my apologize because I don't have a any knowledge on this kind of topic.
I've a Toshiba StoreE HDD USB drive that don't want to work.
When I use dmesg shows this:
Code:
[ 192.789711] usb 1-1.1: new high-speed USB device number 4 using xhci_hcd
[ 192.940101] usb 1-1.1: New USB device found, idVendor=0939, idProduct=0b16, bcdDevice= 1.0f
[ 192.940120] usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 192.940136] usb 1-1.1: Product: StorE HDD
[ 192.940151] usb 1-1.1: Manufacturer: Toshiba
[ 192.940165] usb 1-1.1: SerialNumber: 201005110631
[ 192.947284] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[ 192.948467] scsi host0: usb-storage 1-1.1:1.0
pi@raspberrypi:~ $ dmesg | tail
[ 211.371716] sd 0:0:0:0: [sda] tag#0 Sense Key : 0x5 [current]
[ 211.371727] sd 0:0:0:0: [sda] tag#0 ASC=0x20 ASCQ=0x0
[ 211.371739] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 ff ff ff 80 00 00 00 08 00 00
[ 211.371751] blk_update_request: critical target error, dev sda, sector 4294967168 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 211.376775] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[ 211.376787] sd 0:0:0:0: [sda] tag#0 Sense Key : 0x5 [current]
[ 211.376798] sd 0:0:0:0: [sda] tag#0 ASC=0x20 ASCQ=0x0
[ 211.376810] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 ff ff ff 80 00 00 00 08 00 00
[ 211.376822] blk_update_request: critical target error, dev sda, sector 4294967168 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 211.376840] Buffer I/O error on dev sda, logical block 536870896, async page read
And if I run sudo smartctl --all /dev/sda shows this:
Code:
pi@raspberrypi:~ $ sudo smartctl --all /dev/sda
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-5.4.51-v7l+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.12
Device Model: ST31000528AS
Serial Number: 9VP6DVKD
LU WWN Device Id: 5 000c50 0203585d7
Firmware Version: CC44
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Thu Dec 3 09:29:28 2020 GMT
==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/213891en
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Read SMART Data failed: scsi error medium or hardware error (serious)
=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
Read SMART Log Directory failed: scsi error medium or hardware error (serious)
Read SMART Error Log failed: scsi error medium or hardware error (serious)
Read SMART Self-test Log failed: scsi error medium or hardware error (serious)
Selective Self-tests/Logging not supported
Any help? As I said, I'm don't know what I'm doing (I read several similar post) but don't know more.
If you need more info, just tell me.
Thanks in advance!!
|
|
|
12-03-2020, 08:46 PM
|
#2
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
|
Your complaint is about a Toshiba USB device, which produces the first section of dmesg. But, the Smart data provided is for a Seagate, presumably /dev/sda, where the dmesg errors are coming from. Try pasting here input and output from the following:
Code:
sudo parted -l
inxi -DSa
sudo smartctl --all /dev/sdb
Change the b in sdb as required if the Toshiba USB is not /dev/sdb.
|
|
2 members found this post helpful.
|
12-04-2020, 03:38 AM
|
#3
|
LQ Newbie
Registered: Dec 2020
Posts: 10
Original Poster
Rep: 
|
Thanks mrmazda for your help!
I post the output of this comand:
Code:
pi@raspberrypi:~ $ sudo parted -l
Error: /dev/sda: unrecognised disk label
Model: Toshiba StorE HDD (scsi)
Disk /dev/sda: 2199GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
Model: SD SC16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 4194kB 273MB 268MB primary fat32 lba
2 273MB 15.9GB 15.7GB primary ext4
Code:
pi@raspberrypi:~ $ inxi -DSa
System:
Host: raspberrypi Kernel: 5.4.72-v7l+ armv7l bits: 32 Desktop: LXDE 0.10.0
Distro: Raspbian GNU/Linux 10 (buster)
Drives:
Local Storage: total: 2.01 TiB used: 3.28 GiB (0.2%)
ID-1: /dev/mmcblk0 model: SC16G size: 14.84 GiB block size:
physical: 512 B logical: 512 B
ID-2: /dev/sda type: USB vendor: Toshiba model: StorE HDD size: 2.00 TiB
block size: physical: 512 B logical: 512 B
Code:
pi@raspberrypi:~ $ sudo smartctl --all /dev/sda
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-5.4.72-v7l+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.12
Device Model: ST31000528AS
Serial Number: 9VP6DVKD
LU WWN Device Id: 5 000c50 0203585d7
Firmware Version: CC44
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Fri Dec 4 09:37:09 2020 GMT
==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/213891en
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Read SMART Data failed: scsi error medium or hardware error (serious)
=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
Read SMART Log Directory failed: scsi error medium or hardware error (serious)
Read SMART Error Log failed: scsi error medium or hardware error (serious)
Read SMART Self-test Log failed: scsi error medium or hardware error (serious)
Selective Self-tests/Logging not supported
What's next?
Thank you so much again!!
|
|
|
12-04-2020, 09:01 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271
|
in such cases I would try another enclosure, another host to see if that works....
|
|
|
12-04-2020, 09:31 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,758
|
What is the model number of your Pi?
Has the drive previously worked connected to the Pi or is this a new error?
Have you checked the external power supply of the enclosure? Can you feel the drive spinning?
Not all USB bridges pass the commands for SMART testing and as suggested a different enclosure might work better.
As a last resort can you connect the drive to a desktop computer internal SATA port to see if it still works?
|
|
|
12-04-2020, 05:58 PM
|
#6
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
|
The Seagate part number is for a 1TB drive. This is radically inconsistent with output from parted -l. I can only imagine the Toshiba device is designed for a 2TB Toshiba HD that has been replaced by a 1TB Seagate which the Toshiba container is not designed to support.
|
|
1 members found this post helpful.
|
12-04-2020, 06:55 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,758
|
That is strange and I overlooked that part...
The Seagate part number is for a 3.5" hard drive and STOR.E drives are 2.5". While I have not taken apart the newer USB 3 drives it appears from reading that the USB bridge is soldered onto the drive electronics so the package is smaller I presume. I don't think you can just swap physical hard drives but more information from the OP is required.
|
|
|
12-09-2020, 03:26 AM
|
#8
|
LQ Newbie
Registered: Dec 2020
Posts: 10
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
What is the model number of your Pi?
Has the drive previously worked connected to the Pi or is this a new error?
Have you checked the external power supply of the enclosure? Can you feel the drive spinning?
Not all USB bridges pass the commands for SMART testing and as suggested a different enclosure might work better.
As a last resort can you connect the drive to a desktop computer internal SATA port to see if it still works?
|
Hi everyone,
I answer some question:
Has the drive previously worked connected to the Pi or is this a new error? YES, work before without problem. just few month ago I stored the driver, and now go back didn't work.
Have you checked the external power supply of the enclosure? Yes, nothing strange.
Can you feel the drive spinning? Yes, when I plug-in sound spinning.
If I open the enclosure and I remove the seagate and attach a 2.5" usb external adapter (I don't have a 3.5") , the tail shows this:
Code:
pi@raspberrypi:~ $ dmesg | tail
[ 836.328569] sd 0:0:0:0: [sda] Unit Not Ready
[ 836.328591] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 836.328609] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 836.330248] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 836.330269] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 836.330287] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 836.332036] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[ 836.332056] sd 0:0:0:0: [sda] Sense Key : 0x4 [current]
[ 836.332075] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81
[ 836.336450] sd 0:0:0:0: [sda] Attached SCSI disk
And I can't feel spinning.
I attach in this post the picture of the original enclosure and the new adapter.
Last edited by Petitxef; 12-09-2020 at 03:31 AM.
|
|
|
12-19-2020, 11:40 PM
|
#9
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
|
I've never been able to get a USB adapter like I see in the second image to work with a 3.5" SATA HDD. IME, for 3.5" drives, the adapter needs to have its own drive power supply. Apparently a 3.5" drive requires more power than a USB bus will provide.
|
|
1 members found this post helpful.
|
12-21-2020, 04:57 AM
|
#10
|
LQ Newbie
Registered: Dec 2020
Posts: 10
Original Poster
Rep: 
|
Thanks Mrmazda.
Then I'll need to prove with other 3.5" SATA adapter, if this is the problem
Quote:
Originally Posted by mrmazda
I've never been able to get a USB adapter like I see in the second image to work with a 3.5" SATA HDD. IME, for 3.5" drives, the adapter needs to have its own drive power supply. Apparently a 3.5" drive requires more power than a USB bus will provide.
|
|
|
|
12-21-2020, 05:26 AM
|
#11
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
Quote:
Originally Posted by mrmazda
I've never been able to get a USB adapter like I see in the second image to work with a 3.5" SATA HDD. IME, for 3.5" drives, the adapter needs to have its own drive power supply. Apparently a 3.5" drive requires more power than a USB bus will provide.
|
Specifically, 2.5" drives can run off a 5V power supply, while 3.5" drives also require 12V.
Unless the USB-to-SATA adapter/bridge comes with a separate PSU, a 3.5" drive will not work. Even some 2.5" drives may fail to spin up due to insufficient power.
|
|
1 members found this post helpful.
|
12-22-2020, 03:18 AM
|
#12
|
LQ Newbie
Registered: Dec 2020
Posts: 10
Original Poster
Rep: 
|
Hi all!
I remove my 3.5" computer drive and run a Ubuntu usb bootable and then run some test with the Seagate Barracuda attached (see screenshots).
Any clue to how to fix the Seagate?
Thanks!
Last edited by Petitxef; 12-22-2020 at 03:20 AM.
|
|
|
12-22-2020, 03:32 AM
|
#13
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271
|
Quote:
Originally Posted by Petitxef
Any clue to how to fix the Seagate?
|
I would rather buy another one. Probably there is a way to fix it, but [from my side] it is unreliable and must be replaced.
Save your data from that device as soon as possible....
|
|
|
12-22-2020, 03:53 AM
|
#14
|
LQ Newbie
Registered: Dec 2020
Posts: 10
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
I would rather buy another one. Probably there is a way to fix it, but [from my side] it is unreliable and must be replaced.
Save your data from that device as soon as possible....
|
Is what I'm trying to do, backup all the data from this drive
|
|
|
12-22-2020, 12:17 PM
|
#15
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
|
Smartctl -x will provide needed extra detail.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 02:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|