hey, so this is a sorta guide intended for myself on how to mount shares and shit. so uhh, look at the resources first, and then look at this guide. this is just for my own reference.
why do this?
So from what I seen, Dolphin connects to the SMB share in such a way that some programs (Ark, VLC, Veracrypt) refuse to work. Cryptomator can’t even see these shares, and so I decided to find an alternative way to mount these shares in a way that is transparent to any program.
on editing the fstab file:
So the way you do this is by adding this line at the end of the fstab
file, which is in /etc/fstab. You can edit this file with
any file editor (like nano), but I like msedit, so I will use that for
the example commands.
msedit /etc/fstab
And then you just add this line towards the end, replacing the placeholders with your own information.
//shareaddress.tailscaleaddress.ts.net/primaryshare /home/yourusername/mount cifs credentials=/home/yourusername/.smbcredentials, uid=yourusername,iocharset=utf8,_netdev 0 0
where:
-
//shareaddress.tailscaleaddress.ts.net/primaryshare: server address, make sure to add a specific share (in this case,primaryshare). It surprisingly also supports addresses that are from Tailscale. -
/home/yourusername/mount: this is where the share will mount on the system. Make sure this folder actually exists, or it will complain. -
cifs: denotes the kind of share this is (in this case, smb) -
credentials=/home/yourusername/.smbcredentials: points to the credentials file, which is a better way to store the credentials instead of just putting them in fstab. -
uid=yourusername,iocharset=utf8,_netdev 0 0: other parameters that add permissions so you can write into the share, as well as to define certain parameters to use a share. It also adds attributes to the share itself. “The option netdev is always recommended for cifs mounts in fstab. This switch delays mounting until the network has been enabled, though excluding this option won’t create a problem.” - random dude on Ask Ubuntu. Meanwhile,iocharsetis a safety measure to make sure that Fedora (or whatever Linux distro you use) can present all text in a readable format and show it correctly.
Keeping credentials in the fstab file is a bad idea,
since like anyone could just cat the fstab file and they
got your password now. Instead, create a ~/.smbcredentials file with the
following command.
msedit ~/.smbcredentials
Inside that file, add the following:
username=shareusername
password=yourpassword
Then add proper permissions to the whole thing, so no one else can access them aside from yourself.
chmod 600 ~/.smbcredentials
Finally, run these commands. The first command lets the system know that the fstab has been changed, and the second command is to restart the daemon so it can mount the share.
sudo mount -a
systemctl daemon-reload
Mount should finally appear in the file browser. Now, these programs (example: VLC) should work without any issues on these files from the share.
Stuff to keep in mind: so this mounts on boot (however it waits until
it has a suitable internet connection with the _netdev
option), and it may have some issues. The first resource link has a
guide on how to make it so it mounts on login, but I am not that well
versed in like, mounting shares and shit. Also keep in mind that I don’t
use a domain name for the share, but yours may be different, again, look
at the resources above.
page updates:
- 2026-09-14: fixed formatting issues that had to do with code.
- 2026-06-05: page was created.