[mntent]:/etc/fstab 中的第 15 行是错误的

Dar*_*age 2 linux samba mount fstab

它可以很好地从 cli 手动安装

但是跑步的时候

sudo mount -a 
Run Code Online (Sandbox Code Playgroud)

编辑 fstab 后,我收到错误。在我看来是正确的,任何人都有建议。

我的 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>                              
proc            /proc           proc    nodev,noexec,nosuid 0       0                               
# / was on /dev/sda1 during installation                                                            
UUID=31c241fa-8ce7-4ddf-a11b-c1bb7214b9ff /               ext4    errors=remount-ro 0       1       
# swap was on /dev/sda5 during installation                                                         
UUID=f6adc6f2-a8ac-46cc-a167-fd5bdb985ca7 none            swap    sw              0       0         
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0                          

//megaboxy/inetpub /mnt/megabo cifs username=admin, password=passwd 0 0                 
//megaboxz/inetpub /mnt/megab cifs username=admin, password=passwd 0 0                 
//10.0.0.15/Share  /mnt/CodeS cifs username=admin, password=passwd 0 0                
//210.0.0.1/inetpub   /mnt/webse cifs username=admin, password=passwd 0 0                
//10.0.0.120/Kabura-Projects  /mnt/Projects  cifs username=admin, password=passwd 0 0     
Run Code Online (Sandbox Code Playgroud)

Mat*_*Mat 9

//megaboxy/inetpub /mnt/megabo cifs username=admin, password=passwd 0 0
                                                   ^ this is a problem
Run Code Online (Sandbox Code Playgroud)

您不能在选项之间放置空格。删除它,该错误应该消失。