/etc/fstab 中的第 13 行錯誤

/etc/fstab 中的第 13 行錯誤

我是 Ubuntu 新手,我一直在嘗試安裝 NAS 驅動器。在這個過程中,看起來我已經塞滿了我的/etc/fstab。現在,當我啟動 VM/ubuntu 時,我無法安裝驅動器 0,它要求我繼續手動安裝或跳過(我選擇跳過)。

當我運行該命令時,mount -a它告訴我第 13 行有問題。

請看下面:

# /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/ubuntu--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=027ef0b9-53f8-4a08-94fa-4d0cd9c59b86 /boot           ext2    defaults        0       2
/dev/mapper/ubuntu--vg-swap_1 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 
0 0
//192.168.0.21/videoii /media/c3po-videoii cifs credentials=/home/coolhandluke/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

答案1

您在第 13 行中有dumppass參數的值(在您的情況下分別為00),該值應該位於初始聲明後的第 12 行。只需在聲明後將這兩個移至第 12 行,如下所示:

/dev/mapper/cryptswap1 none swap sw 0 0

相關內容