Centos mount remote WindowXP
XP登陆需密码,已共享一个全权限文件夹,CENTOS 6已经运行的服务有
[root@localhost ~]# chkconfig --list | grep "3:on"
avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]# yum install -y cifs-utils smbclient
... ...
... ...
Updating : keyutils-libs-1.4-3.el6.i686 1/6
Updating : keyutils-libs-devel-1.4-3.el6.i686 2/6
Installing : keyutils-1.4-3.el6.i686 3/6
Installing : cifs-utils-4.8.1-5.el6.i686 4/6
Cleanup : keyutils-libs-devel-1.4-1.el6.i686 5/6
Cleanup : keyutils-libs-1.4-1.el6.i686 6/6
... ...
... ...
挂载时出现一个比较奇怪的现象
[root@localhost ~]# mount -t cifs //192.168.8.108/WIN WIN/
mount: wrong fs type, bad option, bad superblock on //192.168.8.108/WIN,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
[root@localhost ~]# mount -t cifs //192.168.8.108/WIN WIN/ -o username=
即第一次出错,但是第二次加了 "-o username=" 参数但根本没有参数值,反而加载成功,而且密码也不需要。待考证
[root@localhost ~]# mount -t cifs //192.168.8.104/WIN/ /root/WIN/ -o username=Administrator
mount: //192.168.8.104/WIN/ is not a valid block device
[root@localhost ~]# mount -t cifs //192.168.8.104/WIN/ /root/WIN -o username=Administrator
mount: //192.168.8.104/WIN/ is not a valid block device
[root@localhost ~]# mount -t cifs //192.168.8.104/WIN /root/WIN -o username=Administrator ### SUCCESS!!!
Ubuntu mount remote WindowXP
类似操作熟悉的不得了,但是家里在虚拟机上安装的UBUNTU10.10一直挂载不上XP的共享文件夹,一直提示文件夹属于只读,难道这是不能挂载的理由?
mount: block device //XXX.XXX.XX.XX/myServer is write-protected, mounting read-only
mount: cannot mount block device //XXX.XXX.XX.XX/myServer read-only
GOOGLE一下原来是缺少SMBFS的支持... ...
Prerequisites
You must have a windows machine (or other machine running Samba) with an accessible share.
The 'samba' package itself is not necessary if you only need a smb client.
The "smbfs" package provides the tools needed to mount "smbfs" and "cifs" filesytems. You may have smbfs installed on your machine. If not, run
sudo apt-get install smbfs
阅读(4115) | 评论(7) | 转发(0) |