Chinaunix首页 | 论坛 | 博客
  • 博客访问: 550986
  • 博文数量: 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 
阅读(4114) | 评论(7) | 转发(0) |
给主人留下些什么吧!~~

k_ewell2015-10-20 08:40:53

[root@localhost ~]# cat /etc/samba/smb.conf
[global]        
workgroup = WORKGROUP
server string = file Server
security = share
hosts allow = 192.168.200.136
guest account = root
create mask = 666  
directory mask = 777
[3521]
path = /.100G/SVN_3521/src/EDVR
writable = yes
guest ok = yes

k_ewell2015-10-20 08:40:51

[root@localhost ~]# cat /etc/samba/smb.conf
[global]        
workgroup = WORKGROUP
server string = file Server
security = share
hosts allow = 192.168.200.136
guest account = root
create mask = 666  
directory mask = 777
[3521]
path = /.100G/SVN_3521/src/EDVR
writable = yes
guest ok = yes

k_ewell2015-07-01 11:46:19

Q: mount.cifs : mount error(12) : Cannot allocate memory
A: http://unix.stackexchange.com/questions/108695/mount-cifs-mount-error12-cannot-allocate-memory
   Detail fix method:
      reg add HKLM\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters /v Size /t REG_DWORD /d 3 /f
      sc stop  LanmanServer // Or reboot your Windows os
 &nbs

k_ewell2014-01-17 17:28:56

WIN7

[root@localhost ~]# mount.cifs //10.4.6.136/123 /root/123 -o username=Administrator

Jan 13 01:12:07 localhost kernel: Status code returned 0xc000015b NT_STATUS_LOGON_TYPE_NOT_GRANTED
Jan 13 01:12:07 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Jan 13 01:12:07 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13

Logon failure

k_ewell2012-05-09 17:02:16

ERROR:
[root@] ~]# mount -t cifs //192.168.8.104/WIN /root/WIN -o username=Administrator            
mount: block device //192.168.8.104/WIN is write-protected, mounting read-only
mount: cannot mount block device //192.168.8.104/WIN read-only
[root@] ~]# dmesg
... ...
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return c