• SupportPlasma
  • Trying to mount an nfs shared folder results in operation not permitted

Greetings friends!
I have a computer with a shared nfs folder, the file /etc/exports looks like this:

/etc/exports
/home/user/folder *(rw,sync,no_subtree_check

I installed nfs-utils on my system, the one I'm trying to reach the folder from, and edited fstab as follows:

/etc/fstab
ip_address:/home/user/folder /run/media/user/folder/ nfs rw,bg,soft,intr,nosuid 0 0

Trying to mount and umount the folder through terminal with sudo works fine, but for the sake of comfort I'd like to be able to mount it and umount it from dolphin, when I try to do that, however, I get a red row on the top of dolphin that says the following:
An error occurred while accessing '/run/media/user/folder/', the sistem responded: mount.fs: failed to prepare mount: Operation not permitted

Is there a way to get the folder to mount from dolphin? I assume something trivial I'm missing 😛

    Have you tried auto-mount in Plasma Preferences on Login which can mount everything if required or am I misunderstanding your requirements.

      banger
      I don't want it to automount because the device in question isn't permanently on, otherwise I could do it with fstab.
      I just want to be able to mount and umount whenever I want without having to use the terminal.

      You did not mentioned what version of Solus you are running. These instructions should work with Plasma.
      A work around that I sometimes use to avoid lots of typing is to write an executable script which contains the instructions that would normally be typed in to terminal.
      Create an empty file.
      Open it with Kate
      Edit it to look a bit like this...
      #!/bin/bash
      Code you use to mount nsf shared folder

      Save the file, then right click on it and select Properties.
      Under Permissions check the box to Allow executing file as a program.
      That's it you're done.
      From Dolphin just right click your script and select Run in Konsole

      Forgive me if this sounds aggressive, I assure you it's not meant as that, but what do you mean which version?
      Is solus not rolling release? Wouldn't version apply to point release distros?
      If you mean which desktop enviroment I use, it's plasma.
      Huh. Running neofetch now I see it does show a version, I'll paste the output
      OS: Solus 4.7 Endurance x86_64
      Host: B450 AORUS ELITE V2 -CF
      Kernel: 6.12.9-312.current
      Uptime: 10 hours, 37 mins
      Packages: 1544 (eopkg), 56 (nix-user), 53 (nix-default), 14 (flatpak), 8 (snap)
      Shell: zsh 5.9
      Resolution: 1920x1080
      DE: Plasma 6.2.5
      WM: kwin
      Theme: Breeze-Dark [GTK2], Breeze [GTK3]
      Icons: Flatery-Pink-Dark [GTK2/3]
      Terminal: tmux
      CPU: AMD Ryzen 5 3600 (12) @ 4.208GHz
      GPU: AMD ATI Radeon RX 6600/6600 XT/6600M
      Memory: 13809MiB / 32014MiB

      I understand that this is an off topic question but why is there a version? I thought those were just for point release distros.
      I'm aware I can make a script, and if I wanted to do something like that I would have an even faster result with an alias.
      I want it to mount and umount from clicks on the icon on the file manager as it would with a usb stick.
      If that is not possible, then I'll just make an alias and call it good, but the solution suggested in the first reply I got would just automount on boot, which is not what I want to achieve.
      I want it to show in the "Remote" section of dolphin, as it does (see picture below, it's the one with the smudged path), and be able to right click it there to mount/umount without requirement of a password.
      Again if it's not possible it's ok, I will take my second best option, which is the alias.

        hugyourlovedones No worries, bad choice of terminology on my behalf. I should have prompted Plasma, Budgie, Gnome or XFE. They refer to the desktop environment and each has it's own special way of achieving the same final result (more or less).
        Sorry the script idea was not what you wanted. Figured a script to mount and another to unmount your nsf shared folder might fit the bill but it is probably a bit of a messy fix. I hope someone else can come up with a better solution for you.

          hugyourlovedones Not sure how far down the rabbit hole you have travelled on this. A quick web search can reveal various solutions. Some discussions caught my eye here and here, there might be something that will inspire a different direction for you.
          Good luck.
          Edit. My bad, the actual link was empty. Copy and paste error.

          Mhm, not sure the first link is useful, but the second link directs back to this same thread 😛

            hugyourlovedones I understand that this is an off topic question but why is there a version? I thought those were just for point release distros.

            The version number is mostly meaningless and mainly used to mark new ISO releases. Apparently they want to change it to a timestamp format at some point.
            (there might be slight differences between Solus installations that were set up using different ISO versions, but those usually don't matter)

            • Edited

            hugyourlovedones I don't know if it's the best method and if I understand the question well, I do this (myuser is my username, trekstore is the usb disc):

            cd  /run/media/"myuser"
            sudo mkdir trekstore

            After I open KDE Partition Manager then I select the "trekstore" disc in the window on the left and then in the window on the right I select "modification point of mount" (or somthing: is "modifica punto di montaggio" in my kde in italian language) and selecto/run/media/"myuser". Done.

              FAb7D

              And do you need to do that every time?

              I'm Italian too 🙂 Not that this is relevant.

                hugyourlovedones no, only the first time, when it is write on fstab, after this you use only dolphyn

                hugyourlovedones

                Unfortunately, Dolphin / Plasma doesn't officially support mounts loaded in /etc/fstab. The recommended and supported way is to go to
                Dolphin -> Remote (In the sidebar) -> Network
                Find your nfs mount there

                From there you can create a bookmark by dragging the share to the bookmarks in the sidebar

                Does this work for you?