LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-03-2020, 03:50 AM   #1
Petitxef
LQ Newbie
 
Registered: Dec 2020
Posts: 10

Rep: Reputation: Disabled
Exclamation 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!!
 
Old 12-03-2020, 08:46 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
Blog Entries: 1

Rep: Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232
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.
Old 12-04-2020, 03:38 AM   #3
Petitxef
LQ Newbie
 
Registered: Dec 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
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!!
 
Old 12-04-2020, 09:01 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271

Rep: Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966
in such cases I would try another enclosure, another host to see if that works....
 
Old 12-04-2020, 09:31 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,758

Rep: Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319
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?
 
Old 12-04-2020, 05:58 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
Blog Entries: 1

Rep: Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232
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.
Old 12-04-2020, 06:55 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,758

Rep: Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319Reputation: 6319
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.
 
Old 12-09-2020, 03:26 AM   #8
Petitxef
LQ Newbie
 
Registered: Dec 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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.
Attached Thumbnails
Click image for larger version

Name:	IMG-8127.jpg
Views:	568
Size:	247.8 KB
ID:	34807   Click image for larger version

Name:	IMG-8128.jpg
Views:	491
Size:	236.6 KB
ID:	34808  

Last edited by Petitxef; 12-09-2020 at 03:31 AM.
 
Old 12-19-2020, 11:40 PM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
Blog Entries: 1

Rep: Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232
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.
Old 12-21-2020, 04:57 AM   #10
Petitxef
LQ Newbie
 
Registered: Dec 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks Mrmazda.

Then I'll need to prove with other 3.5" SATA adapter, if this is the problem

Quote:
Originally Posted by mrmazda View Post
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.
 
Old 12-21-2020, 05:26 AM   #11
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
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.
Old 12-22-2020, 03:18 AM   #12
Petitxef
LQ Newbie
 
Registered: Dec 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
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!
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-12-22 09-04-17.png
Views:	738
Size:	137.9 KB
ID:	34961   Click image for larger version

Name:	Screenshot from 2020-12-22 08-53-43.png
Views:	324
Size:	61.1 KB
ID:	34962   Click image for larger version

Name:	Screenshot from 2020-12-22 08-58-08.png
Views:	320
Size:	62.5 KB
ID:	34964  

Last edited by Petitxef; 12-22-2020 at 03:20 AM.
 
Old 12-22-2020, 03:32 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271

Rep: Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966Reputation: 7966
Quote:
Originally Posted by Petitxef View Post
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....
 
Old 12-22-2020, 03:53 AM   #14
Petitxef
LQ Newbie
 
Registered: Dec 2020
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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
 
Old 12-22-2020, 12:17 PM   #15
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,502
Blog Entries: 1

Rep: Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232Reputation: 2232
Smartctl -x will provide needed extra detail.
 
1 members found this post helpful.
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sda drive to sdb, so new hdd can become sda? irgunII Slackware 5 03-07-2014 08:38 AM
Buffer I/O error on device sda. Lost hard drive? shanekelly64 Linux - Newbie 1 11-12-2007 11:32 AM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-25-2006 11:57 PM
Maxtor Usb harddrive. Buffer I/O error on device sda. sfumato Linux - Hardware 3 12-26-2005 11:38 AM
mount USB devices, sda, manually/statically assign sda? Oxyacetylene Debian 3 12-20-2004 02:45 PM

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

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