Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. mount.nfs: Operation not permitted

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    mount.nfs: Operation not permitted

    This topic has been deleted. Only users with topic management privileges can see it.
    • Negalein
      Negalein Global Moderator @Thomas Braun last edited by

      @thomas-braun sagte in mount.nfs: Operation not permitted:

      /etc/fstab

      die sind inaktiv

      # UNCONFIGURED FSTAB FOR BASE SYSTEM
      //10.0.1.21/video      /nas/movies          cifs    auto,defaults,nofail,credentials=/etc/plex.cred,uid=plex 0 0
      #//IP/music     /nas/music          cifs    auto,defaults,nofail,credentials=/etc/plex.cred,uid=plex 0 0
      //10.0.1.22/photo     /nas/photos          cifs    auto,defaults,nofail,credentials=/etc/plex.cred,uid=plex 0 0
      

      Ich muss noch sagen, dass es um Proxmox und LXC geht.

      Ich bin nach diesem Tutorial vorgegangen.
      https://drozmotix.github.io/languages/de/BasicSetup/03.ProxmoxLXC.html#_5-externes-laufwerk-einbinden-z-b-nas

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Negalein last edited by

        @negalein
        Sowas:

        umount Laura
        

        geht nur mit entsprechenden Einträgen in der fstab.

        Negalein 1 Reply Last reply Reply Quote 0
        • Negalein
          Negalein Global Moderator @Thomas Braun last edited by

          @thomas-braun sagte in mount.nfs: Operation not permitted:

          geht nur mit entsprechenden Einträgen in der fstab.

          ok, lt. Tutorial von @Dutchman werden zuerst die Mounts in Proxmox angelegt.
          Dann in /etc/pve/lxc/XXX.conf eingetragen.

          Die /etc/pve/lxc/103.conf schaut so aus:

          arch: amd64
          cores: 4
          hostname: Plex
          memory: 3008
          net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=C2:ED:D5:25:DA:02,ip=dhcp,type=veth
          onboot: 1
          ostype: ubuntu
          parent: Backup_3
          rootfs: local-lvm:vm-103-disk-0,size=20G
          swap: 512
          unprivileged: 1
          lxc.mount.entry: /mnt/NAS/Photo mnt/Photo/ none bind,create=dir,optional 0 0
          lxc.mount.entry: /mnt/NAS/Video mnt/Video/ none bind,create=dir,optional 0 0
          lxc.mount.entry: /mnt/NAS/Backups mnt/Backups/ none bind,create=dir,optional 0 0
          lxc.mount.entry: /mnt/NAS/MP3 mnt/Musik/ none bind,create=dir,optional 0 0
          lxc.mount.entry: /mnt/NAS/Laura mnt/Laura/ none bind,create=dir,optional 0 0
          

          im 103 LXC sind die Ordner angelegt:

          nega@Plex:/mnt$ ls
          Backup  Backups  Filme  Kinder  Laura  MP3  MediaNAS  MediaNAs  Musik  Photo  PhotoNAS  Video
          

          In Proxmox wird das NAS richtig gemountet und man sieht den Inhalt vom NAS.

          root@proxmox:/mnt/NAS# cd /mnt/NAS/Laura
          root@proxmox:/mnt/NAS/Laura# ls
          '### L a u r a ###'  '### L i s i ###'  'P r i v a t'  '#recycle'
          

          Nur warum kommen die nicht im 103 LXC an?

          Thomas Braun JLeg 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Negalein last edited by Thomas Braun

            @negalein
            Wie das bei Proxmox läuft (vermutlich über dessen fstab) kann ich nicht sagen. Allerdings sind Dateinamen mit Sonderzeichen und Leerzeichen immer ungünstig und eine beliebte Fehlerquelle.

            1 Reply Last reply Reply Quote 0
            • JLeg
              JLeg @Negalein last edited by

              @negalein sagte in mount.nfs: Operation not permitted:

              Nur warum kommen die nicht im 103 LXC an?

              ...also bei mir heissen die Dinger "Mountpoints", und sehen so aus (.../lxc/103.conf):

              ...
              unprivileged: 1
              mp0: /mnt/NAS/Laura, mp=/mnt/NAS/Laura
              
              

              ...der Zielpfad im Container sollte vorher angelegt sein...

              Negalein 1 Reply Last reply Reply Quote 0
              • Negalein
                Negalein Global Moderator @JLeg last edited by

                @jleg sagte in mount.nfs: Operation not permitted:

                ...also bei mir heissen die Dinger "Mountpoints", und sehen so aus (.../lxc/103.conf):

                funktioniert auch nicht.

                mp0: /mnt/NAS/Laura mp=/mnt/Laura/

                im LXC ist /mnt/Laura angelegt.

                Und muss es unter unprivileged: 1 stehen?

                Mir schmeisst es die Zeile immer unter

                memory: 3008
                mp0: /mnt/NAS/Laura mp=/mnt/Laura/
                
                JLeg E 2 Replies Last reply Reply Quote 0
                • JLeg
                  JLeg @Negalein last edited by

                  @negalein
                  achte auf das Komma! 😉

                  mp0: /mnt/NAS/Laura, mp=/mnt/NAS/Laura
                  
                  Negalein 1 Reply Last reply Reply Quote 0
                  • Negalein
                    Negalein Global Moderator @JLeg last edited by

                    @jleg sagte in mount.nfs: Operation not permitted:

                    achte auf das Komma!

                    upps, übersehn

                    aber mp0: /mnt/NAS/Laura, mp=/mnt/Laura mag auch nicht.

                    Oder muss Proxmox auch rebootet werden?

                    JLeg 2 Replies Last reply Reply Quote 0
                    • JLeg
                      JLeg @Negalein last edited by

                      @negalein sagte in mount.nfs: Operation not permitted:

                      aber mp0: /mnt/NAS/Laura, mp=/mnt/Laura mag auch nicht.

                      sehr merkwürdig - welche Proxmox-Version ist das denn?
                      Und was siehst du, wenn du in der Proxmox-GUI beim entsprechenden Container unter "Ressourcen" schaust? Da müssen die Mountpoints gelistet sein (man kann die dort auch anlegen, aber leider kann man den Quell-Pfad nicht in dieser hier genutzten Form angeben).

                      Oder muss Proxmox auch rebootet werden?

                      nein, nur die Container. An den Proxmox-LXC-Templates hast du aber bei früheren Versuchen oder so nicht geschraubt, oder? Gibt diverse Anleitungen, die den direkten NFS-Mount per Apparmor-Gefummel ermöglichen wollen...
                      Was natürlich immer geht: Man nehme einen privilegierten Container, und schalte dann unter "Options" "NFS" ein. Ist aber nicht mehr empfohlen, da das ganze "privilegierte"-Konstrukt offiziell nicht mehr supported wird - unklar, welche Sicherheitslöcher das reissen kann. Was im "privaten" Umfeld aber wiederum egal sein dürfte...

                      Negalein 1 Reply Last reply Reply Quote 0
                      • Negalein
                        Negalein Global Moderator @JLeg last edited by

                        @jleg sagte in mount.nfs: Operation not permitted:

                        welche Proxmox-Version ist das denn?

                        7.1-8

                        Und was siehst du, wenn du in der Proxmox-GUI beim entsprechenden Container unter "Ressourcen" schaust?

                        Da steht er.
                        df3c54d6-de8c-4732-951a-b41189772134-image.png

                        Aber in Plex wird in /mnt/Laura nichts angezeigt.
                        9f70406c-4f47-4291-ae9e-bb5bb459bb44-image.png

                        Gibt diverse Anleitungen, die den direkten NFS-Mount per Apparmor-Gefummel ermöglichen wollen...

                        Nein, nur nfs commons (oder so ähnlich) nachinstalliert.

                        1 Reply Last reply Reply Quote 0
                        • JLeg
                          JLeg @Negalein last edited by

                          @negalein sagte in mount.nfs: Operation not permitted:

                          aber mp0: /mnt/NAS/Laura, mp=/mnt/Laura mag auch nicht.

                          Ok, jetzt hab' ich mal nachgeschaut, wie's hier genau aussieht - probier' das obige nochmal, aber ohne den Blank zwischen den Pfaden, also genau so:

                          mp0: /mnt/NAS/Laura,mp=/mnt/Laura
                          

                          das muss tun 🙂

                          Negalein 1 Reply Last reply Reply Quote 0
                          • Negalein
                            Negalein Global Moderator @JLeg last edited by Negalein

                            @jleg sagte in mount.nfs: Operation not permitted:

                            das muss tun

                            der mag mich nicht 😞

                            nega@Plex:~$ cd /mnt/Laura
                            -bash: cd: /mnt/Laura: Permission denied
                            

                            9f9199d1-84e8-4515-a72f-cfad50879798-image.png

                            JLeg 1 Reply Last reply Reply Quote 0
                            • E
                              Einstein67 @Negalein last edited by Einstein67

                              @negalein said in mount.nfs: Operation not permitted:

                              Und muss es unter unprivileged: 1 stehen?

                              Nein. Bei einem unprivilegierten LCX gibts kein NFS/CIFS mount.

                              Screenshot 2022-03-31 163627.png

                              1 Reply Last reply Reply Quote 0
                              • JLeg
                                JLeg @Negalein last edited by JLeg

                                @negalein sagte in mount.nfs: Operation not permitted:

                                @jleg sagte in mount.nfs: Operation not permitted:

                                das muss tun

                                der mag mich nicht 😞

                                nega@Plex:~$ cd /mnt/Laura
                                -bash: cd: /mnt/Laura: Permission denied
                                

                                ahso, d.h. der Container startet ohne Fehler, aber die Rechte stimmen nicht? Muss man ja wissen 😉
                                Wie sehen denn die Rechte oben unter Proxmox aus (/mnt/NAS/Laura)? Die Rechte sollten eigentlich durchgereicht werden...

                                also mal "ls -al /mnt/NAS" auf dem Proxmox-Node, und "ls -al /mnt" im Container

                                Negalein 1 Reply Last reply Reply Quote 0
                                • Negalein
                                  Negalein Global Moderator @JLeg last edited by

                                  @jleg sagte in mount.nfs: Operation not permitted:

                                  ls -al /mnt/NAS

                                  drwxr-xr-x 8 root   root   4096 Nov  9 14:29 .
                                  drwxr-xr-x 6 root   root   4096 Nov  9 14:08 ..
                                  drwxrwxrwx 1 root   root     28 Mar 31 14:30 Backups
                                  drwxrwxrwx 1 root   root    114 Mar 28 13:01 Laura
                                  drwxrwxrwx 1 root   root   3904 Mar 23 23:48 Mp3
                                  drwxr-xr-x 2 root   root   4096 Sep 18  2021 MP3
                                  drwxrwxrwx 1 138862 138862 6826 Mar 29 23:46 Photo
                                  drwxrwxrwx 1 root   root     62 Mar 30 21:21 Video
                                  

                                  ls -al /mnt

                                  nega@Plex:~$ ls -al /mnt
                                  total 40
                                  drwxr-xr-x 14 root   root    4096 Mar 30 21:30 .
                                  drwxr-xr-x 24 root   root    4096 Mar 31 14:33 ..
                                  drwxr-xr-x  2 root   root    4096 Mar 30 20:35 Backup
                                  d---------  1 nobody nogroup   28 Mar 31 12:30 Backups
                                  drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Filme
                                  drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Kinder
                                  d---------  1 nobody nogroup  114 Mar 28 11:01 Laura
                                  drwxr-xr-x  2 root   root    4096 Sep 18  2021 MP3
                                  drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAS
                                  drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAs
                                  drwxr-xr-x  2 nobody nogroup 4096 Sep 18  2021 Musik
                                  drwxr-xr-x  1  38862   38862 6826 Mar 29 21:46 Photo
                                  drwxr-xr-x  2 root   root    4096 Aug 20  2021 PhotoNAS
                                  d---------  1 nobody nogroup   62 Mar 30 19:21 Video
                                  
                                  
                                  JLeg 1 Reply Last reply Reply Quote 0
                                  • JLeg
                                    JLeg @Negalein last edited by

                                    @negalein ui ui ui, das sieht alles bissel merkwürdig aus - die NFS-Shares sind demnach also nicht per Proxmox angelegt, sondern "zu Fuss". Aber da "world writeable", sollte das trotz "root"-Inhaber trotzdem erstmal tun.
                                    Probier' am besten mal folgendes:

                                    • stoppe den Container 103
                                    • kommentiere in der 103.conf die "mp0"-Zeile nochmal aus (oder lösche sie)
                                    • starte den Container (pct start 103), gehe in den Container (pct enter 103)
                                    • lösche das Verz.: rmdir /mnt/Laura
                                    • lege es neu an: mkdir /mnt/Laura
                                    • setze Owner: chown nobody.nogroup /mnt/Laura
                                    • setze Rechte: chmod 755 /mnt/Laura
                                    • verlasse den Container (Ctrl-D)
                                    • stoppe den Container: pct stop 103
                                    • pack' die mp0-Zeile wieder in die 103.conf
                                    • starte den Container, und achte auf Meldungen (dürften keine kommen): pct start 103
                                    • betrete den Container wieder: pct enter 103
                                    • jetzt mal schauen: ls -al /mnt ; cd /mnt/Laura
                                    Negalein 1 Reply Last reply Reply Quote 0
                                    • Negalein
                                      Negalein Global Moderator @JLeg last edited by

                                      @jleg sagte in mount.nfs: Operation not permitted:

                                      jetzt mal schauen: ls -al /mnt ; cd /mnt/Laura

                                      😞

                                      root@Plex:~# ls -al /mnt
                                      total 40
                                      drwxr-xr-x 14 root   root    4096 Mar 31 15:25 .
                                      drwxr-xr-x 24 root   root    4096 Mar 31 15:28 ..
                                      drwxr-xr-x  2 root   root    4096 Mar 30 20:35 Backup
                                      d---------  1 nobody nogroup   28 Mar 31 12:30 Backups
                                      drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Filme
                                      drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Kinder
                                      d---------  1 nobody nogroup  114 Mar 28 11:01 Laura
                                      drwxr-xr-x  2 root   root    4096 Sep 18  2021 MP3
                                      drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAS
                                      drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAs
                                      drwxr-xr-x  2 nobody nogroup 4096 Sep 18  2021 Musik
                                      drwxr-xr-x  1  38862   38862 6826 Mar 29 21:46 Photo
                                      drwxr-xr-x  2 root   root    4096 Aug 20  2021 PhotoNAS
                                      d---------  1 nobody nogroup   62 Mar 30 19:21 Video
                                      root@Plex:~# cd /mnt/Laura
                                      bash: cd: /mnt/Laura: Permission denied
                                      
                                      JLeg 1 Reply Last reply Reply Quote 0
                                      • JLeg
                                        JLeg @Negalein last edited by

                                        @negalein

                                        bist du sicher, dass du die "Liste" oben komplett "abgearbeitet" hast? Der Ordner "Laura" ist vom 28. März - müsste ja nach dem rmdir/mkdir von heute sein!

                                        Negalein 2 Replies Last reply Reply Quote 0
                                        • Negalein
                                          Negalein Global Moderator @JLeg last edited by

                                          @jleg sagte in mount.nfs: Operation not permitted:

                                          bist du sicher, dass du die "Liste" oben komplett "abgearbeitet" hast?

                                          Ja, ganz sicher

                                          Ich machs nochmal

                                          1 Reply Last reply Reply Quote 0
                                          • Negalein
                                            Negalein Global Moderator @JLeg last edited by Negalein

                                            @jleg sagte in mount.nfs: Operation not permitted:

                                            komplett "abgearbeitet

                                            Nochmal alles gemacht.
                                            Wieder Laura mit 28. 3.

                                            Dann Kind statt Laura genommen.

                                            root@Plex:~# ls -al /mnt
                                            total 40
                                            drwxr-xr-x 14 root   root    4096 Mar 31 15:45 .
                                            drwxr-xr-x 24 root   root    4096 Mar 31 15:47 ..
                                            drwxr-xr-x  2 root   root    4096 Mar 30 20:35 Backup
                                            d---------  1 nobody nogroup   28 Mar 31 12:30 Backups
                                            drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Filme
                                            drwxrwxrwx  1 nobody nogroup  114 Mar 28 11:01 Kind
                                            drwxr-xr-x  2 root   root    4096 Mar 30 21:30 Kinder
                                            drwxr-xr-x  2 root   root    4096 Sep 18  2021 MP3
                                            drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAS
                                            drwxr-xr-x  2 root   root    4096 Aug 20  2021 MediaNAs
                                            drwxr-xr-x  2 nobody nogroup 4096 Sep 18  2021 Musik
                                            drwxr-xr-x  1  38862   38862 6826 Mar 29 21:46 Photo
                                            drwxr-xr-x  2 root   root    4096 Aug 20  2021 PhotoNAS
                                            d---------  1 nobody nogroup   62 Mar 30 19:21 Video
                                            root@Plex:~# cd /mnt/Kind
                                            bash: cd: /mnt/Kind: Permission denied
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            850
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            64
                                            7373
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo