I have four identical USB flash drives connected to a Raspberry Pi, one of which is (apparently) failing. I'm trying to find out which one..
It (the device is at /dev/sda) won't mount, with the following error:
mount: /dev/sda is write-protected, mounting read-only mount: /dev/sda: can't read superblock
dmesg shows the following:
[3207772.134654] print_req_error: critical target error, dev sda, sector 0 [3207772.135995] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 [3207772.136010] sd 0:0:0:0: [sda] tag#0 Sense Key : 0x7 [current] [3207772.136021] sd 0:0:0:0: [sda] tag#0 ASC=0x27 ASCQ=0x0 [3207772.136036] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 00 f0 00 00 10 00 [3207772.136046] print_req_error: critical target error, dev sda, sector 240 [3207772.140555] sd 0:0:0:0: [sda] Write Protect is on [3207772.140571] sd 0:0:0:0: [sda] Mode Sense: 23 00 80 00
I can't create a new file system on it because of the write protection, and running something like
hdparm -r0 /dev/sda
to manually turn off the write protection makes no difference, the device still won't do anything - it won't mount and it won't do anything.
This leads me to believe, after a lot of googling around, that the flash drive is faulty. My next step is to take it out and try if it'll mount on another system. So now my next problem is: which of the four drives is it? The drives are all identical and there's no led on the flash drives indicating anything..
lsusb tells me this:
# lsusb Bus 001 Device 006: ID 058f:6387 Alcor Micro Corp. Flash Drive Bus 001 Device 004: ID 058f:6387 Alcor Micro Corp. Flash Drive Bus 001 Device 008: ID 058f:6387 Alcor Micro Corp. Flash Drive Bus 001 Device 007: ID 058f:6387 Alcor Micro Corp. Flash Drive
Not very useful... How can I identify which of the four drives it is?
Note 1: besides the obvious idea unmounting all of them, putting them back one by one and seeing which ones mount when of course :)
Note 2: I know that putting 4 USB flash drives in a Pi is not a good idea performance-wise because of the hub design - the project is more of a 'can it work' thing instead of a 'will it perform well' :)
Thanks in advance for the help and advice!