Solve the problem that centos automatically mounts the USB flash drive/SD card and is recognized as a read-only file system.

Source: Internet
Author: User

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,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.