Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why the target of copying data to USB disk in ubuntu system is read-only

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "Why the target of copying data to U disk under ubuntu system is read-only". In daily operation, it is believed that many people have doubts about why copying data to U disk under ubuntu system is read-only. The editor consulted all kinds of materials and sorted out simple and useful operation methods. I hope it will be helpful for you to answer the question of "Why do you copy data to U disk under ubuntu system and the target is read-only?" Next, please follow the editor to study!

When using a USB disk under ubuntu11.04, you find that the USB disk has become read-only. Copy the data to the USB disk, prompting "the target is read-only", as follows:

After searching the Internet, I found an article as follows:

*

Today, when writing files to U disk / SD Card, I found that I could not write. After taking a closer look, I found that U disk has read-only permission. I tried to solve it in N ways:

1. Chmod uplix / media/usbdisk

Prompt the read-only file system cannot be changed.

2. Sudo mount-o rw-o remount-o user-t vfat / dev/sdb1 / media/usbdisk

There is still a prompt for a read-only file system.

3. Formatting is also a prompt for "read-only file system". No, no, no.

Finally, the solution:

On the above, the explanation given:

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 corrupted and the operating system has set it to read-only in order to prevent further damage to the file system. The repair method is: after uninstalling the device, type sudo dosfsck-v-a / dev/mmcblk0p1 under the terminal.

Check the file system as follows:

When the SD card is not mounted, type: tail-f / var/log/syslog in shell to view the dynamic log file.

Then insert the SD card and you can see the changes in the log file.

*

I used the above method to fix it, which is not feasible.

My own method is to use the disk detection repair command chkdsk under windows. The repair process is as follows:

After the repair is completed, the USB drive returns to normal.

At this point, the study on "Why ubuntu system copy data to USB disk is read-only" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report