FSTAB 未正确加载

FSTAB 未正确加载

所以今天我更新了我的/etc/fstab以将一些 NFS 共享挂载到我的 NAS,虽然我可以在终端中输入并成功挂载它们,但fstab重启后似乎无法完全执行。

我正在运行 Mint,但我不确定它是否重要。

这是我的fstab文件。

# /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>
/dev/mapper/mint--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda2 during installation
UUID=0fad24fa-b1e5-48aa-b738-a06f214207b9 /boot           ext2    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=3715-6F02  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/mint--vg-swap_1 none            swap    sw              0       0


#3/13/2018 NFS shares to Synology
10.0.0.5:/volume1/homes/alex2wr    /media/alex2wr   nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
10.0.0.5:/volume1/homes/alex2wr/Downloads    ~/Downloads   nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
10.0.0.5:/volume1/video    ~/Videos   nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
10.0.0.5:/volume1/photo    ~/Pictures   nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

答案1

我认为问题在于使用的相对路径。如果您在控制台中运行:

mount -t nfs 10.0.0.5:/volume1/video ~/Videos

可以工作,因为~指的是用户的主文件夹。当您重新启动系统时 则~不会,因此您必须写入绝对路径,例如:

 10.0.0.5:/volume1/video /home/<username>/Videos

相关内容