Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-25-2002, 10:26 AM
|
#1
|
LQ Newbie
Registered: Sep 2002
Posts: 4
Rep:
|
Delay fstab mount of smbfs during boot
Hello, I have a Dell Latitude laptop run RH7.3. I have an entry in the fstab file to mount an NT share automatically. I can run the mount command manually and mounting the share works fine but for some reason it was not mounting during bootup. I checked the /var/log/messages and it appears that the share is not able to be mounted during boot because the ethernet card is not yet initallized (or at least I do not have a working network connection when fstab is run). Is there a way to delay fstab during boot or maybe run a command to mount the share after login? Any other suggestions? Thanks in advance!
|
|
|
09-25-2002, 11:14 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well you can always convert the fstab line to a mount command in /etc/rc.local, but why isn't your network loaded by then? the network should by one of the earliest services started, and netfs (the service that will mount smb / nfs etc..) will not start till later. check the S??servicename values in your /etc/rc3.d or /etc/rc5.d for netfs and network, mine are 25 and 10 respectively.
|
|
|
09-25-2002, 03:32 PM
|
#3
|
LQ Newbie
Registered: Sep 2002
Posts: 4
Original Poster
Rep:
|
Hi Chris, thank you for the answer, I checked the servicename values for netfs and network, and mine are 25 and 10 respectively as well. I included a section of the output from my /var/log/messages below: I noticed that cardmanager is initializing right before the smb connection fails, that is why I was thinking my PCMCIA eth card was not running properly before fstab was run. I did try the mount command in /etc/rc.local solution and it works, thanks again for the suggestion.
Sep 24 17:33:41 localhost cardmgr[679]: initializing socket 0
Sep 24 17:33:41 localhost cardmgr[679]: socket 0: 3Com 3CCFE575CT/3CXFE575CT Fast EtherLink XL
Sep 24 17:33:43 localhost mount: Error connecting to 192.168.1.2 (Network is unreachable)
Sep 24 17:33:43 localhost mount: 769: Connection to SERVER failed
Sep 24 17:33:43 localhost mount: SMB connection failed
Sep 24 17:33:43 localhost netfs: Mounting SMB filesystems: failed
Sep 24 17:33:44 localhost netfs: Mounting other filesystems: succeeded
Sep 24 17:33:44 localhost apmd: apmd startup succeeded
|
|
|
11-30-2002, 11:25 AM
|
#4
|
LQ Newbie
Registered: Nov 2002
Posts: 1
Rep:
|
Did you find a answer for this problem???
I'm facing the same.
Thanks
Johan
|
|
|
12-03-2002, 05:17 AM
|
#5
|
LQ Newbie
Registered: Nov 2001
Location: Belgium
Posts: 18
Rep:
|
Well, as Iron city said:
I did try the mount command in /etc/rc.local solution and it works, thanks again for the suggestion.
;-)
|
|
|
10-12-2006, 05:15 PM
|
#6
|
LQ Newbie
Registered: Oct 2006
Posts: 1
Rep:
|
My solution
I think I've posted this elsewhere but I'll do it again here.
I used the Service Configuration GUI to stop netfs from starting at run levels 3 and 4 and then I went to /etc/rc5.d and moved S25netfs to S60netfs. I haven't had the time to see if a lower start sequence would work but this works for me and doesn't appear to hamper any other service. Anyone know why netfs needs to start so early?
|
|
|
10-12-2006, 06:39 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
One word for this problem.. AutoFS 
|
|
|
01-21-2009, 03:58 PM
|
#8
|
LQ Newbie
Registered: Jan 2009
Distribution: Fedora 2.6.25-14.fc9.i686
Posts: 10
Rep:
|
Quote:
Originally Posted by C_Red
I think I've posted this elsewhere but I'll do it again here.
I used the Service Configuration GUI to stop netfs from starting at run levels 3 and 4 and then I went to /etc/rc5.d and moved S25netfs to S60netfs. I haven't had the time to see if a lower start sequence would work but this works for me and doesn't appear to hamper any other service. Anyone know why netfs needs to start so early?
|
OMG!!!! Thank you sooooo much I have been trying to figure this out for days and I tried changing the S25netfs to S60 like you said but it wasn't working BUT THEN I stopped it from running @ 3 and 4 and holy crap IT WORKED!!!
Thank you again you have made my week:-)
|
|
|
All times are GMT -5. The time now is 12:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|