Linux USB content for read-only files cannot store other content solutions

Source: Internet
Author: User

Do not know what situation the recent U disk problems, open U disk after all the files have a lock on the logo, just start not too care, and then want to continue in the U disk in the storage of things only to find that it is at this time the U disk content is only read files, how to solve this problem? After looking at a lot of people's description, someone said to change the U-disk, some say it is formatted u disk, but u disk in a lot of documents, this kind of words always feel a bit inappropriate, but in my insistence finally found a good way to solve the problem. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0011.gif "alt=" J_0011.gif "/>

Insert the U disk into the Linux system and mount it directly. However, in the U-disk files are read-only files, modify the permissions can not be changed.

Here's how to fix it:

(1), before inserting the U-disk, execute the instruction Tail-f/var/log/syslog, for real-time viewing the state of the system using the U-disk. Keep this working window, and open an additional

(2), insert the U-disk, through the first window can be clearly seen, the insertion process system of the corresponding situation

(3), sudo fdisk-l use this directive to view the partition of the U-disk (Here I am the/DEV/SDB1 partition), and use DF to see the mount point of the U-disk (My U-disk is mounted on the/MEDIA/LQ/USB)

(4), Execution instruction Umount/media/lq/usb

----Unloading the U-disk

(5), execute instruction sudo dosfsck-v-a/dev/sdb1

----Repairing the U-disk File system

(6), execution instruction Mount/dev/sdb1/media/lq/usb

----Re-mount the U-disk, it's done!!!

You can look at your own U-disk, and then copy the files and other operations can be, and the previous file is intact, you can continue to use the U-disk.

This article is from the "11561636" blog, please be sure to keep this source http://11571636.blog.51cto.com/11561636/1860333

Linux USB content for read-only files cannot store other content solutions

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.