Casey Bralla via plug on 31 Jan 2021 04:43:53 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Missing Space on USB Disk / Reset to fully clean?


This has been a recurring problem from me.  I've been able to work around it by mucking around randomly enough times until I fix it (somehow!), but despite my above-average physical attractiveness, I don't understand what is happening.   I hope somebody can help me figure this out.


Sometimes when I try to create a bootable USB disk to try out a new distro, the process fails.

I always use this command to create the bootable USB disk:

dd if=distro.iso of=/dev/sdd bs=4M

But occasionally this disk won't boot so I try to repeat the command.   In about 5% of the times when I repeat the command I'll get an error message like:

dd: error writing '/dev/sdd': No space left on device
3+0 records in
2+0 records out

Using cfdisk to look at the partition table shows that my 4 GByte USB disk now has only 9 MBytes!  Somebody stole my disk space!

I've tried using gdisk with the "z" command to zap the partition table, and I think it has worked sometimes, but it didn't work for me this morning.

I've also tried using dd to write all zeros to the disk, with the same result.


GPT disks are still confusing to me.   I'm assuming the USB disk has allocated space for GPT tables and the like, but I'm bumfuzzled.   Can anybody explain this, or tell me how I can completely reset a USB disk?


TIA!

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug