permenently disabling disk quotas

chilihost

Well-Known Member
Mar 1, 2005
72
0
156
disk quotas are a constant hassle for me and I don't need them, what is the best way to permanently disable them on an entire server? Does:
quotaoff -av
work and will this keep the quotas disabled even after a reboot?

thanks!
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
chilihost said:
disk quotas are a constant hassle for me and I don't need them, what is the best way to permanently disable them on an entire server? Does:
quotaoff -av
work and will this keep the quotas disabled even after a reboot?
To achieve this goal, you'll need to re-compile your Kernel with quota off.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
AFAIK, No, you don't. You only need to make the fstab modification I mentioned and then turn off quotas and remove the quota files as I mentioned.
 

chilihost

Well-Known Member
Mar 1, 2005
72
0
156
My /etc/fstab file looks like this:
Code:
LABEL=/                 /                       ext3    defaults,usrquota        1 1
LABEL=/boot             /boot                   ext2    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home2            /home2                  ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda2               swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
so should I just remove that ,usrquota bit?

thanks again.
 

bijo

Well-Known Member
Aug 21, 2004
474
0
166
India
chilihost said:
My /etc/fstab file looks like this:
Code:
LABEL=/                 /                       ext3    defaults,usrquota        1 1
LABEL=/boot             /boot                   ext2    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home2            /home2                  ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda2               swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
so should I just remove that ,usrquota bit?

thanks again.
Hello,

Run the command
quotaoff -a
Then remove the entry userquota from fstab, It will help you ;)