-
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 {} \;