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