PDA

View Full Version : [ubuntu] USB Flash cannot be reformatted/erased.



tomasrey88
August 6th, 2009, 12:19 PM
I tried to use gparted to erase/reformat my 32 gb usb flash but it wouldn't work. I set a ms dos disklabel, then when I tried to reformat it as FAT32, it gave me an error. Setting I used: primary partition, fat32, round to cylinders. Clicked apply, then it gave me an error message. Following is the error file. Please let me know how to delete my USB flash. There's a little lock shape on top of the folders in the usb flash and it wouldn't lett me drag and drop all the files into the trash. That gave an error, too. I finally managed to remove the lock shape on the usb flash by changing the properties permissions to include create and delete files, all files are delted, but it will not allow me to save any new files. I'm guessing it is because the device is not formatted fat 32, ext3, nor any file system at all, but gparted will not allow me to do this. What should I do? Thanks.

GParted 0.3.5

Libparted 1.7.1

Create Primary Partition #1 (fat32, 29.79 GiB) on /dev/sdb 00:01 ( ERROR ) create empty partition 00:01 ( SUCCES ) path: /dev/sdb1
start: 63
end: 62476784
size: 62476722 (29.79 GiB) set partitiontype on /dev/sdb1 00:00 ( SUCCES ) new partitiontype: fat32 create new fat32 filesystem 00:00 ( ERROR ) mkdosfs -F32 -v /dev/sdb1 mkdosfs 2.11 (12 Mar 2005)
mkdosfs: /dev/sdb1 contains a mounted file system.

Mighty_Joe
August 6th, 2009, 01:58 PM
mkdosfs: /dev/sdb1 contains a mounted file system.

Unmount the drive.

tomasrey88
August 6th, 2009, 05:25 PM
How do you unmount it? I thought that you unmount a mounted file system by setting a new label and repartitioning/reformatting it. This will "erase" everything from before and allow new data to be placed on the usb drive. At least that's how I understand it (correct me if I'm wrong).

The unmounting you're proposing is just something you do just before you unplug something. But just to humor you, just in case this works, I typed into the terminal:

panda@pandamonium-desktop:~$ umount /media/KINGSTON
umount: /media/KINGSTON is not mounted (according to mtab)
panda@pandamonium-desktop:~$ ls /media/KINGSTON
ls: cannot access /media/KINGSTON: No such file or directory

Please, how do I reformat the USB flash to delete all the data so that I could reuse it?

Thanks,
:P

Bucky Ball
August 6th, 2009, 05:30 PM
Right click on it and unmount.

You can also use a terminal:


sudo umount /media/KINGSTON
Run:


sudo blkidIs it there? You could try:


sudo umount /dev/sd**

tomasrey88
August 6th, 2009, 05:32 PM
I solved it (yay!). I reformatted it with no format. Then, I formatted it as FAT32.