Mount

添加到 fstab 的硬碟在啟動時未安裝 – Pop-OS 20.04

  • June 21, 2020

我按照教程向文件中添加了三個驅動器,fstab但只有一個驅動器在啟動時掛載。我試過sudo mount -a並安裝了所有三個驅動器。

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>
UUID=b964dcd3-f8cf-45e4-b903-a90febb29195  /  ext4
noatime,errors=remount-ro  0  0
PARTUUID=bdc5a06f-06c7-4b1c-bf9e-e8770d24ce87  /boot/efi  vfat
umask=0077  0  0
UUID=B28691348690F9D5   /media/data ntfs    defaults    0 0
UUID=228C52CC8C5299DD   /media/data ntfs    defaults    0 0
UUID=40D6A802D6A7F676   /media/data ntfs    defaults    0 0

您正在將所有三個 NTFS 分區掛載到同一個掛載點 ( /media/data)。您可能想修改您/etc/fstab喜歡的條目:

UUID=B28691348690F9D5   /media/data1 ntfs    defaults    0 0
UUID=228C52CC8C5299DD   /media/data2 ntfs    defaults    0 0
UUID=40D6A802D6A7F676   /media/data3 ntfs    defaults    0 0

不要忘記sudo mkdir /media/data{1..3}在執行之前創建掛載點 () sudo mount -a

引用自:https://unix.stackexchange.com/questions/594084