Can't format after using USB Image writer,USB sticks bricked

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
turqoisehex
Level 2
Level 2
Posts: 52
Joined: Tue Aug 03, 2010 9:33 pm

Can't format after using USB Image writer,USB sticks bricked

Post by turqoisehex »

This is a bizarre issue, that I hope someone can help with.

I used USB image writer on a stick, it took hours, and in the end the image didn't work. I tried both mint 11 (for an older box) and Peppermint 3, from inside Mint 14 Cinnamon.
I tried to do it again, with the same result. But even as admin (gksudo nemo), I couldn't get the files off the drive since it's a "read-only filesystem"...
OK, so I decided to format it using gparted, except gparted says it has no partition table :roll: so I created one, and while doing so it gave me a generic error. Now that stick is a brick, and a new partition table can't be written to it, it seems.

I thought it might be the stick, so I did it again with another one. This time it wrote it faster, but again the image wasn't bootable, I'm guessing because mint 11 is too old for the DD image write to work properly. Did it again with peppermint 3, no luck!

So now the question is, how do I get this image off of my USB??? elevated privelages doesn't work, I can't even reformat the USB stick, what is going on here? Again gparted said it had no partition table and so I made one, and the most bizarre thing is all the peppermint 3 data is still there. It shows that it has no partition, and when I try to write one says that it can't be written since it's in use by the system.

It would be amazing if the program offered an undo function to wipe the stick.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Can't format after using USB Image writer,USB sticks bri

Post by catweazel »

You can try this:

Code: Select all

$ tr "\000" "\377" < /dev/zero | dd ibs=1k count=100 of=paddedfile.bin
$ sudo dd if=paddedfile.bin of=/dev/usbX bs=5M count=1
Where /dev/usbX is the device path. The commands will write 5MBs of FFs (instead of zeroes) beginning at the start of the device. You should then be able to create a new partition table on it using gparted.

I use this method to quickly clobber SandForce-based SSDs, and the occasional recalcitrant flash drive.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
turqoisehex
Level 2
Level 2
Posts: 52
Joined: Tue Aug 03, 2010 9:33 pm

Re: Can't format after using USB Image writer,USB sticks bri

Post by turqoisehex »

Thanks for that. For the second one I mounted and unmounted it a few times, and eventually got it to create a new table. For the first one I'll try your suggestion, so thanks.
spamazoid

Re: Can't format after using USB Image writer,USB sticks bri

Post by spamazoid »

I had a similar issue and found an alternative workaround.
I had a USB stick that would keep coming up as a CD device with 2 partition tables and was mountable but errored everytime that Windows had used it and had not removed it cleanly which was bogus
it was locked in Gparted and couldn't and in windows it came up with no errors.

I tried reformatting in Linux and WIndows and it made no difference everytime it came to the same result
My fix was within windows atleast, wipe the drive with Zero's (aurely there's a Linux way to do that too) then create a new partition table and it was useable again without errors.
Locked

Return to “Software & Applications”