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.
|
 |
|
07-28-2003, 08:58 AM
|
#1
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Rep:
|
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
|
|
|
07-28-2003, 09:24 AM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
Can you post the script?
|
|
|
07-28-2003, 10:35 AM
|
#3
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Original Poster
Rep:
|
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
|
|
|
07-28-2003, 11:21 AM
|
#4
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
What kind of error message do you get when the script executes?
|
|
|
07-28-2003, 12:27 PM
|
#5
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Original Poster
Rep:
|
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
|
|
|
07-28-2003, 12:31 PM
|
#6
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Original Poster
Rep:
|
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
|
|
|
07-28-2003, 12:37 PM
|
#7
|
Member
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533
Rep:
|
can they be mounted in the terminal (ie using smbmount, via smbclient)?
|
|
|
07-28-2003, 12:37 PM
|
#8
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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?
|
|
|
07-28-2003, 12:44 PM
|
#9
|
Member
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533
Rep:
|
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.
|
|
|
07-29-2003, 07:23 AM
|
#10
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Original Poster
Rep:
|
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.
|
|
|
07-29-2003, 07:35 AM
|
#11
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
What version of samba is it? Also did you try the smbmount command instead of mount?
|
|
|
07-29-2003, 07:37 AM
|
#12
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
07-29-2003, 08:07 AM
|
#13
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Original Poster
Rep:
|
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.
|
|
|
07-29-2003, 09:05 AM
|
#14
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
The smbmount was just a guess. Can you ping the NT server by name? Do you have any dropped packets when you ping?
|
|
|
07-29-2003, 09:23 AM
|
#15
|
Member
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:40 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
|
|