0

linux挂载linux的samba

Posted in Linux at 八月 5th, 2014 / No Comments »

linux挂载linux的samba
挂载其他linux(utf8文件系统编码,samba的unix charset也设置为utf-8了)的时候,和上面挂载共享的ntfs分区的方式是一样的:
mount //neighbour/sharedir /media/mountpoint -t samfs -o codepage=cp936,iocharset=utf8
这是要尤其注意的地方,即使两个linux都是utf8编码,好像也必须指定cp936才能够正常浏览和创建中文名称的文件!
另外还要尤其注意,//neighbour/sharedir和//neighbour/sharedir/是不一样的,注意最后有个斜线“/”,有的时候加上了这个斜线samba会不认,报出如下错误:
tree connect failed: ERRDOS – ERRnosuchshare (You specified an invalid share name)

SMB connection failed

 

mount //192.168.170.12/ha_hfs /tmp/  -o username=administrator,password=sss

 

不带密码:

mount //192.168.170.12/ha_hfs /tmp/

Published in Linux
Tags:

No Responses to “linux挂载linux的samba”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)