cannot remove aquota.user or aquota.group

    • Offizieller Beitrag

    What is the output of: stat aquota.user

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • What is the output of: stat aquota.user

    Code
    $ stat aquota.user
      File: aquota.user
      Size: 8192            Blocks: 24         IO Block: 4096   regular file
    Device: 804h/2052d      Inode: 11          Links: 1
    Access: (0600/-rw-------)  Uid: (    0/    root)   Gid: (65534/ nogroup)
    Access: 2019-12-06 12:53:38.164482294 +0300
    Modify: 2019-12-06 12:53:37.784487440 +0300
    Change: 2019-12-06 12:53:37.784487440 +0300
     Birth: -
    $
    • Offizieller Beitrag

    The file is the correct permissions. Try:


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

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The file is the correct permissions. Try:


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

    Code
    pi@raspberrypi:/sharedfolders/Seagate4tb $ rm aquota.user 
    rm: cannot remove 'aquota.user': Operation not permitted
    pi@raspberrypi:/sharedfolders/Seagate4tb $ chmod 777 aquota.user
    chmod: changing permissions of 'aquota.user': Operation not permitted
    pi@raspberrypi:/sharedfolders/Seagate4tb $ sudo chattr -i aquota.user
    chattr: Operation not permitted while setting flags on aquota.user
    pi@raspberrypi:/sharedfolders/Seagate4tb $ sudo rm -f aquota.user
    rm: cannot remove 'aquota.user': Operation not permitted
    pi@raspberrypi:/sharedfolders/Seagate4tb $

    :(

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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/

    :(

    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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:


    Code
    proc            /proc           proc    defaults          0     $
    PARTUUID=6c586e13-01  /boot           vfat    defaults          $
    PARTUUID=6c586e13-02            /       ext4    noatime,nodirati$
    # a swapfile is not a swap partition, no line here
    #   use  dphys-swapfile swap[on|off]  for that
    # >>> [openmediavault]
    /dev/disk/by-label/SeagateEXT4          /srv/dev-disk-by-label-S$
    /dev/disk/by-label/WD1024               /srv/dev-disk-by-label-W$
    # <<< [openmediavault]
    • Offizieller Beitrag

    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 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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



    :(


  • 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!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    • Offizieller Beitrag

    That is correct on the salt command. And you have to disable the quota service not just stop it.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!