I got this error when trying to format a USB flash drive using GParted.

Error formatting volume

  Error wiping device: Command-line `wipefs -a "/dev/sdb1"'   
  exited with non-zero exit status 1: wipefs: error: /dev/sdb1:   
  probing initialization failed: Read-only file system  
  (udisks-error-quark, 0)

Error while formatting USB flash drive

1 Answer 1


Maybe wipefs failed because the USB flash drive is mounted. Run lsblk to check whether the flash drive is mounted, and run this command to unmount it if needed:

sudo umount /dev/sdb1

Then try to format the flash drive in GParted again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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