LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-28-2005, 07:38 PM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
Network fstab entries don't mount at boot


I have several cifs fstab entries that aren't being mounted at boot, and I don't know why. Once the OS finishes booting, I can do "mount -a" as root, and they mount fine. They stay mounted until I unmount them or reboot. The issue is that this machine is multi-boot, and I reboot frequently, so it becomes a serious pain in the rear.

Anyway, here's part of my fstab:

//10.0.0.12/data /media/net/fs2/data cifs credentials=/etc/samba/fs2.auth 0 0
//10.0.0.12/web /media/net/fs2/web cifs credentials=/etc/samba/fs2.auth 0 0


I also grepped my /var/log/messages, and this is what I see:

Dec 28 09:26:25 web1 kernel: mtrr: 0xe8000000,0x8000000 overlaps existing 0xe8000000,0x400000
Dec 28 09:26:28 web1 kernel: eth1: no IPv6 routers present
Dec 28 09:26:29 web1 kernel: mybridge: no IPv6 routers present
Dec 28 09:26:29 web1 kernel: eth0: no IPv6 routers present
Dec 28 09:26:31 web1 kernel: CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Dec 28 09:26:31 web1 kernel: CIFS VFS: cifs_mount failed w/return code = -113
Dec 28 09:26:34 web1 kernel: mybridge: port 1(eth0) entering learning state
Dec 28 09:26:35 web1 kernel: bootsplash: status on console 0 changed to on
Dec 28 09:26:37 web1 kernel: CIFS VFS: Error connecting to IPv4 socket. Aborting operation
Dec 28 09:26:37 web1 kernel: CIFS VFS: cifs_mount failed w/return code = -113
Dec 28 09:26:49 web1 kernel: mybridge: topology change detected, propagating
Dec 28 09:26:49 web1 kernel: mybridge: port 1(eth0) entering forwarding state

In /etc/init.d/rc5.d (the default runlevel), this is what I have:

