The file system is read-only in the U disk under Ubuntu . The symptom is that the existing files in the U disk cannot be deleted, and new files cannot be copied to the U disk. But don't know why. Make up your mind today to solve this problem.
Solution:
1. Run the following command in Ubuntu terminal
tail -f /var/log/syslog 2. Insert a USB stick with a read-only file system failure
3. Observe the command line output
The output part is as follows:
Jul 8 16:44:50 cslouis-pc kernel: [15595.155904] FAT: Filesystem error (dev sdb4)
Jul 8 16:44:50 cslouis-pc kernel: [15595.155905] fat_get_cluster: invalid cluster chain (i_pos 0)
It can be seen from the above that the file system mounted on the U disk is /dev/sdb4, and the file system is faulty (FAT: Filesystem error)
4. Enter the following command:
umount /media/ZCF (ZCF is the name of your U disk, you can view it with ls in the media directory)
5. Repair U disk file system failure
sudo dosfsck -v -a /dev/sdb4
After the above 5 steps, the U disk can resume the read and write function.