使用CIFS挂载XP共享时出现问题


0

我见过其他类似的问题,但不相信有任何一个可以解决我的问题。

我有一个VMWare虚拟Ubuntu盒子。由XP计算机托管。XP机器正在共享一个文件夹VMWebRoot

我想将此共享文件夹挂载到/var/www/Dev(我相信我应该将其实际挂载到该文件夹/mnt,然后一次添加一个符号链接,但一次只能执行一个步骤:)

/etc/hosts为XP计算机添加了带有IP /主机名的条目,并且可以ping通它。

我在fstab中添加了以下内容:

//MyHostName/VMWebRoot /var/www/Dev cifs exec,credentials=/etc/sambapassword 0 0

并创建/etc/sambapassword其中包含:

username=MyXPHostName/MyUsername
password=MyPassword

当我重新启动机箱时,系统只是在启动过程中挂载到位而没有任何错误消息的情况下“挂起”。

如果我从命令行运行mountall,则会得到以下信息:

(...Problems mounting already mounted volumes as expected)
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mountall: mount /var/www/Dev [3701] terminated with status 32

万一这是防火墙问题,我在XP盒上禁用了Windows防火墙。结果相同。

dmesg|tail 说明:

CITS.VFS: No response for command 114 mid 1
CITS.VFS: cifs_mount failed w/return code = -112

有人可以指出正确的方向吗?我是一个完整的linux新手,只能通过过多的Google搜索来解决这个问题-我不知道这是否正确/如何进行调试。

编辑:

运行smbclient //MyHostName/VMWebRoot结果:

Session request to MyHostName failed (Called name not present)
Session request to *SMBSERVER failed (Called name not present)

运行smbclient //MyHostIPAddress/VMWebRoot给出:

Session request to 192.168.99.100 failed (Called name not present)
Session request to 192. failed (Called name not present)
Session request to *SMBSERVER failed (Called name not present)

Answers:


1

终于找到了问题-似乎Windows File & Printer sharing没有为分配了我使用的IP地址的NIC启用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.