LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2003, 10:39 AM   #1
TrashCanMan
Member
 
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62

Rep: Reputation: 15
Mounting a Samba share after booting


Right - nice and easy one for you!!!

I have a small home network consisting of a Linux (Mandrake 9.1 with KDE GUI) NAT/Gateway, and some Win98se boxes. I use Samba to host the shared directory.

Thing is, I have to boot the windows machines *before* I boot the Linux machine, otherwise I cannot access the shared directories on the windows machines from the Linux box. I've tried mounting them using DiskDrake and manually at the console, all to no avail.

Does anyone know how to access the shared directories on the windows boxes if I mistakenly boot the Linux box up first?

Thanks for your help in advance!!!!

Regards,

Matt

 
Old 08-09-2003, 11:33 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
well there's no easy way to do that, Samba has no special option to keep retrying. I guess you'll have to write a little Bash script to look at it and to run this script each 5 min with cron.
 
Old 08-10-2003, 04:07 AM   #3
TrashCanMan
Member
 
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks for your reply, half_elf!

I don't necessarily need to automate, just to be able to run a script/type a command that I can run when someone boots up another PC.

Has anyone else hit this problem or have I misconfigured or something?
 
Old 08-10-2003, 08:46 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
This is a normal behavior.
In Linux, you NEED to mount disks to use them, even if the "disk" is a network share.

You'll need to write a script like the following then to run it at fixed time with cron.

#!/bin/sh
HDOK=`df | grep "windoze_computer_name"`
if [ HDOK = "" ]; then
BOXOK=`ping -c windoze_computer_ip`
if [ BOXOK != "destination unreachable" ]; then
smbmount //windoze_computer_name/shared_dir
fi
fi


ok this script is a bit stupid, and I haven't tried it, but it give you a general idea.
 
Old 08-10-2003, 09:15 AM   #5
TrashCanMan
Member
 
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62

Original Poster
Rep: Reputation: 15
That's cool, thanks. I'll give that a go!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting samba share glock19 Linux - General 13 07-15-2013 08:50 PM
Mounting Samba Share linux_or_bust Linux - Software 6 02-16-2005 09:38 AM
samba share mounting bacon22 Linux - Software 1 01-24-2004 07:13 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Mounting a Samba Share msjenkins Linux - Software 0 07-16-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 PM.

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