Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS: no mounts a boot time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 342
Location: Berlin

PostPosted: Mon Jun 17, 2002 7:50 am    Post subject: NFS: no mounts a boot time Reply with quote

Hi,
I've got a problem with mounting via nfs - but only at boot time:
At boot time I see

Starting portmap [OK]
Mounting network filesystems [!!]

So my nfs directory is not mounted this way. But when I manually type
Code:
mount -t nfs 192.168.0.23:/mydata /mnt/data

then it works and I have access to /mnt/data/...(etc)...
Here is a part of my fstab in case it matters here:
Code:
192.168.0.23:/mydata  /mnt/data  rsize=8192,wsize=8192,timeo=14,intr   0 0

Do you have a hint for me?
Thanks
Felix
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon Jun 17, 2002 10:57 am    Post subject: Reply with quote

Enter th line inside the /etc/local.start :-)
mount -t nfs 192.168.0.23:/mydata /mnt/data

In this way i solved the problem...
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 342
Location: Berlin

PostPosted: Mon Jun 17, 2002 3:31 pm    Post subject: Reply with quote

Thanks, pacman! :) But isn't it better to do these things with fstab? I am afraid that the mounted directory will not be unmounted correctly, will it?
Thanks again
Felix
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Mon Jun 17, 2002 3:34 pm    Post subject: Reply with quote

The question is if ALL YOUR LOCAL NETWORK is UP when fstab is readed and executed by Linux.
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 17, 2002 3:34 pm    Post subject: Reply with quote

Right, it is better to put mounts in fstab. But, to ease your unmounting concerns, just put "umount /mnt/data" in /etc/conf.d/local.stop.

By the way, you forgot to set the filesystem type to NFS in your /etc/fstab, which is probably your real problem. ;) It goes between /mnt/data and your mount options.
Back to top
View user's profile Send private message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 342
Location: Berlin

PostPosted: Mon Jun 17, 2002 4:32 pm    Post subject: Reply with quote

Hi pacman, hi delta407,

I see that there is a workaround with local.start and local.stop.
Thanks for that!

But coming back to the question why it doesn't work at boot time:
1) Sequence: NFS mounts are (tried to be) done nearly at the end of the boot process. Portmap is started right before.
2) I better should have copied/pasted my fstab... In the real fstab "nfs" is NOT missing... sorry!

So, do you think it is a question of sequence/time? I'd like to solve this problem (rather than do workarounds) because I am going to configure a lot of gentoo systems and a lot of mounts ... :? Could I somehow influence the boot order for testing purpose? What would you try next?

Greetings,
Felix
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 17, 2002 4:44 pm    Post subject: Reply with quote

/etc/init.d/netmount is the script that would mount your NFS shares, and it is configured to launch after the network is up (hence "need net"). To see what, exactly, doesn't come up right, remove the > /dev/null and replace it with > /root/netmount.log or something so you can see the actual error message.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum