Skip to content

Instantly share code, notes, and snippets.

@gayanvirajith
Last active May 11, 2017 18:17
Show Gist options
  • Save gayanvirajith/0febc39d8cafcfb74d758b38905fb3cc to your computer and use it in GitHub Desktop.
Save gayanvirajith/0febc39d8cafcfb74d758b38905fb3cc to your computer and use it in GitHub Desktop.
How to fix write proceted usb in ubuntu
  • Run Command df -Th to find out the location info about usb drive

  • Unmount the drive

umount /media/gayan/{usb-name} (the path where you seen in Mounted On column)

  • Run the following command to fix the drive

dosfcsk -a /dev/{path-info} (the path where you see in File System column)

  • Finaly try to copy and paste some file into the usb.

Bonus command (if you need recursive delete any .lnk files)

find . -name '*.lnk' -exec rm -r {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment