Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got a partition that is probably created by dd, and is about 200MB on a 4GB USB stick. I am failing to delete it using GParted (the option is greyed on the right-click menu).

enter image description here

enter image description here

share|improve this question

Open a terminal

steve@mcr-pc-29334:~$ sudo fdisk  /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): d                   
Selected partition 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

so sudo fdisk /dev/sdb

then press d

to delete the partition if its the only one there it will auto select otherwise it will prompt for partition number

then press w to write the changes to the disk

done :)

share|improve this answer

Try unmounting it from commandline: umount /dev/sdb1.

If you cannot delete it in any way, create a similar partition in a loopback device and dd it to that stick.

Then, you must install the programs to create a FAT32 partition again.

share|improve this answer
up vote 1 down vote accepted

I think the reason the option was greyed out is because the stick wasn't actually unmounted. It's a bug in GParted because I unmounted it using its Unmount right-click menu option, and I didn't get a message saying the operation failed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.