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
signature.asc
Description: PGP signature