LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-28-2003, 09:58 AM   #1
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
RH9 & Samba


I was running RH8 and I have a script to mount certain directories of a WinNT box to certain mount points. Everything worked fine until I "upgraded" to RH9. Now when I run the script it will die at various places and I have to run the mounts one at a time. I would run the script a boot so that the mounts would reattach in the event of a power failure. Life was good now it's just a pain in the a.s.s. Thinking of going back to RH8 .
Anybody else have or heard of this?

Cooner
 
Old 07-28-2003, 10:24 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Can you post the script?
 
Old 07-28-2003, 11:35 AM   #3
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Original Poster
Rep: Reputation: 15
here ya go!
#!/bin/bash

mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_reports$ /var/www/html/midco/reports
mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_lode$ /var/www/html/midco/lodedata
mount -t smbfs -o username=thisuser,password=userpass //poweredge/Midcont$ /var/www/html/midco/drawings
mount -t smbfs -o username=thisuser,password=userpass //misc001/midco_images$ /var/www/html/midco/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/uscable_dwg$ /var/www/html/uscable/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/us_reports$ /var/www/html/uscable/reports
mount -t smbfs -o username=thisuser,password=userpass //misc001/uscable_images$ /var/www/html/uscable/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/savage$ /var/www/html/sci/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/sv_reports$ /var/www/html/sci/reports
 
Old 07-28-2003, 12:21 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
What kind of error message do you get when the script executes?
 
Old 07-28-2003, 01:27 PM   #5
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Original Poster
Rep: Reputation: 15
Copy of smbmount.log
[2003/07/28 12:23:30, 0] client/smbmount.c:send_fs_socket(383)
mount.smbfs: entering daemon mode for service \\poweredge\mc_reports$, pid=3040
[2003/07/28 12:23:31, 0] client/smbmount.c:send_fs_socket(383)
mount.smbfs: entering daemon mode for service \\poweredge\mc_lode$, pid=3046
[2003/07/28 12:23:32, 0] client/smbmount.c:send_fs_socket(383)
mount.smbfs: entering daemon mode for service \\poweredge\Midcont$, pid=3051
 
Old 07-28-2003, 01:31 PM   #6
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Original Poster
Rep: Reputation: 15
I suppose I should add that I get no error in the system messages file.
It just stops and you need to hit ctl/z to break out of it
 
Old 07-28-2003, 01:37 PM   #7
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
can they be mounted in the terminal (ie using smbmount, via smbclient)?
 
Old 07-28-2003, 01:37 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
You are saying that when you run the cammands manually, it works fine. But when you run the script when booting, it does not work.
Have you tried running the command after login?
 
Old 07-28-2003, 01:44 PM   #9
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
just to add, if u "upgraded" in the true sense of the word to red hat 9 using the upgrade feature, then you are asking for problems, if you did a clean install you would likely eliminate a lot of your concerns.
let's hope u created some separate primary home and usr partitions, lol.
 
Old 07-29-2003, 08:23 AM   #10
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Original Poster
Rep: Reputation: 15
Well the "upgrade" as I called it was a complete reinstall (I never use anybodys upgrade). The problem happens anytime, ie.. running a script or running a single command in the terminal. Sometimes it works and somtimes it don't. I am starting to believe it may have something to do with the depth of the directories on the NT box though I still have an rH8 box this all works fine on. I have another box with RH9 that I just tried this on last night and I have the same problem.
 
Old 07-29-2003, 08:35 AM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
What version of samba is it? Also did you try the smbmount command instead of mount?
 
Old 07-29-2003, 08:37 AM   #12
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Forgot, is your resolv.conf right? I have had some distros that that never set it up right at install and I had to do it manually. If you don't have the serach mydomain.com in it, it will cause you problems too.
 
Old 07-29-2003, 09:07 AM   #13
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Original Poster
Rep: Reputation: 15
samba 2.2.7a-8.9.0
The resolv.conf appears to be OK
No I have never tried smbmount command, I thought that was what I was doing with the options -t smbfs ?
Could you give me an example.
 
Old 07-29-2003, 10:05 AM   #14
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
The smbmount was just a guess. Can you ping the NT server by name? Do you have any dropped packets when you ping?
 
Old 07-29-2003, 10:23 AM   #15
emence
Member
 
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81

Rep: Reputation: 15
Cooner, I had the same exact problem you are talking about when I went from 8 to 9.
Quote:

here ya go!
#!/bin/bash

mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_reports$ /var/www/html/midco/reports
mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_lode$ /var/www/html/midco/lodedata
mount -t smbfs -o username=thisuser,password=userpass //poweredge/Midcont$ /var/www/html/midco/drawings
mount -t smbfs -o username=thisuser,password=userpass //misc001/midco_images$ /var/www/html/midco/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/uscable_dwg$ /var/www/html/uscable/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/us_reports$ /var/www/html/uscable/reports
mount -t smbfs -o username=thisuser,password=userpass //misc001/uscable_images$ /var/www/html/uscable/images
mount -t smbfs -o username=thisuser,password=userpass //poweredge/savage$ /var/www/html/sci/drawings
mount -t smbfs -o username=thisuser,password=userpass //poweredge/sv_reports$ /var/www/html/sci/reports
Try doing this:
mount -t smbfs -o username=thisuser,password=userpass //poweredge/mc_reports$/ /var/www/html/midco/reports

Make sure you put a slash after the $, thats what ended up fixing the majority of the issues that I had, Also try adding a sleep 1 command betwwen them. They might be getting the signals hung up on the NT box.
 
  


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
SAMBA & CUPS (Linux & Windows Printing) xcythe Linux - Networking 4 06-12-2005 12:46 PM
Samba & IPTABLES & Network Drives Oh My! logicdisaster Linux - Networking 3 06-03-2004 07:07 PM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 08:45 AM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 02:21 AM
Kernel 2.4.20-8 & RH9 & PCTEL an horror tale! Julian.Guarin Linux - Hardware 0 08-21-2003 01:52 PM


All times are GMT -5. The time now is 06:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration