RE: Hang when mounting SMB shares

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

My mistake, I did forget to append & to the commands, I'll try that on
next reboot. However mounting via console as I mentioned hangs on the
second command; they are both identical, the second one just refers to
another share on the same machine. The end result is they are both
mounted correctly of course, but I have to ctrl-c out of it.
Very strange, I won't bust my head over it if it works through
rc.local..

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
 
touch /var/lock/subsys/local
 
# Mount SMB shares
 
mount -t smbfs -o username=*****,password=*****,uid=500 //fs1/storage1
/mnt/storage1
# mount -t smbfs -o username=*****,password=*****,uid=500 //fs1/storage2
/mnt/storage2

# lm_sensors
# modprobe i2c-i801
# modprobe w83781d



On Fri, 2003-05-23 at 07:57, ddembrow@xxxxxxxxxxx wrote:
> Y Makki:
> 
> It is hard to tell what is wrong without a sample rc.local script file.
> However, I suspect the commands being executed with rc.local script are not
> being run as a background task so the script waits for the command to
> return and it never does.
> 
> Original message:
> >Hello again
> >
> >Something I just tried which I think is worth mentioning, mounting from
> >the console does work fine, except the mount command hangs on the second
> >smb mount I try. I can however ctrl-c out of it, and it is actually
> >mounted properly.
> >
> >Thanks again
> >
> >
> >On Thu, 2003-05-22 at 10:30, Y Makki wrote:
> >> Hello
> >>
> >> Thanks to everyone who responded last time I posted about this problem.
> >> It was suggested I use /etc/rc.local for my smb mounting needs, which I
> >> did. Now the problem is, I don't remember if this started happening
> >> immediately, or worked fine a couple of times, but right now booting up
> >> the system hangs on the last service it usually starts:
> >> Starting Red Hat Network Daemon                     [OK]
> >> I tried disabling that service, it would hang on service 'local'.
> >> Commenting out anything related to smb mounts in /etc/rc.local fixes the
> >> problem. Any ideas here?
> >>
> >> Thanks
> >>
> 
> 
> 




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux