This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Samba shares

Tags: None
(comma "," separated)
Llama
Registered Member
Posts
109
Karma
0
OS

Samba shares

Tue Oct 22, 2013 8:26 am
Hi,
I've got two samba shares in my windows dominated workplace. One is clearly visible (Smb4K, Krusader, Dolphin) as a mounted entity, another one can be explored via Konqueror only. There's definitely something special about Konqueror. Does it ring any bells? I should much prefer everything mounted the usual way.
Sorry for the poor research, but this is not my LAN, nor do I have any networking experience worth mentioning.

In Konqueror the otherwise invisible share looks like this:
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares

Thu Oct 24, 2013 7:10 am
To my knowledge Konqueror does nothing special in this area. Any share which can be browsed by Konqueror should be mountable by Smb4k.
If you enter the path manually in Smb4k, does it give any errors which may indicate why it is failing to mount it?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Fri Oct 25, 2013 5:36 am
Smb4K messages look like this:
Image
In Konqueror the unmountable share looks like this:
smb://orlov_a@wserver/БОС

and is browsable; the mountable share in Konqueror looks the same:
smb://orlov_a@wserver/Obmen

The БОС share requires authentication; credentials apparently accepted.
wolfi323
Registered Member
Posts
1129
Karma
11
OS

Re: Samba shares

Fri Oct 25, 2013 9:36 am
Llama wrote:Smb4K messages look like this:
Image
In Konqueror the unmountable share looks like this:
smb://orlov_a@wserver/БОС

and is browsable; the mountable share in Konqueror looks the same:
smb://orlov_a@wserver/Obmen

The БОС share requires authentication; credentials apparently accepted.

Your problem apparently comes from that non-Latin character in the share name.

Does it work maybe if you run smb4k like this?
Code: Select all
LANG=C smb4k


And which version of smb4k are you using?
There is a fix regarding localization in the recently released 1.0.8.
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Fri Oct 25, 2013 10:28 am
wolfi323 wrote:Your problem apparently comes from that non-Latin character in the share name.
And which version of smb4k are you using?
There is a fix regarding localization in the recently released 1.0.8.

This may well be the case: Smb4K 1.0.7


wolfi323 wrote:Does it work maybe if you run smb4k like this?
Code: Select all
LANG=C smb4k


$ LANG=C smb4k
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. please move it to /home/alexey/.config/fontconfig/fonts.conf manually
smb4k(8333)/kdeui (KIconLoader) KIconLoaderPrivate::normalizeIconMetadata: Neither size nor group specified!
smb4k(8333)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
$ smb4k(8333)/kdeui (KIconLoader) KIconLoaderPrivate::normalizeIconMetadata: Neither size nor group specified!
smb4k(8333)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:

No, it does not. Looks and works as usual.

UPD:

Updated Smb4K to 1.0.90. Still no luck. No changes. What can I try by way of manual mount?
wolfi323
Registered Member
Posts
1129
Karma
11
OS

Re: Samba shares

Fri Oct 25, 2013 6:49 pm
Llama wrote:
wolfi323 wrote:Your problem apparently comes from that non-Latin character in the share name.
And which version of smb4k are you using?
There is a fix regarding localization in the recently released 1.0.8.

This may well be the case: Smb4K 1.0.7

Updated Smb4K to 1.0.90. Still no luck. No changes.

1.0.90 is _older_ than 1.0.8 and does not yet contain this fix I was talking about.
But that fix won't help you anyway, if running with "LANG=C smb4k" doesn't help.

What can I try by way of manual mount?

You could try to use "mount" directly:
Code: Select all
sudo mount //HOST/SHARE mountpoint -o username=your_username,password=your_password

If that works, you could add a line to /etc/fstab, if you specify the "user" option there, you don't even have to be root for mounting.
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Sat Oct 26, 2013 5:36 am
Thank you very much, wolfi323! Unfortunately, this is a workplace battle, and the weekend is right in the beginning. Stay tuned :) !
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Mon Oct 28, 2013 5:08 am
$ sudo mount //WSERVER/БОС /home/alexey/smb4k/WSERVER/БОС -o username=uname,password=passwd
mount error: could not resolve address for WSERVER: Unknown error
$
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares

Mon Oct 28, 2013 6:21 am
Unknown error is a little unusual - does the CLI "smbclient" application work properly?
Could you also compare the mount paths and options used by Smb4k with those you are passing to mount to see if there are any notable differences?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Mon Oct 28, 2013 7:07 am
bcooksley wrote:Unknown error is a little unusual - does the CLI "smbclient" application work properly?

Anybody's guess :< . One of the two shares is OK, though.


bcooksley wrote:Could you also compare the mount paths and options used by Smb4k with those you are passing to mount to see if there are any notable differences?

Smb4K doesn't show its console output. Or does it?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares

Tue Oct 29, 2013 6:41 am
You can use the "mount" command to view the options used to mount all the file systems on your computer - including remote ones, such as those mounted by Smb4k.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Tue Oct 29, 2013 7:31 am
bcooksley wrote:You can use the "mount" command to view the options used to mount all the file systems on your computer - including remote ones, such as those mounted by Smb4k.


Ah! Thanks!
$ mount
...
//WSERVER/Obmen on /home/alexey/smb4k/WSERVER/Obmen type cifs (rw,relatime,vers=1.0,cache=strict,username=orlov_a,domain=SKPSS,uid=1000,forceuid,gid=100,forcegid,addr=192.168.0.125,file_mode=0755,dir_mode=0755,nounix,rsize=61440,wsize=65536,actimeo=1)

The catch, as I see it, is the natural absence of all the mount failures.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares

Thu Oct 31, 2013 6:26 am
Try the following invocation of mount:
Code: Select all
sudo mount -t cifs //WSERVER/БОС /home/alexey/smb4k/WSERVER/БОС -o username=uname,password=passwd


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Llama
Registered Member
Posts
109
Karma
0
OS

Re: Samba shares

Thu Oct 31, 2013 7:02 am
$ sudo mount -t cifs //WSERVER/БОС /home/alexey/smb4k/WSERVER/БОС -o username=uname,password=passwd
mount error: could not resolve address for WSERVER: Unknown error

The same error.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Samba shares

Fri Nov 01, 2013 7:05 am
Okay, try replacing //WSERVER/ with the IP address of the server to see if that helps. It sounds like this might be a bug in the CIFS file system driver with regards to UTF-8 share names...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]