Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-30-2003, 03:14 PM   #1
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, 04:11 PM   #2
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, 09:57 AM   #3
LQ Newbie
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
This one seems to be a bug...


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

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration