lsb_release 和 uname
[wellbye@AY130622174524343529Z:~]lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3
LTS Release: 16.04
Codename: xenial
[wellbye@AY130622174524343529Z:~]uname -a
Linux AY130622174524343529Z 4.4.0-105-generic #128-Ubuntu SMP Thu Dec 14 12:42:11 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
/etc/fstab
:
UUID=e2048966-750b-4795-a9a2-7b477d6681bf / ext4 errors=remount-ro 0 1
/dev/xvdb1 /newdisk ext3 rw,user,noauto,exec,utf8 0 0
sudo mount -a
既没有效果也没有错误,但手动安装有效:
sudo mount -t auto /dev/xvdb1 /newdisk/
有什么问题吗fstab
?
答案1
我看到你已经noauto
设置了标志。这方法“不要使用 -a 标志安装”
从man 5 fstab
noauto do not mount when "mount -a" is given (e.g., at boot
time)
答案2
使用 UUID 安装时应采用以下格式
UUID=UUIDNUMBER /directory ext4 rw,user,exec 0 0