Use Quota in Ubuntu 16.04 in normal way












2















I was trying to setup quota for my ftp users on fresh Ubuntu 16.04.
I was using this flow



But at the end came to flowing error, after running "quotaon /" i got error




quotaon: using //aquota.user on /dev/vda1 [/]: No such process



quotaon: Quota format not supported in kernel.




I found alternative tutorial here which uses



apt-get -y install linux-image-generic
apt-get -y install linux-headers-generic
apt-get -y install linux-image-extra-`uname -r`


kernel overwriting method which i think is not so good approach.



I wondered if there is not present some alternative to "quotaon" ? as it is removed from kernel then there should be some normal alternative functionality to it ? or some other way to enable quotaon without re installation of "linux-image-generic ..." ?










share|improve this question





























    2















    I was trying to setup quota for my ftp users on fresh Ubuntu 16.04.
    I was using this flow



    But at the end came to flowing error, after running "quotaon /" i got error




    quotaon: using //aquota.user on /dev/vda1 [/]: No such process



    quotaon: Quota format not supported in kernel.




    I found alternative tutorial here which uses



    apt-get -y install linux-image-generic
    apt-get -y install linux-headers-generic
    apt-get -y install linux-image-extra-`uname -r`


    kernel overwriting method which i think is not so good approach.



    I wondered if there is not present some alternative to "quotaon" ? as it is removed from kernel then there should be some normal alternative functionality to it ? or some other way to enable quotaon without re installation of "linux-image-generic ..." ?










    share|improve this question



























      2












      2








      2


      0






      I was trying to setup quota for my ftp users on fresh Ubuntu 16.04.
      I was using this flow



      But at the end came to flowing error, after running "quotaon /" i got error




      quotaon: using //aquota.user on /dev/vda1 [/]: No such process



      quotaon: Quota format not supported in kernel.




      I found alternative tutorial here which uses



      apt-get -y install linux-image-generic
      apt-get -y install linux-headers-generic
      apt-get -y install linux-image-extra-`uname -r`


      kernel overwriting method which i think is not so good approach.



      I wondered if there is not present some alternative to "quotaon" ? as it is removed from kernel then there should be some normal alternative functionality to it ? or some other way to enable quotaon without re installation of "linux-image-generic ..." ?










      share|improve this question
















      I was trying to setup quota for my ftp users on fresh Ubuntu 16.04.
      I was using this flow



      But at the end came to flowing error, after running "quotaon /" i got error




      quotaon: using //aquota.user on /dev/vda1 [/]: No such process



      quotaon: Quota format not supported in kernel.




      I found alternative tutorial here which uses



      apt-get -y install linux-image-generic
      apt-get -y install linux-headers-generic
      apt-get -y install linux-image-extra-`uname -r`


      kernel overwriting method which i think is not so good approach.



      I wondered if there is not present some alternative to "quotaon" ? as it is removed from kernel then there should be some normal alternative functionality to it ? or some other way to enable quotaon without re installation of "linux-image-generic ..." ?







      linux ftp kernel ubuntu-16.04 quota






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 27 '18 at 17:30







      Armen

















      asked Dec 17 '18 at 7:11









      ArmenArmen

      637




      637






















          1 Answer
          1






          active

          oldest

          votes


















          1





          +50









          If you are running the Virtual kernel inside a virtual machine, then this is
          a known
          bug
          that can be fixed by installing the package linux-image-extra-virtual.



          Otherwise, a better tutorial on enabling quota is found in the Stack Overflow post
          Ubuntu quota format not supported in kernel,
          which is more comprehensive than the one you found.



          This does not involve modifying the Linux kernel, but it only causes
          the quota modules to start with the boot, so that the quota command is enabled.
          By default these kernel modules are not enabled, so that quota is unavailable.



          For completeness, here is the relevant part of the answer:




          We can install the full missing linux-generic package:



          apt-get -y install linux-generic


          Or only the extras packages (I prefer this):



          apt-get -y install linux-image-generic
          apt-get -y install linux-headers-generic
          apt-get -y install linux-image-extra-`uname -r`


          We need add the quota modules to start with boot:



          echo quota_v1 >> /etc/modules
          echo quota_v2 >> /etc/modules

          reboot


          Check if it's working:



          sudo -s
          cat /proc/modules | grep -i quota

          quota_v1 16384 0 - Live 0xffffffffc037c000
          quota_v2 16384 2 - Live 0xffffffffc0377000
          quota_tree 20480 1 quota_v2, Live 0xffffffffc0250000

          quotaon -pa

          group quota on / (/dev/sda1) is on
          user quota on / (/dev/sda1) is on


          Both quotas are activated.







          share|improve this answer


























          • Thanks for pointing that This method This does not involve modifying the Linux kernel

            – Armen
            Jan 2 at 7:44













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385152%2fuse-quota-in-ubuntu-16-04-in-normal-way%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1





          +50









          If you are running the Virtual kernel inside a virtual machine, then this is
          a known
          bug
          that can be fixed by installing the package linux-image-extra-virtual.



          Otherwise, a better tutorial on enabling quota is found in the Stack Overflow post
          Ubuntu quota format not supported in kernel,
          which is more comprehensive than the one you found.



          This does not involve modifying the Linux kernel, but it only causes
          the quota modules to start with the boot, so that the quota command is enabled.
          By default these kernel modules are not enabled, so that quota is unavailable.



          For completeness, here is the relevant part of the answer:




          We can install the full missing linux-generic package:



          apt-get -y install linux-generic


          Or only the extras packages (I prefer this):



          apt-get -y install linux-image-generic
          apt-get -y install linux-headers-generic
          apt-get -y install linux-image-extra-`uname -r`


          We need add the quota modules to start with boot:



          echo quota_v1 >> /etc/modules
          echo quota_v2 >> /etc/modules

          reboot


          Check if it's working:



          sudo -s
          cat /proc/modules | grep -i quota

          quota_v1 16384 0 - Live 0xffffffffc037c000
          quota_v2 16384 2 - Live 0xffffffffc0377000
          quota_tree 20480 1 quota_v2, Live 0xffffffffc0250000

          quotaon -pa

          group quota on / (/dev/sda1) is on
          user quota on / (/dev/sda1) is on


          Both quotas are activated.







          share|improve this answer


























          • Thanks for pointing that This method This does not involve modifying the Linux kernel

            – Armen
            Jan 2 at 7:44


















          1





          +50









          If you are running the Virtual kernel inside a virtual machine, then this is
          a known
          bug
          that can be fixed by installing the package linux-image-extra-virtual.



          Otherwise, a better tutorial on enabling quota is found in the Stack Overflow post
          Ubuntu quota format not supported in kernel,
          which is more comprehensive than the one you found.



          This does not involve modifying the Linux kernel, but it only causes
          the quota modules to start with the boot, so that the quota command is enabled.
          By default these kernel modules are not enabled, so that quota is unavailable.



          For completeness, here is the relevant part of the answer:




          We can install the full missing linux-generic package:



          apt-get -y install linux-generic


          Or only the extras packages (I prefer this):



          apt-get -y install linux-image-generic
          apt-get -y install linux-headers-generic
          apt-get -y install linux-image-extra-`uname -r`


          We need add the quota modules to start with boot:



          echo quota_v1 >> /etc/modules
          echo quota_v2 >> /etc/modules

          reboot


          Check if it's working:



          sudo -s
          cat /proc/modules | grep -i quota

          quota_v1 16384 0 - Live 0xffffffffc037c000
          quota_v2 16384 2 - Live 0xffffffffc0377000
          quota_tree 20480 1 quota_v2, Live 0xffffffffc0250000

          quotaon -pa

          group quota on / (/dev/sda1) is on
          user quota on / (/dev/sda1) is on


          Both quotas are activated.







          share|improve this answer


























          • Thanks for pointing that This method This does not involve modifying the Linux kernel

            – Armen
            Jan 2 at 7:44
















          1





          +50







          1





          +50



          1




          +50





          If you are running the Virtual kernel inside a virtual machine, then this is
          a known
          bug
          that can be fixed by installing the package linux-image-extra-virtual.



          Otherwise, a better tutorial on enabling quota is found in the Stack Overflow post
          Ubuntu quota format not supported in kernel,
          which is more comprehensive than the one you found.



          This does not involve modifying the Linux kernel, but it only causes
          the quota modules to start with the boot, so that the quota command is enabled.
          By default these kernel modules are not enabled, so that quota is unavailable.



          For completeness, here is the relevant part of the answer:




          We can install the full missing linux-generic package:



          apt-get -y install linux-generic


          Or only the extras packages (I prefer this):



          apt-get -y install linux-image-generic
          apt-get -y install linux-headers-generic
          apt-get -y install linux-image-extra-`uname -r`


          We need add the quota modules to start with boot:



          echo quota_v1 >> /etc/modules
          echo quota_v2 >> /etc/modules

          reboot


          Check if it's working:



          sudo -s
          cat /proc/modules | grep -i quota

          quota_v1 16384 0 - Live 0xffffffffc037c000
          quota_v2 16384 2 - Live 0xffffffffc0377000
          quota_tree 20480 1 quota_v2, Live 0xffffffffc0250000

          quotaon -pa

          group quota on / (/dev/sda1) is on
          user quota on / (/dev/sda1) is on


          Both quotas are activated.







          share|improve this answer















          If you are running the Virtual kernel inside a virtual machine, then this is
          a known
          bug
          that can be fixed by installing the package linux-image-extra-virtual.



          Otherwise, a better tutorial on enabling quota is found in the Stack Overflow post
          Ubuntu quota format not supported in kernel,
          which is more comprehensive than the one you found.



          This does not involve modifying the Linux kernel, but it only causes
          the quota modules to start with the boot, so that the quota command is enabled.
          By default these kernel modules are not enabled, so that quota is unavailable.



          For completeness, here is the relevant part of the answer:




          We can install the full missing linux-generic package:



          apt-get -y install linux-generic


          Or only the extras packages (I prefer this):



          apt-get -y install linux-image-generic
          apt-get -y install linux-headers-generic
          apt-get -y install linux-image-extra-`uname -r`


          We need add the quota modules to start with boot:



          echo quota_v1 >> /etc/modules
          echo quota_v2 >> /etc/modules

          reboot


          Check if it's working:



          sudo -s
          cat /proc/modules | grep -i quota

          quota_v1 16384 0 - Live 0xffffffffc037c000
          quota_v2 16384 2 - Live 0xffffffffc0377000
          quota_tree 20480 1 quota_v2, Live 0xffffffffc0250000

          quotaon -pa

          group quota on / (/dev/sda1) is on
          user quota on / (/dev/sda1) is on


          Both quotas are activated.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 29 '18 at 11:02

























          answered Dec 27 '18 at 19:52









          harrymcharrymc

          255k14266566




          255k14266566













          • Thanks for pointing that This method This does not involve modifying the Linux kernel

            – Armen
            Jan 2 at 7:44





















          • Thanks for pointing that This method This does not involve modifying the Linux kernel

            – Armen
            Jan 2 at 7:44



















          Thanks for pointing that This method This does not involve modifying the Linux kernel

          – Armen
          Jan 2 at 7:44







          Thanks for pointing that This method This does not involve modifying the Linux kernel

          – Armen
          Jan 2 at 7:44




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385152%2fuse-quota-in-ubuntu-16-04-in-normal-way%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Сан-Квентин

          8-я гвардейская общевойсковая армия

          Алькесар