A read-only solution to the file system attached to the USB flash drive under Linux system

Source: Internet
Author: User

Problem: Sometimes after the Linux system mounted USB flash drive, the USB file system is read-only, the expression is generally: Delete files or create files when the prompt cannot delete or create files: file system read only;

Workaround:

1. Run the following command on the Linux system

Tail-f/var/log/syslog
2. Insert a USB flash drive with read-only file system failure
3. Watch the command line output
Jul 8 16:44:50 cslouis-pc kernel: [15595.155904] Fat:filesystem error (Dev sdb1)
Jul 8 16:44:50 cslouis-pc kernel: [15595.155905] fat_get_cluster:invalid cluster chain (I_pos 0)

This indicates that the file system mounted on the USB drive is/DEV/SDB1 and the file system is faulty (fat:filesystem error)
4. First uninstall the USB flash drive
umount/media/** (your USB stick mount path)

or UMOUNT/DEV/SDB4.

Note: If the flash drive does not unload the situation:

[Email protected]:/home/wliang/my# umount/dev/sdb1
Umount:/home/wliang/my: The device is busy.
(In some cases lsof (8) or fuser (1)) can be found
Useful information about processes that use the device

Use umount-l/dev/sdb1 to force Uninstall

5. Repair USB Drive File system failure
Dosfsck-v-A/DEV/SDB4


This article is from the "Small Linux Novice" blog, please be sure to keep this source http://wliang.blog.51cto.com/9864349/1617587

A read-only solution to the file system attached to the USB flash drive under Linux system

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.