I found that I could not write files to the USB flash drive/SD card today. I carefully checked that the USB flash drive is read-only. I tried to solve this problem using n methods:
1. chmod U + x/Media/usbdisk
The prompt "read-only file system" cannot be changed.
2. sudo Mount-o rw-O remount-o User-T vfat/dev/sdb1/Media/usbdisk
A prompt is displayed for the read-only file system.
3. Formatting also prompts "read-only file system "..
Finally, the solution is as follows:
In https://bugs.launchpad.net/ubuntu/+bug/228608
Chris Coulson
Explanations:
This card has filesystem errors without a doubt. They might be minor
And it might work in other devices, but the kernel has mounted it
Read-only to prevent the filesystem from being damaged further. Please
Run 'sudo dosfsck-v-A/dev/mmcblk0p1 'After unmounting the device (do
Not do this whilst it is mounted ).
The cause of this problem is that the file system of the SD card is damaged. The operating system sets it to read-only to prevent further destruction of the file system. The solution is to uninstall the device and enter sudo dosfsck-v-A/dev/mmcblk0p1 in the terminal.
To check the file system, follow these steps:
If the SD card is not mounted, enter tail-F/var/log/syslog in the shell to view the dynamic log file.
Insert the SD card to view the changes in the log file,