LeRoy Cressy via plug on 31 Jan 2021 11:27:09 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [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!
With UEFI and gpt disks you have to create 2 partitions on your flash drive. The first partition needs to be a vfat (fat32) partition. I gave a talk about this back in 2017. I created a video which can be found at:
https://odysee.com/@the-rev/UEFI-Bootable-Flash-Drive
In the description of the video there is a
link to the slides.
-- Rev. LeRoy D. Cressy mailto:rev.cressy@prontonmail.com /\_/\ ( o.o ) > ^ < Cell Phone: 267-668-9686 gpg fingerprint: 8AD5 35EF 1FDF F1A7 E483 8CCE A50D 4E81 C34B 77CC For info on gpg: https://gnupg.org/ For secure Cell Phone: https://whispersystems.org/ Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me. (John 14:6) You can find me on the following: Social Media: minds.com https://www.minds.com/lrcressy/ gab.com https://gab.com/the-rev pocketnet.app https://pocketnet.app/therev flote.app https://flote.app/therev mewe.com https://mewe.com/i/revleroycressy xephula.com https://xephula.com/therev facebook.com https://www.facebook.com/leroy.cressy/ twitter.com https://twitter.com/lrcressy Video: ugetube.com https://ugetube.com/@the-rev bitchute.com https://www.bitchute.com/channel/the-rev/ brighteon.com https://www.brighteon.com/channels/therev rumble.com https://rumble.com/user/lrcressy odysee.com https://odysee.com/@the-rev
___________________________________________________________________________ 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