Ubuntu – How to delete all partion of the pen drive and create a single volume

hard drivepartitioning

I have 8GB pendrive. The current configuration of my pendrive in shown in image. It shows 6.9 GB as a free space, 2.3 MB as a FAT drive which is shown when i open it.

I want to format drive but when I am going to format it, it shows an error message which is shown in Message.

"This partition cannot be modified because it contains a partition table; please reinitialize layout of the whole device. (udisks-error-quark, 11)"

I also tried to delete the volume and create a new volume but the message shows is

Please help me to delete all partion of my drive and create a single volume with 8 GB partion.

Best Answer

Well my proposed solution might sound harsh and will definitively delete everything on that pen-drive so make sure you use the right path. I write my answer now on that setup seen on your screen-shots.

Open a terminal by pressing ctrl+alt+t.


# like said make sure you use the right path to your stick !! 
sudo umount /dev/sdd1
sudo dd if=/dev/zero of=/dev/sdd1 bs=4MB

Let this run for a while (it will take a moment to write zero on 8 GB doing 4 MB steps).

after that nothing should be on that drive anymore and you should be able to start over fresh.