Solution for file read-only mode of USB flash disk in linux

Source: Internet
Author: User

Solution for file read-only mode of USB flash disk in linux

I often use a USB flash drive to transmit files in ubuntu. Recently I don't know why, the USB flash drive can be used normally in windows, but the file becomes read-only in linux, unable to copy and paste. the method of searching online is relatively simple and has become more practical after changes. so record it. for your sharing.

It is best to run the following command under the root user:

(1) run this command First: tail-f/var/log/syslog

(2) plug in the USB flash drive (USB flash drive with read-only File Permission)

(3) fdisk-l

From the above we can see that the file system mounted to the U disk is/dev/sdc1, and my computer is a dual system, different computers may be different. this command is usually used to know some information about the system disk.

(4) hanging on a USB flash drive, you can view the path of the USB flash drive through Properties

Umount/media/cjl/UUI ############ cjl is my user name and UUI is my USB flash drive name

(5) sudo dosfsck-v-a/dev/sdc1

After tests and the above five steps, the problem is solved.

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.