Problem: Sometimes after the Linux system mounted USB flash drive, the USB file system is read-only, the expression is generally: Delete files or create files when the prompt cannot delete or create files: file system read only;
Workaround:
1. Run the following command on the Linux system
Tail-f/var/log/syslog
2. Insert a USB flash drive with read-only file system failure
3. Watch the command line output
Jul 8 16:44:50 cslouis-pc kernel: [15595.155904] Fat:filesystem error (Dev sdb1)
Jul 8 16:44:50 cslouis-pc kernel: [15595.155905] fat_get_cluster:invalid cluster chain (I_pos 0)
This indicates that the file system mounted on the USB drive is/DEV/SDB1 and the file system is faulty (fat:filesystem error)
4. First uninstall the USB flash drive
umount/media/** (your USB stick mount path)
or UMOUNT/DEV/SDB4.
Note: If the flash drive does not unload the situation:
[Email protected]:/home/wliang/my# umount/dev/sdb1
Umount:/home/wliang/my: The device is busy.
(In some cases lsof (8) or fuser (1)) can be found
Useful information about processes that use the device
Use umount-l/dev/sdb1 to force Uninstall
5. Repair USB Drive File system failure
Dosfsck-v-A/DEV/SDB4
This article is from the "Small Linux Novice" blog, please be sure to keep this source http://wliang.blog.51cto.com/9864349/1617587
A read-only solution to the file system attached to the USB flash drive under Linux system