我有一台运行 NTFS 硬盘的服务器(用作 Samba 共享),但我似乎无法让它自动挂载,我也不知道为什么。我可以使用“mount -a”手动安装它。
我的 /etc/fstab 条目:
UUID=615445694442449475 /mnt/shared-git/ ntfs-3g defaults,users,uid=warepire,gid=users,dmask=0022,fmask=0111 0 0
这是自动挂载失败时启动时的 systemd 日志,失败总是相同的:
Jul 28 07:46:37 Nucleus systemd-fstab-generator[121]: Found entry what=/dev/disk/by-uuid/615445694442449475 where=/mnt/shared-git type=ntfs-3g nofail=no noauto=no
Jul 28 07:46:40 Nucleus systemd[1]: mnt-shared\x2dgit.mount: About to execute: /usr/bin/mount /dev/disk/by-uuid/615445694442449475 /mnt/shared-git -t ntfs-3g -o defaults,users,uid=warepire,gid=users,dmask=0022,fmask=0111
Jul 28 07:46:40 Nucleus systemd[1]: mnt-shared\x2dgit.mount: Forked /usr/bin/mount as 184
Jul 28 07:46:40 Nucleus systemd[184]: mnt-shared\x2dgit.mount: Executing: /usr/bin/mount /dev/disk/by-uuid/615445694442449475 /mnt/shared-git -t ntfs-3g -o defaults,users,uid=warepire,gid=users,dmask=0022,fmask=0111
Jul 28 07:46:40 Nucleus systemd[1]: mnt-shared\x2dgit.mount: Changed dead -> mounting
Jul 28 07:46:40 Nucleus systemd[1]: mnt-shared\x2dgit.mount: Child 184 belongs to mnt-shared\x2dgit.mount
Jul 28 07:46:40 Nucleus systemd[1]: mnt-shared\x2dgit.mount: Mount process exited, code=exited status=12
根据ntfs-3g手册,状态12表示它不是NTFS分区。
硬盘是在Linux下格式化和分区的。
来自 fdisk 的信息:
Disk /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x26152614
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 156301487 156299440 74.5G 7 HPFS/NTFS/exFAT
系统版本:
systemd 232
+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
核心:
Linux Nucleus 4.10.9-1-ARCH #1 SMP PREEMPT Sat Apr 8 12:39:59 CEST 2017 x86_64 GNU/Linux
这里可能出了什么问题?