lrwxrwxrwx 1 root root 13 2005-10-17 10:21 K04cupsrenice -> ../cupsrenice
lrwxrwxrwx 1 root root 13 2005-11-10 16:57 K05powersaved -> ../powersaved
lrwxrwxrwx 1 root root 12 2005-10-17 10:20 K06haldaemon -> ../haldaemon
lrwxrwxrwx 1 root root 7 2005-10-17 10:20 K07cron -> ../cron
lrwxrwxrwx 1 root root 7 2005-10-17 10:21 K07xend -> ../xend
lrwxrwxrwx 1 root root 7 2005-10-17 10:19 K08nscd -> ../nscd
lrwxrwxrwx 1 root root 10 2005-10-17 10:19 K08postfix -> ../postfix
lrwxrwxrwx 1 root root 8 2005-10-17 10:38 K08smbfs -> ../smbfs
lrwxrwxrwx 1 root root 6 2005-10-18 17:17 K09smb -> ../smb
lrwxrwxrwx 1 root root 6 2005-10-17 10:19 K09xdm -> ../xdm
lrwxrwxrwx 1 root root 8 2005-10-17 10:19 K10acpid -> ../acpid
lrwxrwxrwx 1 root root 12 2005-10-17 11:10 K10alsasound -> ../alsasound
lrwxrwxrwx 1 root root 7 2005-10-17 10:21 K10cups -> ../cups
lrwxrwxrwx 1 root root 12 2005-10-17 10:19 K10microcode -> ../microcode
lrwxrwxrwx 1 root root 17 2005-10-28 16:31 K10running-kernel -> ../running-kernel
lrwxrwxrwx 1 root root 9 2005-10-17 10:19 K10splash -> ../splash
lrwxrwxrwx 1 root root 7 2005-10-17 10:20 K10sshd -> ../sshd
lrwxrwxrwx 1 root root 6 2005-10-17 10:19 K12nfs -> ../nfs
lrwxrwxrwx 1 root root 10 2005-10-17 10:19 K12nfsboot -> ../nfsboot
lrwxrwxrwx 1 root root 8 2005-10-17 10:19 K14mdnsd -> ../mdnsd
lrwxrwxrwx 1 root root 10 2005-10-17 10:19 K14portmap -> ../portmap
lrwxrwxrwx 1 root root 15 2005-10-17 10:18 K14splash_early -> ../splash_early
lrwxrwxrwx 1 root root 9 2005-10-17 10:18 K16syslog -> ../syslog
lrwxrwxrwx 1 root root 10 2005-10-17 10:53 K17network -> ../network
lrwxrwxrwx 1 root root 12 2005-10-17 10:18 K18boot.udev -> ../boot.udev
lrwxrwxrwx 1 root root 11 2005-10-17 10:28 K18earlykdm -> ../earlykdm
lrwxrwxrwx 1 root root 7 2005-10-17 10:19 K19dbus -> ../dbus
lrwxrwxrwx 1 root root 14 2005-10-28 16:31 K19mybridge.sh -> ../mybridge.sh
lrwxrwxrwx 1 root root 13 2005-10-18 17:17 K19myhostname -> ../myhostname
lrwxrwxrwx 1 root root 9 2005-10-17 10:18 K19resmgr -> ../resmgr
lrwxrwxrwx 1 root root 11 2005-10-17 10:18 K20earlykbd -> ../earlykbd
lrwxrwxrwx 1 root root 14 2005-10-17 10:18 K21earlysyslog -> ../earlysyslog
lrwxrwxrwx 1 root root 8 2005-10-17 10:18 K21fbset -> ../fbset
lrwxrwxrwx 1 root root 9 2005-10-17 10:18 K21random -> ../random
lrwxrwxrwx 1 root root 14 2005-10-17 10:18 S01earlysyslog -> ../earlysyslog
lrwxrwxrwx 1 root root 8 2005-10-17 10:18 S01fbset -> ../fbset
lrwxrwxrwx 1 root root 9 2005-10-17 10:18 S01random -> ../random
lrwxrwxrwx 1 root root 11 2005-10-17 10:18 S02earlykbd -> ../earlykbd
lrwxrwxrwx 1 root root 7 2005-10-17 10:19 S03dbus -> ../dbus
lrwxrwxrwx 1 root root 9 2005-10-17 10:18 S03resmgr -> ../resmgr
lrwxrwxrwx 1 root root 12 2005-10-17 10:18 S04boot.udev -> ../boot.udev
lrwxrwxrwx 1 root root 11 2005-10-17 10:28 S04earlykdm -> ../earlykdm
lrwxrwxrwx 1 root root 10 2005-10-17 10:53 S05network -> ../network
lrwxrwxrwx 1 root root 14 2005-10-28 16:31 S06mybridge.sh -> ../mybridge.sh
lrwxrwxrwx 1 root root 9 2005-10-17 10:18 S06syslog -> ../syslog
lrwxrwxrwx 1 root root 8 2005-10-17 10:19 S08mdnsd -> ../mdnsd
lrwxrwxrwx 1 root root 10 2005-10-17 10:19 S08portmap -> ../portmap
lrwxrwxrwx 1 root root 15 2005-10-17 10:18 S08splash_early -> ../splash_early
lrwxrwxrwx 1 root root 6 2005-11-29 17:37 S10nfs -> ../nfs
lrwxrwxrwx 1 root root 10 2005-10-17 10:19 S10nfsboot -> ../nfsboot
lrwxrwxrwx 1 root root 8 2005-10-17 10:19 S12acpid -> ../acpid
lrwxrwxrwx 1 root root 12 2005-10-17 11:10 S12alsasound -> ../alsasound
lrwxrwxrwx 1 root root 7 2005-10-17 10:21 S12cups -> ../cups
lrwxrwxrwx 1 root root 6 2005-10-17 10:19 S12kbd -> ../kbd
lrwxrwxrwx 1 root root 12 2005-10-17 10:19 S12microcode -> ../microcode
lrwxrwxrwx 1 root root 17 2005-10-28 16:31 S12running-kernel -> ../running-kernel
lrwxrwxrwx 1 root root 9 2005-10-17 10:19 S12splash -> ../splash
lrwxrwxrwx 1 root root 7 2005-10-17 10:20 S12sshd -> ../sshd
lrwxrwxrwx 1 root root 6 2005-10-18 17:17 S13smb -> ../smb
lrwxrwxrwx 1 root root 6 2005-10-17 10:19 S13xdm -> ../xdm
lrwxrwxrwx 1 root root 7 2005-10-17 10:19 S14nscd -> ../nscd
lrwxrwxrwx 1 root root 10 2005-10-17 10:19 S14postfix -> ../postfix
lrwxrwxrwx 1 root root 8 2005-10-17 10:38 S14smbfs -> ../smbfs
lrwxrwxrwx 1 root root 7 2005-10-17 10:20 S15cron -> ../cron
lrwxrwxrwx 1 root root 7 2005-10-17 10:21 S15xend -> ../xend
lrwxrwxrwx 1 root root 12 2005-10-17 10:20 S16haldaemon -> ../haldaemon
lrwxrwxrwx 1 root root 13 2005-11-10 16:57 S17powersaved -> ../powersaved
lrwxrwxrwx 1 root root 13 2005-10-17 10:21 S18cupsrenice -> ../cupsrenice

