http://en.gentoo-wiki.com/wiki/Mounting_a_remote_Shared_Folder
In order to mount a remote filesystem, you must configure your kernel accordingly.
cd /usr/src/linux
make menuconfig
Linux Kernel Configuration:
CIFS File system support
|
File Systems --->
[*] Network File Systems --->
<*> CIFS support (advanced network filesystem, SMBFS successor)
[*] CIFS Statistics
[*] CIFS Extended attributes
|
make clean && make bzImage && make modules && make modules_install && make install
cp arch/x86_64/boot/bzImage /boot/kernel-2.6.32-gentoo-r7
reboot
更详细参考:http://jiajun.iteye.com/blog/538820
After that, you have to emerge the package mount-cifs.
emerge mount-cifs
Refer to the official kernel configuration article
to compile and install your fresh kernel.
Usage
Use the following terminal command to mount a remote folder, replacing IP_OR_NAME
with the IP or the computer name, SharedFolderName
with the the Shared folder name and /mnt/sharedfolder
with the local folder you want to link with.
[edit
]
CIFS (Windows)
Make a target directory:
mkdir /mnt/sharedfolder
Mount the remote share:
mount -t cifs //IP_OR_NAME/SharedFolderName /mnt/sharedfolder
If you need credentials to access the remote folder, use the following :
mount -t cifs //IP_OR_NAME/SharedFolderName /mnt/sharedfolder -o "username=X,passwd=Y"
You can also specify if the share is read/write (rw), read only (ro)
or write only (wo) with the -o parameter. Here is a complete working
example :
mount -t cifs //192.168.1.101/SharedDocs /mnt/sharedfolder -o "rw,username=admin,passwd=password"
分享到:
相关推荐
Gentoo Linux 安装笔记 Gentoo Linux 安装笔记 Gentoo Linux 安装笔记
Gentoo是一个基于Linux的自由操作系统,它能为几乎任何应用程序或需求自动地作出优化和定制。追求极限的配置、性能,以及顶尖的用户和开发者社区,都是Gentoo体验的标志特点。 Gentoo的哲学是自由和选择。得益于一种...
Gentoo Linux是一套通用的、快捷的、完全免费的Linux发行,它面向开发人员和网络职业人员。与其他发行不同的是,Gentoo Linux拥有一套先进的包管理系统叫作Portage。在BSD ports的传统中,Portage是一套真正的自动...
Gentoo Linux nVidia指南
Gentoo Linux 安装手册, Gentoo Linux安装完整教程, 内容详细, 包你一次就会, 绝对精彩. Gentoo Linux 安装手册完整教程!
gentoo的bash配置文件,用于获得gentoo默认控制台颜色。 将.bashrc复制到/etc/skel/目录下,将bash.bashrc复制到/etc目录下即可。
Gentoo的手册,中文,对安装和研究linux很有帮助。 gentoo是很独特的发行版,和其他不同,安装需要手动一步步进行,软件安装也类似freebsd的port方式。具有高度定制性。
本文详细讲述gentoo桌面环境gnome-light的安装过程,如何配置主机网络,如何让gentoo支持中文,如何挂载windows下的NTFS文件系统,如何使gentoo支持声音 的输入输出,让你的emerge极大地加快下载速度,并安装音视频...
gentoo 图解安装手册 良好学习文档
gentoo完美技术手册,您需要的尽在其中!~
对于初学gentoo有很的帮助,内容广泛,具体,可以随时查阅。
Gentoo Linux x86手册.pdf
Gentoo Linux AMD64 手册
gentoo下的配置方法以及常见问题的分析。这个文件也是我从网上下的,希望对开源人士有些帮助。非常感谢原作者。
vmware中安装gentoo详解
解决gentoo系统在忘记密码无法登录的情况下,通过修改启动脚本,进入命令行修改登录密码,或者更改etc目录的权限
Gentoo Linux 2008 x86手册(安装) Gentoo Linux 2008 x86手册(安装)
gentoo2013年最新的手册 费了很长的时间翻译
Gentoo kernel 内核配置
Gentoo是众多Linux的发行版之一,她具有高效的执行效率和高度的可定制性。但Gentoo的安装对于新手来说不是一件简单的事。为使Gentoo爱好者在安装该系统时少走弯路,节省时间,特制定本文档