今天想把在linux上下载的一个文件放到公共的分区Data
时,发现它是不可写的。
于是整开/etc/fstab
在挂载语句后面加上rw
,变成
UUID=6A268974849B /home/username/Data ntfs-3g rw,uid=1000,gid=users,umask=0022 0 0
其中参数意义参见 fstab
先取消挂载sudo umount /home/username/Data
,重新挂载mount -a
爆出错误:
Error mounting: mount exited with exit code 1: helper failed with:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged
大概意思是非特权用户不能加载使用了额外FUSE库的NTFS文件系统
使用sudo
命令,发现又有新的错误
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
意思是元数据保存在其中,拒绝挂载
yay -Sy ntfsprogs
sudo ntfsfix /dev/nvme0n1p4
sudo umount /home/username/Data
sudo mount -a
成功解决
参考: