LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't mount samba on boot, linux boots too fast? (https://www.linuxquestions.org/questions/linux-networking-3/cant-mount-samba-on-boot-linux-boots-too-fast-512100/)

gurkesaft 12-19-2006 08:29 PM

can't mount samba on boot, linux boots too fast?
 
Hello,

I just switched to Mandriva 2007. On other computers and different linux distros on this particular computer even, I can easily mount samba shares during linux bootup by editing my /etc/fstab file to include a line like

//192.168.1.77/data /network/my_data smbfs auto,username=whatever, password=whatever 0 0

It has always worked, even with Mandriva 2007 installed on a different machine (a slower one). On this machine, it fails when it tries to mount on boot. Suse on this computer succeeds (but Suse is slow).

I notice when I boot in interactive mode (have to say "y" to everything before it loads) it is perfectly capable of mounting the samba share. It's only when I let it go on its own that it fails. This says to me that it is loading too quickly to succeed. Perhaps the network is NOT fully functional before it tries to access the network computer.

Is there a fix for this?

If not, is there a way to slow down the boot, add a 3 second delay where I choose or something, as a hack?

Thanks!
-Jack

macemoneta 12-20-2006 06:52 AM

You can check for the mount in your rc.local, and retry it if it fails. Something like:

Code:

NETMOUNT=`/bin/mount | /bin/grep "/network/my_data"`
if [ "$NETMOUNT" == "" ]
then
  /bin/mount /network/my_data
fi



All times are GMT -5. The time now is 03:28 AM.