cannot remove aquota.user or aquota.group

    • ryecoaaron wrote:

      What is the output of: stat aquota.user

      Source Code

      1. $ stat aquota.user
      2. File: aquota.user
      3. Size: 8192 Blocks: 24 IO Block: 4096 regular file
      4. Device: 804h/2052d Inode: 11 Links: 1
      5. Access: (0600/-rw-------) Uid: ( 0/ root) Gid: (65534/ nogroup)
      6. Access: 2019-12-06 12:53:38.164482294 +0300
      7. Modify: 2019-12-06 12:53:37.784487440 +0300
      8. Change: 2019-12-06 12:53:37.784487440 +0300
      9. Birth: -
      10. $
    • The file is the correct permissions. Try:

      sudo chattr -i aquota.user
      sudo rm -f aquota.user
      omv 5.2.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.2
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      The file is the correct permissions. Try:

      sudo chattr -i aquota.user
      sudo rm -f aquota.user

      Source Code

      1. pi@raspberrypi:/sharedfolders/Seagate4tb $ rm aquota.user
      2. rm: cannot remove 'aquota.user': Operation not permitted
      3. pi@raspberrypi:/sharedfolders/Seagate4tb $ chmod 777 aquota.user
      4. chmod: changing permissions of 'aquota.user': Operation not permitted
      5. pi@raspberrypi:/sharedfolders/Seagate4tb $ sudo chattr -i aquota.user
      6. chattr: Operation not permitted while setting flags on aquota.user
      7. pi@raspberrypi:/sharedfolders/Seagate4tb $ sudo rm -f aquota.user
      8. rm: cannot remove 'aquota.user': Operation not permitted
      9. pi@raspberrypi:/sharedfolders/Seagate4tb $
      :(
    • This is a waste of time...


      I just realized that you are trying to do this from the shared folder bind mount. You need to do this from the actual mountpoint for the filesystem - /srv/some/path/
      omv 5.2.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.2
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      This is a waste of time...


      I just realized that you are trying to do this from the shared folder bind mount. You need to do this from the actual mountpoint for the filesystem - /srv/some/path/

      Source Code

      1. $ cd /
      2. $ dir
      3. bin etc lib mnt root sharedfolders tmp
      4. boot export lost+found opt run srv usr
      5. dev home media proc sbin sys var
      6. $ cd srv
      7. $ dir
      8. dev-disk-by-label-SeagateEXT4 ftp salt
      9. dev-disk-by-label-WD1024 pillar
      10. $ cd dev-disk-by-label-SeagateEXT4
      11. $ dir
      12. Ubuntu\ 18.04.pvm databasefinalcutpro torrents
      13. aquota.group for_3d_render важное
      14. aquota.user lightroom_sklad
      15. $ rm aquota.user
      16. rm: cannot remove 'aquota.user': Operation not permitted
      17. $ sudo chattr -i aquota.user
      18. [sudo] password for test:
      19. chattr: Operation not permitted while setting flags on aquota.user
      20. $ sudo rm -f aquota.user
      21. rm: cannot remove 'aquota.user': Operation not permitted
      22. $
      Display All
      :(
    • I'm done because you need to remove the quota options (,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0) from the fstab entries. This needs to be done in the OMV database (change mntent in /etc/openmediavault/config.xml) and the rewrite fstab (omv-mkconf fstab for omv 4.x or omv-salt deploy run fstab for omv 5.x). Then reboot. Then you can delete them using sudo. I'm moving on to important things so you have to figure out the stuff missing.
      omv 5.2.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.2
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      I'm done because you need to remove the quota options (,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0) from the fstab entries. This needs to be done in the OMV database (change mntent in /etc/openmediavault/config.xml) and the rewrite fstab (omv-mkconf fstab for omv 4.x or omv-salt deploy run fstab for omv 5.x). Then reboot. Then you can delete them using sudo. I'm moving on to important things so you have to figure out the stuff missing.
      but i do not have records in the fstab:

      Source Code

      1. proc /proc proc defaults 0 $
      2. PARTUUID=6c586e13-01 /boot vfat defaults $
      3. PARTUUID=6c586e13-02 / ext4 noatime,nodirati$
      4. # a swapfile is not a swap partition, no line here
      5. # use dphys-swapfile swap[on|off] for that
      6. # >>> [openmediavault]
      7. /dev/disk/by-label/SeagateEXT4 /srv/dev-disk-by-label-S$
      8. /dev/disk/by-label/WD1024 /srv/dev-disk-by-label-W$
      9. # <<< [openmediavault]
    • RedpaX wrote:

      but i do not have records in the fstab:
      I see two that should have them. Your terminal is just cutting off the end. grep aquota /etc/fstab
      omv 5.2.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.2
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • 1) i am delete usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from /etc/openmediavault/config.xml
      2) run command omv-salt deploy
      3) run command reboot
      4) go to directory /srv/dev-disk-by-label-SeagateEXT4
      5) run command rm aquota.user and sudo chattr -i aquota.user and sudo rm -f aquota.user

      and

      Operation not permitted


      :(

      Source Code

      1. <mntent>
      2. <uuid>fd6478d5-75fd-426e-b430-f7ca7739d0fc</uuid>
      3. <fsname>/dev/disk/by-label/SeagateEXT4</fsname>
      4. <dir>/srv/dev-disk-by-label-SeagateEXT4</dir>
      5. <type>ext4</type>
      6. <opts>defaults,nofail,user_xattr,noexec,acl</opts>
      7. <freq>0</freq>
      8. <passno>2</passno>
      9. <hidden>0</hidden>
      10. </mntent>
      11. <mntent>
      12. <uuid>462a779e-0ae2-404b-93ae-912a0f647b17</uuid>
      13. <fsname>/dev/disk/by-label/WD1024</fsname>
      14. <dir>/srv/dev-disk-by-label-WD1024</dir>
      15. <type>ext4</type>
      16. <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      17. <freq>0</freq>
      18. <passno>2</passno>
      19. <hidden>0</hidden>
      20. </mntent>
      Display All
    • RedpaX wrote:

      1) i am delete usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from /etc/openmediavault/config.xml
      2) run command omv-salt deploy
      3) run command reboot
      4) go to directory /srv/dev-disk-by-label-SeagateEXT4
      5) run command rm aquota.user and sudo chattr -i aquota.user and sudo rm -f aquota.user

      and

      Operation not permitted
      For command number 2) above, there is more to it than that. It might be as below but I am not sure. The Salt stuff is all new and I do not know where it is documented, if at all yet.

      omv-salt deploy run fstab
      --
      Google is your friend and Bob's your uncle!

      RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.

      ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380
    • That is correct on the salt command. And you have to disable the quota service not just stop it.
      omv 5.2.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.2
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • gderf wrote:

      RedpaX wrote:

      1) i am delete usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from /etc/openmediavault/config.xml
      2) run command omv-salt deploy
      3) run command reboot
      4) go to directory /srv/dev-disk-by-label-SeagateEXT4
      5) run command rm aquota.user and sudo chattr -i aquota.user and sudo rm -f aquota.user

      and

      Operation not permitted
      For command number 2) above, there is more to it than that. It might be as below but I am not sure. The Salt stuff is all new and I do not know where it is documented, if at all yet.
      omv-salt deploy run fstab
      it was not easy! Thanks, all worked well!