Author Topic: [Solved] Samba strangeness  (Read 600 times)

Offline philld

  • Full Member
  • ***
  • Posts: 134
[Solved] Samba strangeness
« on: September 17, 2012, 10:43:49 AM »
I upgraded using the PCLinuxOS 2012.08 CD last week and did have SAMBA working following the upgrade - accessing several shares on various NAS devices.  After restarting the machine today however, if I try to mount the shares through the PCLinuxOS Control Centre -> Network Sharing -> Access Windows (SMB) shared drives and directories, after some delay, I get a list of all the shares but no carat in front that allows me to expand and see the various shares under each NAS.  (Desktop is KDE)

I checked that the SAMBA (SMB) service was running and it was - just to be sure, I stopped and restarted and still the same result.  I restarted each of the NAS units to eliminate that possibility and again, same result.

To ensure that the NAS's were being seen on the network, I logged into each through a browser without issue but still no samba access.

Next, I opened Dolphin and created a new entry in the "panel" pointing to one of the shares using "smb://192.168.0.57/Volume_1" and was able to access the share and open files using that method confirming that Samba is running.

I need to be able to "mount" the NAS shares for applications like "qbittorrent" and "ktorrent" to be able to access as using the "Dolphin" method above does not appear to give these other apps access.

In case it assists, here are the fstab entries for the NAS shares that I am trying to mount:
//amedserve/Volume_1 /mnt/AMediaV1 cifs username=% 0 0
//amedserve/Volume_2 /mnt/AMediaV2 cifs username=% 0 0
//dmedserve/Volume_1 /mnt/DMedia cifs auto,user,username=% 0 0
//mediaserver/Volume_1 /mnt/Media cifs auto,user,username=% 0 0
//smedserve/Volume_1 /mnt/SMedia cifs auto,user,username=% 0 0
//wmedserve/Public /mnt/WMedia cifs auto,user,username=% 0 0

As noted above, what is see in the PCLinuxOS Control Centre when attempting to mount is only the server names, i.e. amedserve, dmedserve, mediaserver, smedserve, wmedserve  but no carat to expand the entry.  If I do click on the server name, the system appears to be trying to do something for a number of seconds before coming back to the screen.  Clicking on servers, provides a another list of the above servers (plus a few other machines on the network) but no carat to expand any of them.

One thing I did notice but not sure if it relates to this problem is the /etc/samba/lmhosts file contains only 127.0.0.1 localhost whereas in the PCLinuxOS Control Centre -> Network & Internet -> Host Definitions, all of the NAS devices are listed with their IPs and aliases.

Any suggestions as to how to once again get the "mount" operational appreciated.
« Last Edit: September 17, 2012, 02:37:21 PM by philld »

Online muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Samba strangeness
« Reply #1 on: September 17, 2012, 12:22:58 PM »

did you add a window's computer on your network recently?

what does this command give you?

smbtree -N -d2
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline philld

  • Full Member
  • ***
  • Posts: 134
Re: Samba strangeness
« Reply #2 on: September 17, 2012, 02:37:01 PM »
Found the problem - as I was scanning through the /etc directory, came upon a file called "hosts" (/etc/hosts).  When I opened it, I saw that it corresponded to the hosts that I had defined in the PC Control Centre.  It also dawned on me while looking at the file, that the host name in the "fstab" file was the full name were as in the "hosts" file I had dropped the serve part of the hostname.  Went back in to PC Control Centre and modified each of the NAS entries to create an alias that corresponded to the name used in the "fstab" file, saved, restarted and all is now good.

Thanks muungwana for your reply, in answer to your question as to what smbtree -N -d2 provided.  Here it is:
smbtree -N -d2
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::92e2:baff:fe1b:6cd2%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.0.52 bcast=192.168.0.255 netmask=255.255.255.0
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
Got a positive name query response from 192.168.0.53 ( 192.168.0.53 )
Got a positive name query response from 192.168.0.53 ( 192.168.0.53 )
Got a positive name query response from 192.168.0.1 ( 192.168.0.1 )
Got a positive name query response from 192.168.0.53 ( 192.168.0.53 )
HOME
Got a positive name query response from 192.168.0.53 ( 192.168.0.53 )
        \\WMEDSERVE                     My Book World Edition Network Storage
                \\WMEDSERVE\IPC$                IPC Service (My Book World Edition Network Storage)
                \\WMEDSERVE\Configuration       System Configuration
                \\WMEDSERVE\Download            Download Share
                \\WMEDSERVE\Public              Public Share
        \\SOC                           localhost
                \\SOC\MFC7860DW         MFC7860DW
                \\SOC\Cups-PDF          Cups-PDF
                \\SOC\Canon-iP4200      Canon iP4200
                \\SOC\BTHR_MFC7860DW    BTHR_MFC7860DW
                \\SOC\IPC$              IPC Service (localhost)
                \\SOC\SocOldHome        Old Home Directory
                \\SOC\SocWinVista       WinVista
                \\SOC\pdf-gen           PDF Generator (only valid users)
                \\SOC\print$         
        \\SMEDSERVE                     DNS-323
                \\SMEDSERVE\IPC$                IPC Service (DNS-323)
                \\SMEDSERVE\lp                  USB Printer
                \\SMEDSERVE\web_page            Enter Our Web Page Setting
                \\SMEDSERVE\Volume_1       
        \\MEDIASERVER                   DNS-323
                \\MEDIASERVER\IPC$              IPC Service (DNS-323)
                \\MEDIASERVER\lp                USB Printer
                \\MEDIASERVER\web_page          Enter Our Web Page Setting
                \\MEDIASERVER\Volume_1       
        \\LP                            localhost
                \\LP\MFC7860DW          MFC7860DW
                \\LP\Cups-PDF           Cups-PDF
                \\LP\Canon-iP4200       Canon iP4200
                \\LP\IPC$               IPC Service (localhost)
                \\LP\extradasd          Extra Drive
                \\LP\Approach           Approach Data
                \\LP\Movies             Media directory
                \\LP\LPWin              Old Windows Disk
                \\LP\pdf-gen            PDF Generator (only valid users)
                \\LP\print$         
        \\DMEDSERVE                     DNS-323
                \\DMEDSERVE\IPC$                IPC Service (DNS-323)
                \\DMEDSERVE\lp                  USB Printer
                \\DMEDSERVE\web_page            Enter Our Web Page Setting
                \\DMEDSERVE\Volume_1       
        \\AMEDSERVE                     DNS-343
                \\AMEDSERVE\lp                  USB Printer
                \\AMEDSERVE\IPC$                IPC Service (DNS-343)
                \\AMEDSERVE\Volume_2       
                \\AMEDSERVE\Volume_1       
                \\AMEDSERVE\web_page            Enter Our Web Page Setting