Linux build NFS provides disk for Windows to use

Source: Internet
Author: User

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

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.