挂载网络驱动器

Sim*_*enz 5 fstab mount 11.04

由于我将 ubuntu 更新为 natty narwhal(从 10.04 开始),因此我的挂载脚本不再起作用。

这些脚本将本地网络中 NAS (WD mybookworld) 中的文件夹挂载到我的主文件夹中的文件夹中。

脚本看起来像这样:

#!/bin/bash
sudo mount //192.168.2.222/Public/Shared\ Music/ /home/simon/Musik/
Run Code Online (Sandbox Code Playgroud)

错误:

mount: wrong fs type, bad option, bad superblock on //192.168.2.222/Public/Shared Music/,
   missing codepage or helper program, or other error
   (for several filesystems (e.g. nfs, cifs) you might
   need a /sbin/mount.<type> helper program)
   Manchmal liefert das Syslog wertvolle Informationen – versuchen
   Sie  dmesg | tail  oder so
Run Code Online (Sandbox Code Playgroud)

现在,因为脚本不再工作,我决定将挂载进程添加到我的 fstab 中,因为每次启动时都应该挂载网络驱动器。

我的 fstab 条目如下所示:

//192.168.2.222/Public/Shared\ Music/ /home/simon/Musik cifs credentials=/home/simon/.smbcredentials 0 0
Run Code Online (Sandbox Code Playgroud)

但它也不起作用。我在启动过程中收到一条消息,无法安装 Musik。

是否有任何日志文件可以检查错误?系统是全新安装的11.04。

你好

Lek*_*eyn 8

错误消息非常清楚,它无法识别文件系统类型。
/sbin/mount.cifscifs-utils包提供,您需要安装该包以挂载 Samba 共享。


Sca*_*ine 5

试试sudo apt-get install smbfs。那应该重新安装必要的 CIFS 助手来安装驱动器。不知道为什么这会在升级后突然停止工作。