Unable to delete USB Drive partitions (Block size error)

The problem you are describing was caused by a low-level device tool (like dd) writing blocks at the wrong size directly onto the device.

To fix this, you need to re-write the device blocks to the appropriate size. This can be done with dd. Double check your output device before running the command

sudo dd if=/dev/zero of=/dev/sdd bs=2048 count=32

Once the dd command is done, you should be able to access your device through gparted.


You Can always try using fdisk

Open a terminal (Ctl+ALt+t) and type

sudo fdisk /dev/sdy

where /dev/sdy = The device file for your flash drive. Once you get fdisk open, type p to list the partition table, Once you know where it is located you can use d # to delete it. (# = The partition; ExAMPLE d 1, d 2) w writes the partition table back to the disk and q quits, m for help)

If fdisk fails, Then I would use dd (Be careful using this it got it didn't get its nickname for no reason)

sudo dd if=/dev/zero of=/dev/sdy bs=512 count=1

Of course /dev/sdy should be replaced with the actual device for your flash drive, will do that for you. You can increase the count= number to write zeros to more of the disk, or omit it entirely to overwrite the entire disk. Needless to say, if you do this, you irretrievably lose any files that may have been stored on the disk.


wipefs -a /dev/your-device

it will erase all partition in your disk