Ubuntu when you use a USB flash drive, you will find that the USB flash drive has become read-only. when you copy data to the USB flash drive, the system prompts that the target is read-only. if you need it, refer to the following tag: Ubuntu.
When using a USB flash drive in ubuntu11.04, I found that the USB flash drive has become read-only and copied data to the USB flash drive. the following message is displayed:
I searched the internet and found an article as follows:
**************************************** **************************************** ********************
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 the above, the explanation is as follows:
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,
**************************************** **************************************** ***********************************
The above method is not feasible.
My own method is to use the disk detection and repair command chkdsk in windows. the repair process is as follows:
After the repair is completed, the USB flash drive returns to normal.