Chinaunix首页 | 论坛 | 博客
  • 博客访问: 551066
  • 博文数量: 116
  • 博客积分: 2063
  • 博客等级: 大尉
  • 技术积分: 1174
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-26 16:44
个人简介

none

文章分类

全部博文(116)

文章存档

2023年(2)

2020年(3)

2019年(4)

2018年(7)

2017年(6)

2016年(17)

2015年(13)

2014年(19)

2013年(6)

2012年(13)

2011年(5)

2010年(11)

2008年(10)

分类: LINUX

2011-10-31 11:33:31

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) |

k_ewell2011-12-07 15:26:34

Options are specified with a -o flag followed by a comma separated string of options

sodo mount -t cifs //192.168.8.104/win/ /home/MYNAME/WIN -o username=Administrator,uid=502,gid=600,nounix,noserverino