fstab sometimes mounting network drives, sometimes not

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

fstab sometimes mounting network drives, sometimes not

Postby DiBosco » Nov 4th, '11, 12:52

I have always been able to mount samba shares using fstab no problem on my desktop. On Mageia 1, this is sometimes mounting, sometimes not. I assume this is because sometimes the network is up by the time the OS gets to fstab and sometimes it's not. With it being wired Ethernet I am surprised this is happening. IS there any way of delaying fstab a bit? Is it maybe something to do with this so called fast boot where it gets you in to the desktop quickly, but then takes ages loading it? Should I disable this (in fact how *do* I disable this please?)

I have read that you can mount in init.d as one of the last things you do, but I can't help think that as this always worked on Mandriva, there's probably something I can do to have it work with fstab on Mageia.

Thanks.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: fstab sometimes mounting network drives, sometimes not

Postby doktor5000 » Nov 4th, '11, 19:52

You could try to enable the network-auth service as explained in http://wiki.mandriva.com/en/2009.1_Notes#New_services
or you can disable speedboot globally in /etc/sysconfig/speedboot.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18015
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: fstab sometimes mounting network drives, sometimes not

Postby quartz » Nov 21st, '11, 14:37

I had this problem before. I was advised to put the following in /etc/rc.d/rc.local
Code: Select all
sleep 15
mount //192.168.1.2

This waits a little while for the network to be up before mounting the share. Obviously, substitute the name/address of your own share!

Works for me.
quartz
 
Posts: 40
Joined: Sep 14th, '11, 17:59
Location: United Kingdom


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest