CentOS 7.6 USB hard drive error message but no harware problem

Issues related to hardware problems
Post Reply
francis
Posts: 9
Joined: 2018/12/16 19:08:00

CentOS 7.6 USB hard drive error message but no harware problem

Post by francis » 2018/12/16 19:31:45

Hello,

I have a Thinkpad W520 with a Centos 7.6, the system report problems with an external usb seagate disk, but there is no hardware problem with this disk.

The USB disk info.

T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=0bc2 ProdID=2332 Rev= 0.04
S: Manufacturer=Seagate
S: Product=Portable
S: SerialNumber=2GHH2TC3
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 96mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

If I try to create a partition to the disk (fdisk /dev/sdb), or create a filesystem (mkfs.xfs/reiserfs/ext4), or copie files (cp... , tar, cpio) I have the error.

Dec 16 20:13:54 xxxx kernel: sd 11:0:0:0: [sdb] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Dec 16 20:13:54 xxxx kernel: sd 11:0:0:0: [sdb] Sense Key : Illegal Request [current]
Dec 16 20:13:54 xxxx kernel: sd 11:0:0:0: [sdb] Add. Sense: Invalid field in cdb
Dec 16 20:13:54 xxxx kernel: sd 11:0:0:0: [sdb] CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00
Dec 16 20:13:54 xxxx kernel: blk_update_request: critical target error, dev sdb, sector 0

# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x78e34a19.

Command (m for help): p

Disk /dev/sdb: 1000.2 GB, 1000204883968 bytes, 1953525164 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x78e34a19

Device Boot Start End Blocks Id System

Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
First sector (2048-1953525163, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-1953525163, default 1953525163):
Using default value 1953525163
Partition 1 of type Linux and of size 931.5 GiB is set

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

Error closing file

# mkfs.ext4 /dev/sdb1
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61054976 inodes, 244190389 blocks
12209519 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2392850432
7453 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:
Warning, had trouble writing out superblocks.

No error messages if I do a "dd if=/dev/zero of=/dev/sdb"

# dd if=/dev/zero of=/dev/sdb
^C458809+0 records in
458809+0 records out
234910208 bytes (235 MB) copied, 32.2292 s, 7.3 MB/s

The smartctl report no error
#smartctl -a -d sat /dev/sdb
...
SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 3834 -
....

On others hardware/os and old linux (2.6.29.4) I have no problem with the disk because there is no hardware problem with the disk.

With others disk I have no problem with the thinkpad w520 and the Centos 7.6

Best regards.

Francis

francis
Posts: 9
Joined: 2018/12/16 19:08:00

Re: CentOS 7.6 USB hard drive error message but no harware problem

Post by francis » 2018/12/22 15:41:24

Hello,

Not a lot of response... steel waiting for help/idea.

I continue my tests... and the searches on Internet.

Booting the USB seatool form Seagate on the W520 (linux with Seagate disk utilities), I can test smart/auto test/short test all is "ok" (do not try the long test... too long).

I tried the FC29 Live, I mount the disk without error, umount the disk with error like Centos with kernels 3.10, 3.10plusplus, 4.4, 4.19.

I tried rhel 7.5 nothing with the usb3 work (I do not try to search why).

I tried the NetInst FC20, I can mount/unmount/copy files without errors !

I am becoming nuts... please help

Best regards.

Francis

Post Reply