我在新安装的 Raspberry Pi Model B+ 上运行 Raspbian Jessie。我几个小时前使用过apt-get update
,apt-get upgrade
系统应该是最新的。
我正在尝试安装连接到我的 AVM Fritz!Box 的 USB 磁盘。为此,我将其添加到我的 /etc/fstab 中
//192.168.178.1/FRITZ.NAS/VBTM-Store-n-Go-01 /home/pi/fb cifs username=myuser,password=mypass,workgroup=WORKGROUP,users,auto,user_xattr 0 0
重新启动 Raspberry Pi 后,USB 磁盘未安装到我的 /home/pi/fb 目录。
Asudo mount -a
立即解决了这个问题,我可以访问 USB 磁盘。
我查看了一下dmesg
,发现几个标记为红色的条目。其中一些似乎解决了这个问题:
[ 3.774312] systemd[1]: Job kbd.service/start deleted to break ordering cycle starting with basic.target/start
[ 3.868534] systemd[1]: Job raspi-config.service/start deleted to break ordering cycle starting with basic.target/start
[ 3.964346] systemd[1]: Job console-setup.service/start deleted to break ordering cycle starting with basic.target/start
[ 14.979342] CIFS VFS: Error connecting to socket. Aborting operation.
[ 14.979767] CIFS VFS: cifs_mount failed w/return code = -101
[ 18.085217] CIFS VFS: Error connecting to socket. Aborting operation.
[ 18.087841] CIFS VFS: cifs_mount failed w/return code = -101
[ 18.997658] bcm2708_fb soc:fb: Unknown ioctl 0x40187a22
[ 86.698592] CIFS VFS: Autodisabling the use of server inode numbers on \\192.168.178.1\FRITZ.NAS. This server doesn't seem to support them properly. Hardlinks will not be recognized on this mount. Consider mounting with the "noserverino" option to silence this message.
为什么 Raspbian 在启动时忽略 fstab?
答案1
我将“noauto,x-systemd.automount”添加到 fstab 中的挂载选项中,就像“DavidCWGA”建议的那样:https://github.com/raspberrypi/linux/issues/824
现在为我工作!