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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-09-2003, 10:39 AM
|
#1
|
Member
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62
Rep:
|
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

|
|
|
08-09-2003, 11:33 PM
|
#2
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
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.
|
|
|
08-10-2003, 04:07 AM
|
#3
|
Member
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62
Original Poster
Rep:
|
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?
|
|
|
08-10-2003, 08:46 AM
|
#4
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
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.
|
|
|
08-10-2003, 09:15 AM
|
#5
|
Member
Registered: Jul 2003
Location: Midlands, UK
Distribution: Slackware 10, Mandrake 9.2, Knoppix, Win XP
Posts: 62
Original Poster
Rep:
|
That's cool, thanks. I'll give that a go!
|
|
|
All times are GMT -5. The time now is 03:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|