在Archlinux上挂载可读写的ntfs

2021-04-28
360字
1分钟

今天想把在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.)

意思是元数据保存在其中,拒绝挂载

查找了一下解决办法12

yay -Sy ntfsprogs
sudo ntfsfix /dev/nvme0n1p4
sudo umount /home/username/Data
sudo mount -a

成功解决

参考:


  1. NTFS-3G (简体中文) ↩︎

  2. kali 2016:mount ntfs 分区只读  ↩︎

Avatar
Zhang.Mathias 巧者劳而智者忧,无能者无所求,饱食而遨游,泛若不系之舟