12

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?

4
  • ? Would probably work with a GParted live cd ( usually does ) distrowatch.com/… Jun 18 '17 at 13:12
  • try: umount /dev/sdb then retry your command
    – Olimjon
    Jun 18 '17 at 13:21
  • @KnudLarsen Please post your comment as an answer. I will then delete the community wiki answer below. (so you can get the reputation)
    – fosslinux
    Apr 27 '18 at 7:04
  • @Olimjon Please post your comment as an answer. I will then delete the community wiki answer below. (so you can get the reputation)
    – fosslinux
    Apr 27 '18 at 7:25
17

Use the -f (force) option:

wipefs -af /dev/sdb
12

Unmount the disk and all the partitions on it:

sudo umount /dev/sdb*

Then retry the wipe.

0

Use a GParted live CD (or some other distribution containing GParted) to wipe the partition.

1
  • 5
    I recommend that you edit this with details explaining how to do that. Apr 27 '18 at 14:27
0

Just wanted to add, in my case I had attached 4 drives that were previously in a RAID on that machine. I had never stopped the existing RAID after disconnecting the drives, so I had to:

mdadm --stop /dev/mdX, replacing X with whatever your previous RAID was.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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