LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-21-2009, 10:00 PM   #1
Laserjock
LQ Newbie
 
Registered: Dec 2004
Location: Raleigh, NC USA
Distribution: CentOS 5, RHEL 5, Ubuntu
Posts: 19

Rep: Reputation: 0
NFS install fails to mount directory


I am trying an NFS installation RHEL 5.3 over my private network, booting from a CD, but I get the error message "That directory could not be mounted from the server" when I specify connection info. Trying to connect to a CentOS 5.3 machine running NFS. Steps I took:

1. Since I only have the physical RHEL 5.3 DVD and not an iso file, I copied it over to a new dir with the dd command:

Code:
dd if=/dev/dvd of=/mnt/rhel/RHEL5.iso
2. Added /mnt/rhel to /etc/exports:

Code:
/mnt/rhel *(ro,no_root_squash)
3. Opened up NFS port in firewall using system-config-securitylevel. (Incidentally, SELinux is disabled.)

4. Restarted NFS:

Code:
service nfs restart
5. Verified file permissions on /mnt/rhel for readable/executable by all.

6. showmount -e returns

Code:
/mnt/rhel *
7. On the client machine, I run the boot loader from CD (in VMWare, using bridged networking) and specify the NFS machine info when it prompts for NFS image:

NFS server name: 192.168.1.11
RHEL Dir: /mnt/rhel

And I get the error message. I can ping 192.168.1.11 from the host Windows machine. Did I do everything correctly on the NFS side? Supposedly I do not have to mount the iso if I'm using NFS here, so I'm out of ideas as to what is wrong. Or is it likely there is some networking connectivity issue here?

Any help appreciated!

Last edited by Laserjock; 04-21-2009 at 10:16 PM. Reason: typos!
 
Old 04-22-2009, 12:24 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
i do not know if I am correct to the core but when I tried this NFS install I did not copy dvd as iso image but as data in a directory. Just mount the dvd. Copy the contents as you would copy any data with cp -r command. And then export the directory via NFS.
 
Old 04-22-2009, 08:23 AM   #3
Laserjock
LQ Newbie
 
Registered: Dec 2004
Location: Raleigh, NC USA
Distribution: CentOS 5, RHEL 5, Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks, Linuxlover. I tried what you suggested, copying the dvd over using cp -ra to a new directory, /mnt/rhel2. I then added that dir to /etc/exports and restarted NFS, and verified that showmount -e returned both /mnt/rhel and /mnt/rhel2.

Still no joy when trying to connect from the client vm. So, I disabled the firewall on the server machine and now it looks like I can run the installer from both directories, /mnt/rhel and /mnt/rhel2, so I guess it was a port issue.

Anyone have a good doc on pinning down the nfs ports, making them static so I can enter them into iptables? Because enabling the standard "NFS" entry in the firewall isn't always letting NFS traffic through. Looks like there are a lot of ports associated with the NFS process and they're different almost every time I bounce the process.
 
Old 04-22-2009, 08:37 AM   #4
Laserjock
LQ Newbie
 
Registered: Dec 2004
Location: Raleigh, NC USA
Distribution: CentOS 5, RHEL 5, Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
Looks like I just found an answer to my own question in the RH Knowledgebase:

How can I configure a system as an NFS server which sits behind a firewall with NFS clients outside of the firewall?
 
Old 04-23-2009, 12:22 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Good to know you got it working. And nicer thing is you posted the link that helped you out. This should definitely help someone else who wants to install linux via NFS.
 
  


Reply


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 mount fails: permission denied freeindy Linux - Networking 8 06-24-2008 10:14 AM
NFS Mount Fails, Vague Error Message ludwig Linux - Networking 2 08-19-2007 04:21 PM
NFS mount fails reson: permission denied erpe Linux - Networking 1 10-21-2006 12:26 PM
nfs mount using nfsv3 with HPUX fails mpqcman Linux - Software 5 10-27-2005 11:14 AM
rhel4 2.6.9-5.0.5.ELsmp nfs mount fails, server is down timvand Linux - Enterprise 1 04-24-2005 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 AM.

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