德保罗 發表於 2024-2-18 00:00:00

ubuntu系统下向U盘拷贝数据提示目标是只读的

<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <span>在ubuntu11.04下使用U盘的时候,发现U盘变成只读的了,向U盘拷贝数据,提示“目标是只读的”,如下:</span></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <span><img style="max-width:100%!important;height:auto!important;"title="ubuntu系统下向U盘拷贝数据提示目标是只读的" alt="ubuntu系统下向U盘拷贝数据提示目标是只读的" src="https://zhuji.jb51.net/uploads/img/202305/36964fe84af7b03d156b5b2748e2c39a.jpg"><br>
        在网上搜素了一下,发现有一篇文章如下:<br>
        ****************************************************************************************************<br>
        今天往U盘/SD Card 写文件时发现无法写入,仔细看了下,U盘是只读权限,用了N种方法试着解决:<br>
        1. chmod u+x /media/usbdisk <br>
        提示“只读文件系统 ”无法更改。<br>
        2. sudo mount -o rw -o remount -o user -t vfat /dev/sdb1 /media/usbdisk <br>
        还是出现只读文件系统的提示。 <br>
        3. 格式化,也是提示“只读文件系统”。。<br>
        最后,解决方法:<br>
        在上,给的解释:<br>
        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). <br>
        中文翻译:产生这个问题的原因是SD卡的文件系统损坏,操作系统为了防止进一步毁坏文件系统,而将其设置成了只读。修复方法是:卸载设备后在终端下输入sudo dosfsck -v -a /dev/mmcblk0p1 即可。<br>
        检查文件系统的方法如下:<br>
        在没挂载SD卡的时候在shell中输入:tail -f /var/log/syslog,查看动态日志文件。<br>
        然后插入SD卡,可以看到日志文件的变化,<br>
        *******************************************************************************************************************<br>
        我使用了上面的方法修复,不可行。<br>
        我自己的方法是在windows下使用磁盘检测修复命令chkdsk,修复过程如下:</span></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        <span><img style="max-width:100%!important;height:auto!important;"title="ubuntu系统下向U盘拷贝数据提示目标是只读的" alt="ubuntu系统下向U盘拷贝数据提示目标是只读的" src="https://zhuji.jb51.net/uploads/img/202305/25e147f484e61d34f579e057094b6554.jpg"><br>
        修复完成以后,U盘恢复正常</span></p>
頁: [1]
查看完整版本: ubuntu系统下向U盘拷贝数据提示目标是只读的