[SOLVED] Set up access to network folder SMB in Mageia

[SOLVED] Set up access to network folder SMB in Mageia

Postby maluethy » Aug 12th, '22, 08:37

I want to access a shared folder (SMB) from Mageia 8 with Plasma Desktop. According to the documentation there is "diskdrake" for this in Mageia. https://doc.mageia.org/mcc/8/en/content ... aring.html

I find the shared folder with diskdrake. But in the "Mount options" there is no field for entering the password (like in the documentation - see printscreen). I cannot finish setting up the network folder. What could be the reason for this?

With Dolphin I can access the shared folder (SMB) and also set it up as a network folder. However, I haven't figured out how to create a hard link for on the network folder.

When do I set up a network folder with diskdrake and when with a file manager like Dolphin?

Thanks in advance for the support.
Attachments
Screenshot_20220810_212305.png
Screenshot_20220810_212305.png (97.5 KiB) Viewed 4361 times
Last edited by maluethy on Aug 17th, '22, 17:35, edited 1 time in total.
maluethy
 
Posts: 83
Joined: Apr 17th, '20, 17:01

Re: Set up access to network folder SMB in Mageia

Postby doktor5000 » Aug 12th, '22, 15:07

Hi there, the issue with diskdrake is a longstanding bug. See e.g. https://bugs.mageia.org/show_bug.cgi?id=22011 or https://bugs.mageia.org/show_bug.cgi?id=25521
You can create the entry in /etc/fstab with diskdrake but you'd have to manually amend username, password and such (see the first bugreport for examples).
But you'd also have to amend that entry by _netdev and nofail as options to ensure that your box only tries to mount this once the network is up, and also does not fail booting if that SMB share is not accessible.
The advantage would be that this is available for all users on your box, and automatically mounted during boot.

If you do this via dolphin, this is only for your user. If you have multiple users each one of them would have to configure this.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Set up access to network folder SMB in Mageia

Postby rodgoslin » Aug 13th, '22, 03:02

This is indeed, a very long running problem, Without, yet having a solution, I'm afraid. I've found that the simplest way round this is to forget about diskdrake, and manually set it up. You need to add a mount point in /mnt, add the required entry in /etc/fstab, and add a credentials file in /etc/samba. A very long time ago, I found that this produces a viable mount, but that the mounted directory is owned by root, and therefore, all the files too, necessitating that you, as a user has to login as root, to add anything. Some time ago, in a ubuntu forum, I found that by appending to the fstab file an extra option, gid='username' and uid='username'. While this works, it does break the bootup in the respect that it creates files in the SMB mount that are only owned by the named user and group. I've no idea how to get around this particular problem, Since I'm the only user on my network, it's not a problem, for me.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Set up access to network folder SMB in Mageia

Postby maluethy » Aug 17th, '22, 17:32

Thank you for the feedback and explanations.

In this case, I will now access the shared folder (SMB) with Dolphin and see how it goes.
maluethy
 
Posts: 83
Joined: Apr 17th, '20, 17:01


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest