On Fri, Jan 28, 2022 at 07:39:12AM +0100, to...@tuxteam.de wrote:
> On Wed, Jan 26, 2022 at 09:07:31PM -0600, Martin McCormick wrote:
> > Command (m for help): p
> > Disk /dev/sdh: 28.8 GiB, 30908350464 bytes, 60367872 sectors
> > Disk model: USB   HS-SD Card
> > Units: sectors of 1 * 512 = 512 bytes
> > Sector size (logical/physical): 512 bytes / 512 bytes
> > I/O size (minimum/optimal): 512 bytes / 512 bytes
> > Disklabel type: dos
> > Disk identifier: 0x680226ff
> > 
> > /dev/sdh1         8192   137215   129024   63M  c W95 FAT32 (LBA)
> > /dev/sdh2       137216 62333951 62196736 29.7G 83 Linux
> > 
> > Command (m for help): d
> > Partition number (1,2, default 2): 
> > 
> > Partition 2 has been deleted.
> > 
> > Command (m for help): d
> > Selected partition 1
> > Partition 1 has been deleted.
> > 
> > Command (m for help): w
> > fdisk: failed to write disklabel: Operation not permitted
> 
> This looks to me like the write to the SD card failing. Since you
> excluded write protection in this thread, I'd venture the hunch that the
> SD has gone bad, in some way.
> 
> Any entries in your /var/log/syslog or /var/log/messages at this point?
> 
> Have you tried to write to the SD card, e.g.
> 
>   dd if=/dev/zero of=/dev/sdh bs=1024 count=1 oflag=sync
> 
> would overwrite the first 1K bytes with zeros. Any errors, then?
> 
> If I had to bet at this point, I'd say the SD card isn't good. This
> happens.
> 
> Cheers
> -- 
> t

I've had a few cards that are just annoying: there is a (Windows only)
utility from the industry consortium that "does" SD which is often 
recommended and has recovered one or two for me - especially some
which appear to have an Apple Mac partition ID

SD cards - unless particularly strange physical sizes - are probably
cheap enough that you can write it off to experience.

SSD drives in SD card format - don't know.

And yes, I've a "blessed" SD -> MicroSD card adapter which seems to work
better than most of the others and a good Sandisk USB2 -> SD card holder.
It is a bit random as to what will work and what doesn't.

Just my €0.02 of experience,

All the very best, as ever,

Andy Cater

Reply via email to