Posts Tagged ‘NFS’

Server

apt-get install nfs-kernel-server nfs-common portmap

Client

apt-get install nfs-common portmap

edit /etc/exports to identify the path to the directory you wish to share, and indicate the IP address(es) (use * as a wildcard) you wish to have access to you files.

/home/user/myfiles 192.168.0.*(rw,root_squash)

sudo exportfs -a

Access from Windows XP

Download the MS Unix layer and run self extractor and execute SfuSetup. click change the default behavior to case sensitive and enable set uid behavior select local username mapping server and password group files. copy /etc/passwd and /etc/group to your windows computer and specify path and reboot computer

run services for Unix administrations and in the NFS client make all user groups and others read and writable. open Windows Explorer under network places you should see a NFS tree, and within it you should see your servers IP address. if everything worked you should have access to your NFS directories via windows.

Access in Linux

To mount as root (create desired mount point first and replace IP with your servers IP):

mount 200.100.10.1:/home/nfs /mnt/nfs

to mount on boot edit/etc/fstab the extra options control read and write access by blocks)

200.100.10.1:/home/nfs /pub nfs rsize=8192,wsize=8192,timeo=14,intr


it should be noted that vfat and ntfs filesytems have issues with the nfs protocol and can result in sporadic performance and data corruption.

  • Share/Bookmark
Archives
Statistics
  • Pages displayed : 25720
  • Unique visitors : 14216
  • Pages displayed in last 24 hours : 58
  • Unique visitors in last 24 hours : 32
FireStats icon Powered by FireStats

Bad Behavior has blocked 86 access attempts in the last 7 days.

FireStats icon Powered by FireStats