OpenWrt Forum Archive

Topic: USB HD + samba no longer working

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I recently had a bit of a problem with my networked HD.  A few days ago, it stopped allowing me to copy files over.  I tried resetting the connection, remounting, and still no dice.  To make things even more interesting, I am able to mount the HD through ssh, access the files through sftp, just no samba.  I'm sure this might be a simple fix, but I'm not sure what command I'm not using. 

Bottom line: Samba used to work, no longer works.  Does not work on either of my OSX or Windows PCs.

Let me know if I need to post anything in reply.  Thanks.

I am using Kamikaze + Linksys WRTSL54GS.

Are both nmbd and smbd running?

Have you tried restarting Samba (/etc/init.d/samba stop; /etc/init.d/samba start)?

Hope this helps,
Charlie

They are...here are the processes running:

PID  Uid     VmSize Stat Command
    1 root        400 S   init       
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    9 root            SW  [mtdblockd]
   54 root            SWN [jffs2_gcd_mtd4]
   67 root        412 S   logger -s -p 6 -t 
   70 root        404 S   init       
   78 root        400 S   /sbin/syslogd -C16 -m 0
   81 root        376 S   /sbin/klogd
  251 root            SW  [khubd]
  324 root        456 S   udhcpc -t 0 -i eth1 -b -p /var/run/eth1.pid -R
  366 root            SW  [usb-storage-0]
  367 root            SW  [scsi_eh_0]
  468 root        376 S   crond -c /etc/crontabs
  472 root        416 S   /usr/sbin/dropbear -p 22
  481 root        432 S   httpd -p 80 -h /www -r OpenWrt
  499 nobody      456 S   /usr/sbin/dnsmasq --dhcp-range=lan,192.168.1.100,192.
  763 root        712 S   nmbd -D
1090 root            SW  [cifsoplockd]
1497 root        608 S   /usr/sbin/dropbear -p 22
1498 root        508 S   -ash
1508 root        756 R   nmbd -D
1510 root        712 S   nmbd -D
1511 root        892 S   smbd -D
1512 root        416 R   ps

When I try to stop Samba, it shows this:
/etc/rc.common: kill: 13: (1511) - No such process
/etc/rc.common: kill: 13: (1508) - No such process

When I start Samba, it just sits there for a few seconds, and I assume starts (which is what it used to do).

EDIT: There were a few users on my smb share earlier this week, but no longer.  I don't know how to check whether they are still "locked in" or if that is even causing the problem.

EDIT 2: After a while, I also notice that smbd stops running.

(Last edited by warren3 on 8 Jul 2008, 22:51)

The discussion might have continued from here.