Author Topic: PCC - Access Windows (SMB) shared drives NOT working  (Read 1567 times)

Offline Cris70

  • Full Member
  • ***
  • Posts: 139
PCC - Access Windows (SMB) shared drives NOT working
« on: December 18, 2011, 09:03:42 AM »
Hi, I'm not sure if this is the right section to post my question.

I want to mount an SMB share at boot (it's an external USB disk connected to my router), but if I use "PCC - Access Windows (SMB) shared drives and directories", and press "Search servers" nothing comes up (apart the very same PC this PCLOS is running on).

I have a Windows PC in the same workgroup, and the router in another (non configurable) workgroup, but neither show in the list on the left.
Does anybody know what's the magic behind this "search servers" button?

Note that I can see the shares if I manually mount them or browsing them directly with Dolphin.

Any help?

T.I.A.

Cris

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: PCC - Access Windows (SMB) shared drives NOT working
« Reply #1 on: December 18, 2011, 09:37:04 AM »

open the terminal, run this command and give your output

smbtree -d 2 -N
.. 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 Cris70

  • Full Member
  • ***
  • Posts: 139
Re: PCC - Access Windows (SMB) shared drives NOT working
« Reply #2 on: December 18, 2011, 11:55:17 AM »
This is the result (external IP address amended):

Quote
[cris@polaris ~]$ smbtree -d 2 -N
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::213:8fff:fefc:de61%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface nrtap ip=fe80::d418:f0ff:fe27:44a0%nrtap bcast=fe80::ffff:ffff:ffff:ffff%nrtap netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.3 bcast=192.168.1.255 netmask=255.255.255.0
added interface nrtap ip=10.0.0.1 bcast=10.255.255.255 netmask=255.0.0.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.1.3 ( 192.168.1.3 )
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
HOMELAN
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
        \\POLARIS                       polaris
Error connecting to xxx.xxx.xxx.xxx (Success)
cli_start_connection: failed to connect to POLARIS<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
        \\PCANNA
Error connecting to xxx.xxx.xxx.xxx (Success)
cli_start_connection: failed to connect to PCANNA<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL

As you can see the Windows PC is visible here (\\PCANNA) together with my own PC (\\POLARIS - the one with PCLOS). But PCC only sees "polaris", nothing else. Also, the NAS is not visible neither with smbtree not with PCC. The NAS is on 192.168.1.1.

Bye
Cris

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: PCC - Access Windows (SMB) shared drives NOT working
« Reply #3 on: December 18, 2011, 12:19:24 PM »

Does the windows pc see the NAS?

sufficient number of people have had the same problem as you at some point or another but i dont there is a "bullet proof"  and out of the box solution to it

There are work around though. One of the them is to use IP addresses and not host names.The other one is to use host names but have them match to their IP addresses in the host file.

Lets go with the second approach.

Open PCC -> network and internet->others->host definitions, click "add" and fill in the IP address field with the IP address of the other computer and host name field with the host name of the other computer.

Run smbtree again and post your result
.. 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 Cris70

  • Full Member
  • ***
  • Posts: 139
Re: PCC - Access Windows (SMB) shared drives NOT working
« Reply #4 on: December 23, 2011, 03:54:16 PM »
Hi muungwana, sorry for the long delay.

The Windows PC does NOT see the NAS when using the "network neighborhood". It does see the NAS if I map the networks drives directly (i.e. using the IP address of the NAS).

I tried your suggestion and updated the /etc/hosts file. Now my hosts file looks like this:

Quote
[cris@polaris ~]$ cat /etc/hosts
# generated by drakhosts
127.0.0.1 polaris.guadagnino localhost
192.168.1.5 PCAnna pcanna


Here is the output from the smbtree command:

Quote
[cris@polaris ~]$ smbtree -d 2 -N
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::213:8fff:fefc:de61%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.3 bcast=192.168.1.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.1.3 ( 192.168.1.3 )
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
HOMELAN
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
        \\POLARIS                       polaris
Error connecting to xxx.xxx.xxx.xxx (Success)
cli_start_connection: failed to connect to POLARIS<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
        \\PCANNA


PCC is still seeing "polaris" only.

Bye
Cris

Offline demilord

  • Full Member
  • ***
  • Posts: 220
  • Windows not supported
Re: PCC - Access Windows (SMB) shared drives NOT working
« Reply #5 on: December 25, 2011, 03:39:20 PM »
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied

looks like a permission problem but im not sure if its the cause but you could try google this
Office required Windows XP or better, so I installed PCLinuxOS :D

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: PCC - Access Windows (SMB) shared drives NOT working
« Reply #6 on: January 10, 2012, 02:42:20 PM »
I never had time to dig into this, making it work....
I don't know if you're running KDE, but I always use smb4k to access Windows shares if it is needed (once a year or so...)
=> just another option you have....