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

-- 
Cheers, Ralph.

-- 
  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