Ubuntu下快速挂载window下的samba共享目录|Ubuntu Mount Windows Share (CIFS)
Author
posted @ 2011年7月08日 03:36
in Linux
, 9423 阅读
Ubuntu可以利用 mount指令, 挂载windows下的共享目录,
首先要安装samba服务器的配置文件:
sudo apt-get install smbfs
例如 windows下的共享盘符为d:, 则其磁盘代号为 d$
以下三段 username 皆为 administrator , password 为 ntws40
在 ubuntu 可以打入以下指令挂载 到 /media/cifs (之前需在/media/下新建目录名为cifs)
sudo mount -t cifs //192.168.1.200/d$ -o
username=administrator,password=ntws40,iocharset=utf8 /media/cifs
或者修改/etc/fstab文件:
//192.168.1.200/d$ /media/cifs cifs username=administrator,password=ntws40,iocharset=utf8 0 0
也可以利用 smbclient 测试
smbclient //192.168.1.200/d$ -U administrator%ntws40
成功的话会有提示 smb: \>
键入命令
smb: \> dir
则会显示服务器端的共享目录
更多参考:
https://help.ubuntu.com/community/MountWindowsSharesPermanently
2022年3月19日 08:28
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. https://www.posterprintcenter.com/falcon-flags.html
2023年6月23日 04:46
Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here. Wildlife Removal Kissimmee
2023年7月06日 07:02
Below you will understand what is important, the idea provides one of the links with an exciting site: Orlando Wildlife Removal
2023年7月06日 07:04
In this particular article, you will see a summary, satisfy browse this post. Wildlife Removal Oviedo
2023年8月31日 19:47
Well, isn't this the perfect article. I read this yesterday and I just loved it. I read this today, once more and I think this is the article that has been published on this site here. Cannabis Dispensary DC
2023年9月05日 18:57
Find the best essays on is my friend's profile page. Grand Dunman Showflat
2023年9月05日 18:58
On this subject internet page, you'll see my best information, be sure to look over this level of detail. The Continuum
2023年9月12日 02:23
In this particular article, you will see a summary, satisfy browse this post. Western Wear Stores near Me
2023年9月14日 18:38
This is very significant, and yet necessary towards just click this unique backlink: Hair cutting scissors Canada
2023年9月15日 17:24
I am simply so appreciative of the author here for imparting this to us. Since I know this data, I can finish my project and that matters a lot to me. I feel extremely happy right now. Tinctures
2023年9月18日 01:50
It's superior, however , check out material at the street address. check out the post right here
2023年9月21日 18:09
For many people this is important, so check out my profile: us passport template