Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shell not returning - Samba mount script hanging random

1 view
Skip to first unread message

Chris P.

unread,
Jun 11, 2003, 3:03:32 AM6/11/03
to
Hi,

I am trying to setup a samba script to be run by cron on backup time. I am trying to mount a Windows 2000 stand alone
server shares.

I tried both variants:

smbmount '\\servername\sharename' /mnt/backup -o username=user1,password="password"

smbmount //servername/sharename /mnt/backup -o username=user1,password="password"

and both are working fine sometimes (30%) and sometimes (70%) are working but the command prompt is not returning and
the script are failing.

If I run both command by hand also I got the share mounted and the shell cursor is not coming back. If I run ^C and use
mount I can see that the share was mounted.

Any hint what should I do to get back the shell prompt always, after I run the smbmount? (I always run umount
/mnt/backup between mounts).

Thank you,

Chris P.


Joe Allesi

unread,
Jul 3, 2003, 11:55:43 AM7/3/03
to
CHRIS! Having the same problem! I am about to lose it mentally. If
you run smbmount in the shell interactively you will see that the same
thing happens sporadically. This has to be a bug in samba. Anyway, if
anyone has any clue as to why....please post. Otherwise I will be
forced to use a Windows Server to do the job. It must be a bug
introduced by RedHat 9 packages.

thanks,

joe

**********************************
My post to linux.redhat.misc and comp.protocols.samba
**********************************

Here is the command I am using:

mount -t smbfs //computername/c$ /mnt/mountname -o
workgroup=domainname,username=scripts,password=xxxxxx

The problem is that sometimes it mounts right away and works perfectly,
but other times the command just hangs forever until I interrupt it.
After a umount I attemt to mount it again and the command hangs, however
most of the time it successfully mounts but the command is still
stalled! Any ideas? I have tried the commands smbmount, mount.smb, and
mount -t smbfs. I think it has something to do with the timing of
authentication on the Windows machine after a umount.

thanks

Red Hat 8.0
Kernel 2.4.20-18.9
bash-2.05b-20.1
mount-2.11y-9
samba-2.2.7a-8.9.0

Joe Allesi

unread,
Jul 3, 2003, 12:00:14 PM7/3/03
to
Correction:

Red Hat 9.0


Kernel 2.4.20-18.9
bash-2.05b-20.1
mount-2.11y-9
samba-2.2.7a-8.9.0

Joe Allesi

unread,
Jul 3, 2003, 12:23:26 PM7/3/03
to

It works perfectly each time on this system:

Red Hat 8.0
kernel-2.4.18-26.8.0
bash-2.05b-5
mount-2.11r-10
samba-2.2.5-10

But only sporadically on this system, leaving the shell hanging:

0 new messages