Jump to content

how do you get NFS dirs mounted at boot without automount


Guest tezca
 Share

Recommended Posts

Guest tezca

anybody know how to mount nfs directories at boot through fstab?

I set up an nfs server on mandrak 9.0 and it mount fine from other clients at the command line, I added to fstab in the client machines

mandrak90:/pub /mnt/nfs nfs timeout=100 0 0

 

and it still dosn't mount at boot, Portmap is running and thier is no firewall at this time ( this is on a LAN with no net access & this is for study purposes LPI exam & Linux + etc)

 

I know automount can do this but I'm sure thet it has to be done at boot through fstab for exams

also I chkconfig --level 345 portmap on but i'm wondering if there is something else I am missing, nfs is running on the server cuz as soon as the client gets to the login run level and I log in i can mount from the command line with

#mount mandrak90:/pub /mnt/nfs

& it works fine

 

any help would be greatly appriciated.

 

setup

LAN with 3 machines

PPC yellowdog linux biege G3

 

900mhz amd duron

512 mb

50 gb HD (2) GRUB bootloader that can boot mandrake 9.0 and redhat 8.0 as well as windows

 

900mhz amd duron

512mb

20 gb HD Sun Solaris 9 (intel version)

Link to comment
Share on other sites

Hi

Maybe portmap and nfs are not yet running

when filesystems in /etc/fstab are mounted ?

Is there feedback in logs ?

 

If I am on track, ideas.

Change service startup order so that portamp and nfs

are started after network setup

and before filesytems in fstab are mounted

or

manually 're'mount nfs shares as last entries commands

in your "rc.local" file

(I think in mandrake it's /etc/rc.d/rc.local,

for me it's /etc/conf.d/local.start, no idea for your linux)

i.e. nfs mount instructions just before user get's control

at a cli or in gui.

HIH

Link to comment
Share on other sites

Guest tezca

you know I think your right, I used to add entries in rc.local before I started using chkconfig to turn services on, Thanx!!!

 

fstab allways starts before neworking services, so the rc.local file has to be it!!! thanx!

Link to comment
Share on other sites

I just put the old fstab entry into my new mdk9.0 and later mdk9.1 /etc/fstab and they mount on boot without any problem.

 

You should not have to resort to editing /etc/rc.local or anything else, just /etc/fstab

 

At the time (mdk8.2) I set things up with linuxconf, later just copied the right entries to the new /etc/fstab.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...