Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-30-2005, 01:05 PM   #1
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
New to NFS, looking for advice

Hi all,

I'm migrating an old server to a new one, and need to copy the contents of /home on the old server to the new one.

I'd like to use NFS to mount /home on the old server at /mnt/migration on the new one, but am not really sure how to go about this.

Any advice would be really appreciated. Both boxes are Redhat 9 Enterprise.
Old 03-30-2005, 01:45 PM   #2
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,758

Rep: Reputation: 77
On the old server you need to put this in the /etc/exports :
/home <ip address of the new server>(rw,no root squash)

This will allow the new server (only the new server) to mount the share as read/write.

On the server that you want to mount the share put this in your /etc/fstab:
<old server name>:/home /mnt/migration nfs rw 0 0

This will mount the share at boot. If you want to mount it without restarting, run this command:
mount /mnt/migration
mount -a
Old 03-30-2005, 01:45 PM   #3
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,758

Rep: Reputation: 77
Forgot, you need to do this as root.
Old 03-30-2005, 01:50 PM   #4
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
NFS is easy, the catch is that both the client and server systems need to share the same set of user accounts (using NIS or LDAP).

On the server you need to edit /etc/exports:

/home,no_root_squash) <client-ip>(ro,no_root_squash)

No spaces between the IP addresses and the (.

On the client, /etc/fstab will need an extra line:

nfs-server:/home /mnt/migration nfs defaults 0 0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
broken NFS mount need configuration advice bobbens Debian 6 10-29-2005 04:22 PM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration