On 18/07/2020 10:13, Ralph Corderoy wrote:
Hi Peter,

Gparted  gives me 'Input/output error during read on /dev/sdb'
That's an error from the kernel, returned using errno(3) EIO from a
system call like read(2).

Run ‘dmesg -Hxw’ in a terminal to show the end of the kernel's
ring-buffer log.  Tap Enter a few times to create a marker of where the
end was.

Insert the SD card.  See if any messages appear about its partitions, or
anything else of interest.  Tap a few more Enters.

Try and do your gparted, or whatever, operation on it.  There might be a
kernel message which coincides with the EIO being returned to gparted.

I persevere says that the card is not partitioned or a similar message
If you don't want any data on the card then write to all its blocks,
allowing the card to discard the content of blocks which it has trouble
reading.

Something like

     tr \\000 \\377 </dev/zero | head -c 1MiB >/tmp/1mff

     while cat /tmp/1mff; do :; done |
     sudo dd status=progress of=/dev/...

     rm /tmp/1mff

Here's dmesg error messages from earlier this morning:

[ 4047.897691] usb 3-6: New USB device found, idVendor=090c, idProduct=6000
[ 4047.897697] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4047.897701] usb 3-6: Product: USB2.0 Card Reader
[ 4047.897705] usb 3-6: Manufacturer: Generic       ,   .
[ 4047.897709] usb 3-6: SerialNumber: 12345678901234567890
[ 4047.900808] usb-storage 3-6:1.0: USB Mass Storage device detected
[ 4047.904014] usb-storage 3-6:1.0: Quirks match for vid 090c pid 6000: 100000
[ 4047.904038] scsi host6: usb-storage 3-6:1.0
[ 4048.906005] scsi 6:0:0:0: Direct-Access Generic                   6000 PQ: 0 
ANSI: 0 CCS
[ 4048.907291] sd 6:0:0:0: Attached scsi generic sg3 type 0
[ 4048.908902] sd 6:0:0:0: [sdb] 15126528 512-byte logical blocks: (7.74 
GB/7.21 GiB)
[ 4048.909167] sd 6:0:0:0: [sdb] Write Protect is off
[ 4048.909169] sd 6:0:0:0: [sdb] Mode Sense: 4b 00 00 08
[ 4048.909445] sd 6:0:0:0: [sdb] No Caching mode page found
[ 4048.909448] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 4049.188789] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
[ 4049.188797] sd 6:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 4049.188803] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Logical block address out of 
range
[ 4049.188810] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 
00
[ 4049.188814] print_req_error: critical target error, dev sdb, sector 0
[ 4049.188824] Buffer I/O error on dev sdb, logical block 0, async page read

and the last 6 lines repeat many times.

Peter


--
 Next meeting: Online, Jitsi, Tuesday, 2020-08-04 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to