百度空间 | 百度首页 
 
查看文章
 
Ubuntu 访问 windows 共享文件
2008年11月16日 星期日 01:15
本文章假设已经安装并配置好 samba 服务,了解 samba 服务的安装与配置可以到:http://wiki.ubuntu.org.cn/Samba

在 /mnt 新建一个将要作为加载的文件夹:
sudo mkdir /mnt/share_folder

键入挂载命令:
mount -t smbfs -o iocharset=utf8,codepage=cp936,username=windows_username //windows_machine/win_share_folder_name /mnt/share_folde

windows_username : 访问 Windows 的用户名
windows_machine :Windows 机器名或者IP
win_share_Folder :Windows共享文件夹名

iocharset=utf8,codepage=cp936 是解决中文乱码的问题

现在可以在 /mnt/share_folder 下访问 Windows 的共享文件了。

P.S. 取消访问命令:sudo umount /mnt/share_folder

类别:Linux | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu