LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2006, 09:29 PM   #1
gurkesaft
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 12-20-2006, 07:52 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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
 
  


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
redhat enterprise linux 4 boots slow with 2 GB RAM , boots fast with 512MB robinsingh Linux - Hardware 14 08-27-2008 12:34 AM
How fast does your Linux distro boot? Rayen16 General 3 05-15-2005 05:04 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 02:21 AM
samba share mount on boot anthjaz Linux - Software 4 11-04-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:12 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