I'm running OpenSUSE 10 on a Dell 3000 series workstation (3.0 GHz processor, 1 GB ram, etc).

I'm not exactly sure what to think. Any ideas?
 
Old 12-29-2005, 04:48 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
fstab mounting is done before the network card is initialized.
option:

run the mount commands from rc.local
 
Old 12-29-2005, 05:41 PM   #3
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Unhappy

I'm confused.

1) These are network mounts. Don't I need the card AND the IP stack loaded BEFORE I mount a network resource?

2) Doesn't Linux automatically mount stuff in fstab? I would think, that by putting it into my fstab, it would auto mount at boot. I didn't think I needed to add a manual mount command anywhere in rc. I listed my rc5.d because I thought maybe something needed to be shuffled around.

I'm not trying to downplay your comment, I'm just a little lost. Thanks for the help!
 
Old 12-29-2005, 05:45 PM   #4
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
I don't have a rc.local. I have a boot.d, though. Is this the same thing?
 
Old 12-29-2005, 06:20 PM   #5
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
not sure what the file is in suse, but basically there is a place you can run commands on boot.

i don't know a way, or know if it is possible to mount network mount points from fstab at boot, i always have mounted them from a script that runs from my rc.local file that sends me an email if the drive was not reconnected.

i put them in the fstab, but not to load on boot.
 
Old 12-29-2005, 07:07 PM   #6
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
Allright, that makes sense. I assume 'noauto' is the fstab option that tells linux not to attempt to mount it at boot time?

Thanks
 
Old 12-29-2005, 07:14 PM   #7
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
yes that is correct
 
Old 12-29-2005, 07:54 PM   #8
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
I'm sorry, I'm still struggling with this.

I put my CIFS mounts on noauto, and then put 'mount -a' in a shell script, and symlinked it in boot.d, so that it the last boot.d script (S14netmount is what I called it).

I rebooted, and nothing. It appears 'mount -a' ignores noauto entries.

So, I took out the noauto option, and then put 'mount -a' in /etc/init.d/boot.local, rebooted, and got the same results: nothing.

So exactly what do you do? If you don't want it to attempt to automount when it reads fstab (during boot), and put 'noauto' in fstab, how do you tell linux to mount the 'noauto' entries in fstab without using 'mount -a' option?

Should the net mounting occur before the runlevel is initiated, or before? In the past, I have put 'mount -a' in the rc5.d (the default runlevel on this box), and it didn't work.

This issue has eluded me for some time, varying distros.

Thanks again...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network fstab entries not being mounted at boot tisource Linux - Networking 4 12-26-2005 11:47 AM
/etc/fstab -- adding entries every boot Kamikazee Linux - Newbie 3 07-14-2005 05:35 AM
Suse 9.1: Not all entries in fstab are mounted at boot. why? BrianK Linux - General 9 08-23-2004 02:45 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 08:45 AM
Where to find boot mount entries/file sharing at LAN Seppel Slackware 1 08-13-2003 05:23 AM


All times are GMT -5. The time now is 09:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration