CIFS FSTAB 不会在启动时启动,并且 mount -a 无法按预期工作

CIFS FSTAB 不会在启动时启动,并且 mount -a 无法按预期工作

我的 CIFS 驱动器出现了奇怪的问题。它在启动时无法挂载,而且在系统启动后,我再次尝试使用 mount -a 但没有成功。但是,当我卸载不存在的共享时,它会使用 mount -t 命令挂载(参见下面的代码)。当 df 和实际文件夹报告不同内容时,Ubuntu 似乎正在跟踪它已挂载。

这是在 Ubuntu 14.04 LTS 服务器上

我想说的是,这似乎是在我为该服务器为 KVM 添加桥接接口时开始的,所以我不确定这是否导致了这种情况。

john@Main-KVM:~$ sudo mount -a -vvv
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: UUID=4449ee44-4389-4aa0-b47b-6ef85b43b7da already mounted on /boot
mount: UUID=FEFA-B2F0 already mounted on /boot/efi
mount: //192.168.0.10/Public/public already mounted on /home/john/UN_RAID
nothing was mounted




john@Main-KVM:~$ df
Filesystem                     1K-blocks      Used Available Use% Mounted on
/dev/mapper/Main--KVM--vg-root 222912116 116356924  95208864  55% /
none                                   4         0         4   0% /sys/fs/cgroup
udev                             8192876         4   8192872   1% /dev
tmpfs                            1641356      1156   1640200   1% /run
none                                5120         0      5120   0% /run/lock
none                             8206772         4   8206768   1% /run/shm
none                              102400         0    102400   0% /run/user
/dev/sda2                         241965     97760    131713  43% /boot
/dev/sda1                         523248      3468    519780   1% /boot/efi
/home/john/.Private            222912116 116356924  95208864  55% /home/john




john@Main-KVM:~$ sudo umount /home/john/UN_RAID
umount: /home/john/UN_RAID: not mounted





john@Main-KVM:~$ sudo mount -a -vvv
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: UUID=4449ee44-4389-4aa0-b47b-6ef85b43b7da already mounted on /boot
mount: UUID=FEFA-B2F0 already mounted on /boot/efi
mount: spec:  "//192.168.0.10/Public/public"
mount: node:  "/home/john/UN_RAID"
mount: types: "cifs"
mount: opts:  "guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777"
mount: external mount: argv[0] = "/sbin/mount.cifs"
mount: external mount: argv[1] = "//192.168.0.10/Public/public"
mount: external mount: argv[2] = "/home/john/UN_RAID"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw,guest,iocharset=utf8,file_mode=0777,dir_mode=0777"
mount.cifs kernel mount options: ip=192.168.0.10,unc=\\192.168.0.10\Public,iocharset=utf8,file_mode=0777,dir_mode=0777,user=,prefixpath=public,pass=********
nothing was mounted



john@Main-KVM:~$ df
Filesystem                      1K-blocks       Used  Available Use% Mounted on
/dev/mapper/Main--KVM--vg-root  222912116  116356924   95208864  55% /
none                                    4          0          4   0% /sys/fs/cgroup
udev                              8192876          4    8192872   1% /dev
tmpfs                             1641356       1156    1640200   1% /run
none                                 5120          0       5120   0% /run/lock
none                              8206772          4    8206768   1% /run/shm
none                               102400          0     102400   0% /run/user
/dev/sda2                          241965      97760     131713  43% /boot
/dev/sda1                          523248       3468     519780   1% /boot/efi
/home/john/.Private             222912116  116356924   95208864  55% /home/john
//192.168.0.10/Public/public   9523094052 5631232832 3891861220  60% /home/john/UN_RAID

这是它当前在我的 fstab 文件中的显示方式。

//192.168.0.10/Public/public /home/john/UN_RAID cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

相关内容