Mount Windows shared folders in Gentoo

Source: Internet
Author: User

Mount-T smbfs-O username = administrator, password = 123456 // 192.168.100.htm/public/mnt/winkernel

 

Mount-t cifs-O username = administrator, password = 123456, codePage = cp936 // 192.168.100.htm/public/mnt/winkernel

 

[92615.408159] smbfs is deprecated and will be removed from the 2.6.27 kernel. Please migrate to CIFS

Reference

 

Company new storageProgramDedicated personnel are responsible for this. I need to talk about uploading the war package to a windws shared directory. Now it is changed to the Gentoo + xfce4 environment. Thunar does not support SMB: // protocol. Therefore, you only need to manually mount it. Samba has been installed before. Therefore, mount one directly.

Gentoo ~ # Mount-T smbfs-O username = aaa, password = aaa // 10.200.106.252/updatepack release
Error: smbfs filesystem not supported by the kernel
Please refer to the smbmnt (8) manual page
Smbmnt failed: 255

We found that the kernel does not support smbfs. Then we re-compiled the kernel.

<> SMB File System Support (obsolete, please use CIFS)
CIFS support (advanced network filesystem, smbfs successor)
[*] CIFS Statistics
[*] extended Statistics
[*] Support legacy servers which use weaker LANMAN Security
[*] CIFS extended attributes
[*] cifs posix extensions
[*] enable additional CIFS debugging routines
[] CIFS experimental features (Expe Rimental)

when you see the SMB file system, you can see the obsolete. It seems that this is not recommended. CIFS is recommended, so CIFS is selected. It seems to be the successor of smbfs.

Compile and replace the kernel, restart it, And then mount it. The depressing thing is that it still prompts No. However, when CIFS is selected, I assume that CIFS must support smbfs. This is not the case. To mount-T smbfs, You must select SMB file system support. At that time, we had to use Windows in vbox to access the shared directory. But I don't know why it's surprisingly slow. It takes 20 minutes (orz) to copy a 10 m package on a m lan ).

Later I realized that my thoughts were wrong. I do not want to use the obsolete SMB file system support. So I found the answer in the gentoo-wiki.com.

Gentoo ~ # Mount-t cifs // 10.200.106.252/updatepack/home/Rory/release-o "username = aaa, password = aaa, uid = 1000, isocharset = cp936"

Everything is done. Then write this command into the startup script.

Rory @ Gentoo ~ $ More/etc/CONF. d/local. Start
#/Etc/CONF. d/local. Start

# This is a good place to load any MISC programs
# On startup (use &>/dev/null to hide output)

############# Smbmount release from dual ################
Mount-t cifs // 10.200.106.252/updatepack/home/Rory/release-o "username = aaa, password = aaa, uid = 1000, isocharset =
Cp936"

################################## ########################
if you do not have a local. start should have a local file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.