wipefs device or resource busy

I am trying to format a drive using the Ubuntu Disks utility. When I select and try to format the drive I get

Error wiping device.  Command-line wipefs -a "/dev/sdb" exited with non-zero exit status 1: wipefs: error: /dev/sdb: probing initialization failed: Device or resource busy (udisks-error-quary,0)

Nothing I know of us using it and I am doing this from a Live CD boot. What to do?


Solution 1:

Use the -f (force) option:

wipefs -af /dev/sdb

Solution 2:

Unmount the disk and all the partitions on it:

sudo umount /dev/sdb*

Then retry the wipe.