mount -a 不起作用,但手动安装有效

fat*_*son 1 ubuntu mount fstab

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
Run Code Online (Sandbox Code Playgroud)

/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
Run Code Online (Sandbox Code Playgroud)

sudo mount -a 既没有效果也没有错误,但手动安装有效:

 sudo mount -t auto /dev/xvdb1 /newdisk/
Run Code Online (Sandbox Code Playgroud)

df 输出显示 /newdisk 已安装

有什么问题fstab

Ste*_*ris 13

我看到你已经noauto设置了标志。这意味着“不要使用 -a 标志挂载”

man 5 fstab

          noauto do not mount when "mount -a"  is  given  (e.g.,  at  boot
                 time)
Run Code Online (Sandbox Code Playgroud)