Unable to format usb drive (udisks-error-quark, 14)

38,080

Solution 1

According to your comment the USB drive is broken. It looks as if one cannot format it or write to it in this state.

Some commands that are able to verify this by trying to read the drive are (assuming the device node is /dev/sdc):

sudo fdisk -l /dev/sdc
sudo dd if=/dev/sdc of=/dev/null bs=1m count=1

If they abort with an I/O error, the device is likely broken.

Solution 2

Test this:

Plug Your usb drive.

Open a terminal:

Run it:

sudo -i
#Verify that your device is /dev/sdc with fdisk:
fdisk -l
umount /dev/sdc
fdisk /dev/sdc
o ---#Create a new empty partition table
n ---#Create a new partition  
w ---#Write the new partition table and exit 
#Format partition in ext4 filesystem 
mkfs.ext4 /dev/sdc1

The fdisk menu:

Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Solution 3

After giving up on the USB stick, instead of throwing it away, you may try to disassemble it to see if its memory is in the form of an sd card (micro). Sometimes the USB reader electronics will fail, but the memory is still OK. Try using the card in an adapter or card reader to see if it is usable. I have successfully saved one micro sd card this way from a completely dead USB.

Share:
38,080

Related videos on Youtube

Ramvignesh
Author by

Ramvignesh

Updated on September 18, 2022

Comments

  • Ramvignesh
    Ramvignesh over 1 year

    I have been striving hard to format my USB drive. I cannot format it. Whenever I try it using the disks utility I get the following error message:

    Error unmounting /dev/sdc: Command-line `umount  "/media/ramvignesh/AGALYA SRI"' exited with non-zero exit status 1: umount: /media/ramvignesh/AGALYA SRI: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
     (udisks-error-quark, 14)
    

    Whenever I try it using GParted, it wasn't opening normally. I got the following window:

    Libparted Bug Found! - window

    Help me resolve the issues and reuse my USB drive.

    • David Foerster
      David Foerster over 9 years
      It seems that your USB drive itself (likely) or something else in the USB stack (less likely) is broken. Does the USB drive work on other machines? Can your machine read and write other USB drives?
    • Ramvignesh
      Ramvignesh over 9 years
      My machine writes and reads other usb drives with no issues. The usb drive isn't working well in any machine.
    • Ramvignesh
      Ramvignesh over 9 years
      I recently inserted my pendrive into a pc with windows 7 ultimate. As soon as I inserted it, an avast antivirus application detected a virus in my pendrive. LNK:Jenxcus-D[Trj]. Can this be a reason for the I/O error?
    • David Foerster
      David Foerster over 9 years
      Weird… I don't see how the two can be related. If Linux isn't even able to read from the drive, it cannot read and execute potentially existing malware on it – and that is before disregarding the fact that in general Windows malware doesn't run on Linux even if the hardware is intact.
    • David Foerster
      David Foerster over 9 years
      Probably. See the update to my answer.
  • Ramvignesh
    Ramvignesh over 9 years
    It isn't working. fdisk /dev/sdb shows an error message: fdisk: unable to read /dev/sdb: Input/output error
  • Ramvignesh
    Ramvignesh over 9 years
    Is there a command or software to check whether a usb drive is broken?
  • Ramvignesh
    Ramvignesh over 9 years
    :( dd shows I/O error. I can't digest that my usb is dead!
  • David Foerster
    David Foerster over 9 years
    It's a pretty common thing actually. Always make backups!
  • Ramvignesh
    Ramvignesh over 9 years
    Backup isn't a problem yaar. I have backups. But, can't afford buy one more usb. And, I still wonder why windows shows virus.
  • Ramvignesh
    Ramvignesh over 9 years
    Is there a way to get confirmation via windows that my usb is dead?
  • Ramvignesh
    Ramvignesh over 9 years
    Interesting! Can I get an image based guide on what you said?
  • David Foerster
    David Foerster over 9 years
    Probably, but that's off topic here. Go ask on SuperUser, if you don't find anything.
  • David Foerster
    David Foerster almost 6 years
    Welcome to Ask Ubuntu! I recommend to edit this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)