LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-10-2005, 10:22 PM   #1
Gaurav Wadhwa
LQ Newbie
 
Registered: Jan 2005
Location: London
Posts: 21

Rep: Reputation: 15
NFS automounting problem


Hi,

I have set up a NFS server on RHEL. I have edit these changes in /etc/exports file:

/data *.example.com(ro,sync)
/mybackup 192.168.0.0/255.255.255.0(rw,sync)

Then, I have run exportfs -a command. Thern, i have restart the service both portmap and nfs. Then, i tried to use a command "showmount -e localhost". It works well.

From , client computer. I tried to mount /data directory using

#mount -t nfs 192.168.0.1:/data /temp

it works well. but when i edit same line in /etc/fstab file. Then by the time of restating the client. The computer just hangs up.

I have added this line in /etc/fstab file

192.168.0.1:/data /temp nfs defaults 1 1


Please help
 
Old 02-11-2005, 03:24 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
What happens when you type:

mount /temp

with the entry in /etc/fstab
 
Old 02-11-2005, 09:47 PM   #3
Gaurav Wadhwa
LQ Newbie
 
Registered: Jan 2005
Location: London
Posts: 21

Original Poster
Rep: Reputation: 15
well,

By the time of restarting the system, it gives an message that : no init file found. and something like that,
 
Old 02-12-2005, 02:55 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Do the NFS processes start automatically on reboot or do you have to start them manually?

There should be a file in /etc/rc.d/init.d that starts the NFS daemons.

eg:
/etc/rc.d/init.d/nfslock

You can use this file to start, stop, restart and check the status of the daemons relating to NFS

eg: (from /etc/rc.d/init.d)
./nfslock start
./nfslock stop
./nfslock restart
./nfslock status

If the NFS daemons are not starting check to see if there are any entries in /etc/rc.d/rc[0-6].d relating to these files:

find /etc/rc.d -name *nfs*

Links to the script for startup begin with S and 2 digits eg: S14nfslock
Links to the script for shutdown begin with K and 2 digits eg: K86nfslock

The different directories relate to different run levels.
 
  


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 client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
Automounting problem TomalakBORG Suse/Novell 3 11-25-2005 10:04 PM
problem automounting cd in FC3 thearchitect Fedora 1 09-04-2005 10:53 PM
NFS shares automounting mjuhannus Linux - Networking 1 03-06-2005 06:15 AM
Problem With automounting in suselinix ajay_cn01 Linux - General 0 11-27-2003 02:37 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration