LinuxQuestions.org
Help answer threads with 0 replies.
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 09-30-2003, 02:14 PM   #1
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
mount of samba share hangs on command line


I am trying to write a script to mount about 10 different network drives using samba. The drives mount just fine, but when I am using the command line, it hangs when I press enter to execute the command. When I ctrl+c to break out and list the mount point, the drive is mounted perfectly. The would seem like a minor annoyance, but when I try to run the script (that I will eventually put in /etc/rc.d/rc.local), it will not finish.

I am running RedHat 9.0. the really odd thing is that it hangs on different mounts every time. One time it will mount fine and not hang, and others it wont, with no real pattern. Here is an example of my mount command. I am trying to use sudo so that I dont need to be root, but it hangs just the same if it is in there or if it is not and I run the script as root. Here is one example, they are all exactly the same except for the computer names and IPs

sudo umount //CHNT8/tdrive
#mounts CHNT8 to /mnt/smb/CHNT8/tdrive
echo "Mounting CHNT8 tdrive...."
sudo mount -t smbfs -o username=<username>,password=<passwd>,uid=markb,gid=pos,ip=<ipaddress> //CHNT8/tdrive /mnt/smb/CHNT8/tdrive/
echo "Done with CHNT8 tdrive."

If anyone sees anything that might be causing this, PLEASE let me know. Any help is much appreciated
 
Old 09-30-2003, 03:11 PM   #2
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
More than a minor annoyance, something is wrong with the samba client.

I setup a crontab to do some mounting copying and unmounting of smb shares..

A week later i had like a bagillion open smbclient mounts...

I have no idea what the problem is, but I know its around the smb-client.
 
Old 11-19-2003, 08:57 AM   #3
migusta
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
This one seems to be a bug...
https://bugzilla.redhat.com/bugzilla...g.cgi?id=90036
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
share directories from command line tarheel92x Linux - Networking 1 09-07-2004 09:09 PM
Can somebody like share me to write files to DVD disc in command line? exper Linux - Software 3 08-11-2004 07:58 PM
share a samba directory with the command line Mugatu Linux - Software 2 01-08-2004 01:44 PM
RHLinux 9.0 hangs when exiting command line mellsie25 Linux - Newbie 2 10-17-2003 09:27 PM

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

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