LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 09-25-2002, 09:26 AM   #1
Iron City
LQ Newbie
 
Registered: Sep 2002
Posts: 4

Rep: Reputation: 0
Exclamation 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!
 
Old 09-25-2002, 10:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-25-2002, 02:32 PM   #3
Iron City
LQ Newbie
 
Registered: Sep 2002
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 11-30-2002, 10:25 AM   #4
publitronic
LQ Newbie
 
Registered: Nov 2002
Posts: 1

Rep: Reputation: 0
Did you find a answer for this problem???
I'm facing the same.

Thanks
Johan
 
Old 12-03-2002, 04:17 AM   #5
themuppeteer
LQ Newbie
 
Registered: Nov 2001
Location: Belgium
Posts: 18

Rep: Reputation: 0
Well, as Iron city said:

I did try the mount command in /etc/rc.local solution and it works, thanks again for the suggestion.

;-)
 
Old 10-12-2006, 04:15 PM   #6
C_Red
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
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?
 
Old 10-12-2006, 05:39 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
One word for this problem.. AutoFS
 
Old 01-21-2009, 02:58 PM   #8
lheldwein
LQ Newbie
 
Registered: Jan 2009
Distribution: Fedora 2.6.25-14.fc9.i686
Posts: 10

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by C_Red View Post
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:-)
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why fstab doesn't mount smbfs rjkfsm Linux - Newbie 3 12-16-2011 12:23 PM
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM
mounting an smbfs share using mount vs /etc/fstab sichen Linux - Networking 4 08-13-2004 06:40 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
can anyone with rh9 mount multiple shares with smbfs in fstab? Falafel Linux - Networking 2 11-15-2003 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration