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? |
fstab mounting is done before the network card is initialized.
option: run the mount commands from rc.local |
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! |
I don't have a rc.local. I have a boot.d, though. Is this the same thing?
|
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. |
Allright, that makes sense. I assume 'noauto' is the fstab option that tells linux not to attempt to mount it at boot time?
Thanks |
yes that is correct
|
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... |
All times are GMT -5. The time now is 12:54 AM. |