Setting up a Linux server disk under the Windows2008 system
First, the system environment
System platform: CentOS release 5.8 (Final)
NFS Server ip:x .... X... 153.157
Firewall is down
[Email protected] ~]# Setenforce 0
[[Email protected] ~]# service iptables stop
/iptables:firewall is not running.
Selinux=disabled
II. Installation of NFS Services
[email protected] ~]# Yum install nfs-utils-* portmap-*
Rpcbind
- y
[email protected] ~]# vi/etc/exports
/AAA * (Rw,no_root_squash)/aaa 42.51.0.0/16 (rw)
[email protected] aaa]#/etc/init.d/rpcbind restartstopping rpcbind: [OK]starting Rpcbind: [OK][email protected] aaa]#/etc/init.d/nfs restartshutting down NFS daemon: [OK]shutting down NFS mountd: [OK]shutting down NFS services: [OK]shutting down RPC IDMAPD: [OK]Starting NFS services: [OK]starting NFS mountd: [OK]starting NFS daemon: [OK]starting RPC IDMAPD: [OK]
Set the auto-start status for Server for NFS[email protected]/]# chkconfig--level portmap on[email protected]/]# Chkconfig--level NFS on[email protected]/]# chkconfig--list portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off 0:off 1:off 2:off 3:on 4:off 5:on 6:off
three. Windows2008 Enable NFS function
You can see that uid=-2 because the NFS file system that is shared on the storage device is rooted in root and cannot modify the owning user, and Windows writes through the Uid=-2 user, it must not be written in.
The workaround is for Windows 7 to change the UID and GID to 0 when mounting NFS: Open the registry: hkey_local_machine\software\microsoft\clientfornfs\currentversion\ Default, add two items: Anonymousuid,anonymousgid,
Restart your computer and mount again. You can read and write to the NFS file system under Windows 7, just like a local disk.
Uninstall:
Umount x:\
View Help:
mount-t
From for notes (Wiz)
Linux build NFS provides disk for Windows to use