windows2008 access to Linux shared NFS

Source: Internet
Author: User

WIN2008 need to install the File Client Management tool. How to see if it is installed.

Start-run--cmd, enter Showmount and Mount.

If the "not internal or external command" is displayed and is not installed.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/83/06/wKiom1do31Gg9C83AABhf1AZRbc319.jpg-wh_500x0-wm_3 -wmp_4-s_91713002.jpg "title=" mount.jpg "alt=" Wkiom1do31gg9c83aabhf1azrbc319.jpg-wh_50 "/>

Start installation, start--management tools--Server Manager

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/05/wKioL1do3-jibPPJAABL2nZtiMk621.jpg-wh_500x0-wm_3 -wmp_4-s_3110070005.jpg "title=" 1.jpg "alt=" Wkiol1do3-jibppjaabl2nztimk621.jpg-wh_50 "/>

Click Roles-Add roles

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/06/wKiom1do4EmCQgiYAAB-3JM34kg021.jpg-wh_500x0-wm_3 -wmp_4-s_1378178467.jpg "title=" 2.jpg "alt=" Wkiom1do4emcqgiyaab-3jm34kg021.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/06/wKiom1do41mQ9TEqAACSLySjP74052.jpg-wh_500x0-wm_3 -wmp_4-s_3656560181.jpg "style=" Float:none; "title=" 3.jpg "alt=" Wkiom1do41mq9teqaacslysjp74052.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/83/05/wKioL1do41mzWt2-AADO-cqmfKE791.jpg-wh_500x0-wm_3 -wmp_4-s_35412728.jpg "style=" Float:none; "title=" 4.jpg "alt=" Wkiol1do41mzwt2-aado-cqmfke791.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/06/wKiom1do41qT20n3AACj0qmWDRE594.jpg-wh_500x0-wm_3 -wmp_4-s_3678180917.jpg "style=" Float:none; "title=" 5.jpg "alt=" Wkiom1do41qt20n3aacj0qmwdre594.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/83/06/wKiom1do41rAcvEbAACi4CbtY-A207.jpg-wh_500x0-wm_3 -wmp_4-s_1101731335.jpg "style=" Float:none; "title=" 6.jpg "alt=" Wkiom1do41racvebaaci4cbty-a207.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/83/05/wKioL1do41vTLDXZAACvG8V6BfM133.jpg-wh_500x0-wm_3 -wmp_4-s_679112315.jpg "style=" Float:none; "title=" 7.jpg "alt=" Wkiol1do41vtldxzaacvg8v6bfm133.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/05/wKioL1do41uhtvmuAACRs1AzGuE516.jpg-wh_500x0-wm_3 -wmp_4-s_3894965408.jpg "style=" Float:none; "title=" 8.jpg "alt=" Wkiol1do41uhtvmuaacrs1azgue516.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/06/wKiom1do41uD6yibAACmb8sTin4898.jpg-wh_500x0-wm_3 -wmp_4-s_2231736102.jpg "style=" Float:none; "title=" 9.jpg "alt=" Wkiom1do41ud6yibaacmb8stin4898.jpg-wh_50 "/>

After the installation is complete, the secondary input showmount and mount will be prompted to indicate that the installation was successful.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/83/06/wKiom1do41zTDr_sAAAygs-RTmw692.jpg-wh_ 500x0-wm_3-wmp_4-s_2851975788.jpg "style=" Float:none; "title=" 10.jpg "alt=" Wkiom1do41ztdr_saaaygs-rtmw692.jpg-wh_ "/>";

1) showmountc:\>showmount /? Usage:  showmount -e [server]showmount -a [server] showmount -d [server]  executes the showmount command line to display all mount information to the specified NFS server. You must provide one of the following options:-e  displays all file systems on the specified NFS server. -a  Displays all network File system   (NFS)   clients and directories on each mounted NFS server. -d  Displays all directories on the NFS server that are currently mounted by NFS clients. 2) mount c:\>mount ? usage:  mount [-o options] [-u:username] [-p:< password | *>] <\\computername\shaename> <devicename | *>-o  rsize=size                   Sets the size of the read buffer (in  KB ). -o wsize=size                  Sets the size (in  KB ) of the write buffer. -o timeout=time             Settings  RPC  The time-out value (in seconds) for the call. -o retry=number            set the retry count for the soft mount. -o mtype=soft|hard        sets the mount type. -o lang=euc-jp|euc-tw|euc-kr|shift-jis|big5|ksc5601|gb2312-80|ansi                                      specifies the encoding to use for file and directory names. -o fileaccess=mode         Specifies the permission mode for the file.                                      These patterns are used to  NFS  new files created on the server. Specified using the  UNIX  style pattern bit. -o anon                          is loaded as an anonymous user. -o nolock                       disables locking. -o casesensitive=yes|no      Specifies that a case-sensitive file lookup is performed on the server. -O&NBSP;SEC=SYS|KRB5|KRB5I&NBSP;3) Umountc:\>umount usage:   [-f] <-a | drive_letters  | network_mounts>-a       Delete all  NFS  network mount points-f        Force Delete  NFS  Network mount point

File permissions:


After the window client Mounts the NFS service using the Mount command, the file system is read-only to Win7, unable to write to the file, and cannot create a new folder, using the Mount command to see the following status:

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/83/0A/wKioL1dpNubg2F7EAAAhatilzWM323.jpg "title=" 1.jpg " alt= "Wkiol1dpnubg2f7eaaahatilzwm323.jpg"/>

You can see uid=-2 because the NFS file system that is shared on the storage device is rooted in root and cannot be modified


This belongs to the user, and Windows through the Uid=-2 user to write, must not write in.


The solution: to let Win7 mount NFS when the UID and GID changed to 0:


Open registry: Start-run-input regedit


Hkey_local_machine\software\microsoft\clientfornfs\currentversion\default


Add two Dword:anonymousuid,anonymousgid to the right of the blank; the value is 0.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/83/0B/wKiom1dpN2KgsIerAADbEN47Nck586.jpg "title=" 2.jpg " alt= "Wkiom1dpn2kgsieraadben47nck586.jpg"/>


Restart your computer, Mount again


To mount the Remote NFS folder:

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/83/06/wKiom1do487xFRLAAAAb11Ry-tA812.jpg "title=" 11.jpg "alt=" Wkiom1do487xfrlaaaab11ry-ta812.jpg "/>

Uninstall Remote NFS Folders:

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/83/05/wKioL1do5XOQILgLAAAwiute5GM533.jpg "title=" 12.jpg "alt=" Wkiol1do5xoqilglaaawiute5gm533.jpg "/>

Note: If the disk that is already mounted causes an error in the Remote NFS server restart, you can only force the kill service to shut down.


Reference article:

Http://www.cnblogs.com/itech/archive/2012/06/17/2552514.html

Http://wenku.baidu.com/link?url=FFjU94NMDbVm


Use windows2008 as Server for NFS

Http://virtualtop.blog.51cto.com/41003/548550/

This article is from the "Enlightened Grocery store" blog, please be sure to keep this source http://wutou.blog.51cto.com/615096/1791384

windows2008 access to Linux shared NFS

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.