ls hangs in root filesystem
Jordi Ferrando
jferrando at netplc.com
Sat Nov 11 09:50:37 UTC 2006
You can try using CIFS:
> jferrando at alcudia:/etc/init.d$ cat mount_cifs
> #!/bin/sh
> #
> # mount_cifs - Mounts samba filesystems
> # Written by Jordi Ferrando jferrando at netplc.com
> # Kubuntu.dapper
>
> MOUNT="/bin/mount"
> UMOUNT="/bin/umount"
>
> start() {
> echo "Start cifs filesystems..."
> mount -t cifs //espada.netplc.com/datos
> /home/jferrando/cespada -o
> credentials=/etc/smbc.jordi,uid=1000,gid=1000,iocharset=utf8
> #echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
> echo "Cifs client mount end"
> }
>
> stop() {
> echo "Cifs stop ..."
> $UMOUNT -l /home/jferrando/cespada
> echo "Umounted cifs filesystems"
> }
>
> status() {
> echo "Cifs file systems ..."
> df
> }
>
> restart() {
> echo "restart ..."
> stop
> start
> }
>
> reload() {
> echo "start ..."
> stop
> start
> }
>
> force_reload() {
> echo "force-reload ..."
> stop
> start
> }
>
> case $1 in
> start)
> start
> ;;
> stop)
> stop
> ;;
> status)
> status
> ;;
> restart)
> restart
> ;;
> reload)
> reload
> ;;
> force-reload)
> force_reload
> ;;
> *)
> echo "Usage: mount_cifs
> {start|stop|restart|reload|force-reload|status}"
> ;;
> esac
>
> exit 0
Richard S. Crawford escribió:
> This is extremely annoying, all the more so because it is a brand new behavior
> in a system that was working fine until today.
>
> I have a couple of remote drives that I connect to via Samba. Here are the
> lines from my /etc/fstab file:
>
> //Hagrid/richard /home/richard/Hagrid smbfs
> uid=richard,gid=richard,username=richard,password=****** 0 0
> //Hagrid/our_music /home/richard/Music smbfs
> uid=richard,gid=richard,username=richard,password=****** 0 0
> //Hagrid/shared_files /home/richard/Shared smbfs
> uid=richard,gid=richard,username=richard,password=****** 0 0
>
> For some reason, these shares do not mount automatically on boot. Usually I
> end up executing:
>
> $ sudo mount -a
>
> from a terminal after starting up the computer, which I don't mind doing.
>
> Today, however, things have started to go wrong. About a minute or so after I
> execute the mount -a command, my home directory becomes unavailable, as do
> the mounted Samba shares beneath it. If I try:
>
> $ ls
>
> from in my root directory, it just hangs. And hangs and hangs and hangs. I
> can stop the process with ^c, but that seems pointless. I also cannot browse
> the mounted shares.
>
> If I execute:
>
> $ sudo umount -a
>
> Then I can browse my home directory just fine.
>
> I've tried restarting the Samba server (which runs Fedora Core 3), I've tried
> rebooting my desktop computer, I've tried rebooting both computers, I've
> tried disabling and re-enabling IPv6 in my computer, but nothing has helped.
>
> Anyone got any ideas?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20061111/3da4c5fc/attachment.html>
More information about the kubuntu-users
mailing list