I have a linux machine/server with a smb file share setup in my home network, works great. However, I’m trying to automount that share in my manjaro kde plasma machine. I can access the share just fine through dolphin with no issues. BUT, when I try including an entry with the fstab to automount that share, it gives me the permission denied error with the “home” folder. I’ve tried several permutations but nothing has worked so far.
So, I have a folder created in my specific home folder called skydrive (full path would be /home/ray/skydrive). And I’m trying to mount my smb share on another machine to that folder on boot, but keep getting the “home” permission denied error.
Have you tried with Smb4K? It’s practically a “must-have” for KDE if you plan on using SMB shares regularly.
You can manage multiple shares, choose whether or not to save the password/credentials, choose the location to mount, auto-mount and auto-unmount options, as well as choose from presets or use your own custom permissions.
smb4k is available from the official repositories and is officially part of KDE’s ecosystem.
Well, I went to try what yo suggested, but then discovered I didn’t have a media folder in root. That might explain why I didn’t try that before. I didn’t see a media folder to think about trying to mount it there.
Sure, the output is below. However, I created the media folder manually and then created my skydrive folder within that. I just randomly tried the last entry that you specified in my fstab file, and it seemed to work on reboot. However, I’m not sure it was actually related to the folder path and permissions anymore. The magic might have been in the rest of the parameters in the fstab entry that you specified. I’m not sure at this point, I haven’t played with it any more. However, I still have no idea why I didn’t have a media folder? Also, within Dolphin, it mounts the share and names it using the file path, so, in this instance, it appears at “media/skydrive”. Is there a way to give it a different label more user friendly label, such as “skydrive”?
I have to disagree with @papajoke on this one. I think it is a good practice to use /mnt for everything you mount manually in a terminal e.g. when chrooting and /media/xxx for permanent mounts of data and network resources in fstab. /run/media is used by system to mount things you access with GUI tools like when inserting a flash drive or clicking a partition in a file manager, so it should not be used for your manual mounts since they could have the same name as the inserted flash drive.
Yeah, /media is not the best name for custom mounts anyway, it also is used for automounts on some distros as Ubuntu if I remember correctly. However, on Manjaro it’s quite safe to use it. Nothing forbids setting another directory as well.
It’s more of removable than the opposite. Imagine plugging your cable off
And changing Wi-Fi network works kind of the same.
I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.
However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or or if you agree)
P.S. In the future, please don’t forget to come back to your question after your issue has been solved and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.
Screenshot, please? Because you can create a “Place” for it and then that should just work.
This directory contains subdirectories which are used as mount points for removable media such as floppy disks, cdroms and zip disks.
Historically there have been a number of other different places used to mount removable media such as /cdrom, /mnt or /mnt/cdrom. Placing the mount points for all removable media directly in the root directory would potentially result in a large number of extra directories in /. Although the use of subdirectories in /mnt as a mount point has recently been common, it conflicts with a much older tradition of using /mnt directly as a temporary mount point.
/mnt : Mount point for a temporarily mounted filesystem
This directory is provided so that the system administrator may temporarily mount a filesystem as needed. The content of this directory is a local issue and should not affect the manner in which any program is run.
This directory must not be used by installation programs: a suitable temporary directory not in use by the system must be used instead.
So you’re both right and it depends on your interpretation: My interpretation is: removeable media go into/mediabecause I can take the HDD out of the router and plug it in locally and it’ll get mounted in the exact same spot (which is the case for OP as well)