最近发现插入u盘和移动硬盘后都显示只读,请教这是什么原因造成的,如何解决。
如果您的系统是从 Debian 8 时代开始一路跟随 testing 升级过来的,看看是不是这个问题:
我把u盘格式化为fat16后问题就消失了。但对于移动硬盘,因为有很多文件不能格式化,还是老样子。查看了fstab,如下:http://paste.debian.net/993093/
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=5c6fdd56-2fbd-461c-a837-05c2a8ffc4a2 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=9a322c64-d7e7-4a20-9b79-1ffa01ef2388 /home ext3 defaults 0 2
# /usr was on /dev/sda2 during installation
UUID=878d37a2-80cc-4708-ac45-d1f0b58b0621 /usr ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=f9b85c65-b421-4858-aafb-ae6b31b7b840 none swap sw 0 0
我是重新安装的Debian 9,不知道那个根目录的errors=remount-ro
是啥意思。
看是否能解答您的疑问.
感谢提示。我阅读了这个帖子后,查看了/etc/fstab
,发现移动硬盘加载后,分区信息并未出现在文件中。
man:
fstab - static information about the filesystems
移动硬盘是动态处理的,fstab 是静态的.
据我所知处理移动存储设备通常用不到fstab,除非是系统或者home之类的分区在移动存储设备上.
原来这个问题我问过,还有vickycq的回答。今天解决了。
-
安装了ntfs-3g。虽然不知道这是干啥用的。在Thunar中不再显示为只写图标。但还是不能写入。
-
安装了pcmanfm,结果可以写入了。
总之,问题是vickycq给解决的,但不知所以然。
参考:
http://forum.ubuntu.com.cn/viewtopic.php?f=165&t=476269&p=3156612
man了一下,原来ntfs-3g是ntfs驱动,功能好强大。看来如果不安装这个,是个ntfs分区都写入不了的。
今天挂载移动硬盘又遇到了错误: “$MFTMirr does not match $MFT”,解决方法:
sudo ntfsfix /dev/sdc2