从 cli 手动安装效果很好
但跑步时
sudo mount -a
编辑 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
答案1
//megaboxy/inetpub /mnt/megabo cifs username=admin, password=passwd 0 0
^ this is a problem
选项之间不能添加空格。删除它,该错误就会消失。
答案2
noauto
为所有cifs系统添加选项,并mount -a -t cifs
在网络服务后执行。
由于您没有提及您的发行版,因此此步骤可能会有所不同。