linux挂载linux的samba

来源:岁月联盟 编辑:exp 时间:2011-10-31

 

 

 

挂载其他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 www.2cto.com

 

 

 

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