Page 1 of 1

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

PostPosted: Aug 12th, '22, 08:37
by maluethy
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.

Re: Set up access to network folder SMB in Mageia

PostPosted: Aug 12th, '22, 15:07
by doktor5000
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.

Re: Set up access to network folder SMB in Mageia

PostPosted: Aug 13th, '22, 03:02
by rodgoslin
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.

Re: Set up access to network folder SMB in Mageia

PostPosted: Aug 17th, '22, 17:32
by maluethy
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.