Set nfs shared data for Linux servers in win7

Source: Internet
Author: User


Many useful functions are added under Windows 7 with nfs shared data mounted to Linux servers. This function is not enabled by default. Today, we will briefly describe the NFS function in Windows 7 with this function, allows win7 to share disk partitions or directory data under Linux. This function can only be implemented through samba or ftp, and the configuration is complex. Now, the NFS function is enabled under win7, configuration can be completed in just one minute, which is simple and convenient. 1: first set up nfs data sharing in linux www.2cto.com [root @ localhost ~] # More/etc/exports/app 192.168.12.134 (rw, no_root_squash) and then run: [root @ localhost ~] # Exportfs-avexporting 192.168.12.134:/app2: Enable nfs in win7. 3: start mounting in win7, for example:

Now we can see the mounted disk partition: 4: After modifying the nfs read-only attribute of win7 NFS on Windows 7 using the mount command to mount the NFS service, the file system is read-only to Windows 7, the file cannot be written and a folder cannot be created. You can view the following status by running the mount command: UID =-2 because the NFS file system shared on the storage device belongs to the root permission, the user cannot be modified, but the user whose UID is-2 in Windows cannot be written. The solution for www.2cto.com is to change the UID and GID of Win7 to 0 when mounting NFS: Open the Registry: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ ClientForNFS \ CurrentVersion \ Default, and add two items: AnonymousUid, anonymousGid,
Restart the computer and mount it again. In this case, you can perform read and write operations on the nfs file system in win7, just like on a local disk. View the mount attribute as follows:

The usage of the mount command in win7 is as follows:

To Remove nfs sharing, you only need to uninstall the command. The usage of umount is as follows:

Author: South African ant financial

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.