Gentoo,Mounting a remote Shared Folder


もっと読む
http://en.gentoo-wiki.com/wiki/Mounting_a_remote_Shared_Folder
 
In order to mount a remote filesystem,you must configre your kernel accodingly.
 
 
cd/usr/src/linux
make menuconfig
 
Linux Kernel Configration:CIFS File system support
File Systems  --->
     [*] Network File Systems  --->
             CIFS support (advanced network filesystem, SMBFS successor)
          [*]     CIFS Statistics
          [*]     CIFS Extended attributes
 
 
メーク clean && メーク bzImage && メーク modules && メーク modules_install && メーク install
cp arch/x 86_64/boot/bzImage/boot/kenel-2.62-gentoo-r 7
reboot 
より詳細な参考:http://jiajun.iteye.com/blog/538820
 
After that,you have to emarge the package mount-cifs.
emarge mount-cifs
Refer to the offical kersnel configration article to comple and install your fresh kersnel.
Usage
Use the follwing terminal command to mount a remote folder,replacing IP_OR_NAME with the IP or the computtername、Shared FolderName with 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 follwing :
mount-t cifs/IP_OR_NAME/SharedFolderName/mnt/sharedfolder-o"username=X,passwd=Y"
You can also specify the share is read/write(rw)、read only(ro)or write only(wo)with the-o parameter.Here is a complette e working example :
mount-t cifs/192.168.101/ShardDocs/mnt/sharedfolder-o"rw,username=admin,passwd=password"