[SOLVED] USB stick stuck on UDF

Questions about hardware, drivers and peripherals
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
stringfellow
Level 2
Level 2
Posts: 54
Joined: Mon Oct 28, 2019 7:39 pm
Location: Central Coast, CA

[SOLVED] USB stick stuck on UDF

Post by stringfellow »

I am trying to repurpose a USB stick that previously had a Win 10 repair disc on it. When I deleted the one partition it had in Disks instead of saying 16GB free space it says CCCOMA_xxx 16GB UDF. I tried using USB Stick Formatter to see if it had some magic it would do to remove UDF, but no luck.

Do I have to use dd or some such now to ditch UDF and properly format this USB stick?

BTW, I can create a new partition and format it whatever I want and use the USB stick just fine. I just don't like that under that partition somewhere it is 'stuck' on UDF, whatever that means.

Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10103
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: USB stick stuck on UDF

Post by Flemur »

stringfellow wrote: Sun Nov 10, 2019 2:35 pmWhen I deleted the one partition it had in Disks instead of saying 16GB free space it says CCCOMA_xxx 16GB UDF. I tried using USB Stick Formatter to see if it had some magic it would do to remove UDF, but no luck.
Try gparted; the device selector is in the upper-right corner of the GUI.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
stringfellow
Level 2
Level 2
Posts: 54
Joined: Mon Oct 28, 2019 7:39 pm
Location: Central Coast, CA

Re: USB stick stuck on UDF

Post by stringfellow »

Thanks Flemur it's time I installed Gparted anyway. Looks really good.
stringfellow
Level 2
Level 2
Posts: 54
Joined: Mon Oct 28, 2019 7:39 pm
Location: Central Coast, CA

Re: USB stick stuck on UDF

Post by stringfellow »

GParted no help unfortunately. Doesn't give me any options besides Information. But I'm sure GParted will be useful for other stuff in future.

And strangely it is showing 6GB used and 10GB free in a 16GB USB stick. And this is with no partitions.

Should I research dd?

PS - This is a very low priority kind of thing. It's more for my own knowledge really.
User avatar
AndyMH
Level 20
Level 20
Posts: 11798
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: USB stick stuck on UDF

Post by AndyMH »

Suggest you install mkusb:
https://help.ubuntu.com/community/mkusb
It has an option to 'restore to a standard storage device' which will be safer than using dd. But if you want to use dd:

Code: Select all

sudo dd if=/dev/zero of=/dev/sdx bs=512 count=1
This will wipe the partition table on device sdx, so replace sdx with the mount for the usb stick. You can find out what this is with gparted, e.g. the stick plugged into my laptop is showing in gparted as sdd. Once this has been done you will need to use gparted to create a new partition table, suggest MSDOS, on the stick and then a new fat32 partition. If that doesn't work you could try:

Code: Select all

sudo dd if=/dev/zero of=/dev/sdx
which will wipe the whole stick, and may take some time.

Be warned, not for nothing is dd also known as 'disk destroyer', get the syntax wrong, e.g. point to the wrong device, and you could wipe your system.
Thinkcentre M720Q - LM21.1 cinnamon, 4 x T430 - LM20.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
stringfellow
Level 2
Level 2
Posts: 54
Joined: Mon Oct 28, 2019 7:39 pm
Location: Central Coast, CA

Re: USB stick stuck on UDF

Post by stringfellow »

Thanks AndyMH. I will check out mkusb. And carefully try dd commands if that fails.

Marking this thread as solved as this is not a huge issue.
Locked

Return to “Hardware Support”