prushik--- via plug on 31 Jan 2021 09:56:23 -0800


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

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


You don't need cfdisk at all, it serves no purpose in your scenario since you are overwriting everything it does with your dd command. theres shouldn't be any reason that gentoo works differently that debian, its the same dd. did you test these both on the same machine? if not, then it seems even more like a hardware issue like I suggested earlier. if yes, then I would guess that you will eventually see the issue on debian as well.
once again, I suggest checking dmesg after the issue occurs. looking at logs should always be the first step in diagnosing errors. without that, any answer will just be a guess.

On January 31, 2021 11:48:30 AM EST, Casey Bralla via plug <plug@lists.phillylinux.org> wrote:

Well, I tried the dd and cfdisk commands on a stock Debian system, and they worked as expected.   The problem seems to be associated with my Gentoo "~AMD64 " system.

It's nice to keep some OS diversity available.



On 1/31/21 7:42 AM, Casey Bralla via plug wrote:

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