Quotas should be enabled by default… what filesystem are you using there? You can determine that by running the command “mount” – could you paste in that output?
I hope this is what you asked for, i open a terminal and typed mount, here is the outpot
marc@ns1:~$ mount
/dev/sda1 on / type ext4 (rw,grpquota,errors=remount-ro,usrquota)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
gvfs-fuse-daemon on /home/marc/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=marc)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sde1 on /media/A554-DE30 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
Thx Eric
Yes Eric, the option is there, but when i click on Enable Quotas, i get the following message:
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/
Here is whats on that pagr:
Filesyst /
type: New Native Filesystem
Mounted: Partition ID bla bla bla
status: User and Groups Inactive
Then i click on Enable Quotas and i get that error. Now, all works great (as far as I know( except for sending emails but another topic there).
its got to be some kind of wrong setting because i had this problem before on another system ( i was running my server of a laptop but now i moved to a real server i got for my self) and i gave access to Ronald to my server and he made that work, but he did not tell me what he did and I have not seen Ronald in a few months, hope hos well tho.
It almost sounds like the quota files had been deleted. I’m not entirely certain how to resolve that particular issue… though a little Googling on the error “quotaon: Cannot find quota file on /” does present some ideas.
I think the simplest one would be to try re-creating them, which you can do with the following commands:
There’s a command that specifically checks for damaged quota files and repairs them if necessary. I usually use that after e.g. copying /home to a new partition:
quotacheck examines each filesystem, builds a table of current disk usage,
and compares this table against that recorded in the disk quota file for the
filesystem (this step is omitted if option -c is specified). If any inconsistencies are
detected, both the quota file and the current system copy of the incorrect quotas
are updated (the latter only occurs if an active filesystem is checked which
is not advised).
Try this:
quotaoff /
quotacheck -m /
quotaon /
“-m” causes quotacheck to not try to remount the filesystem read-only, which it normally does to prevent processes from writing to it while it counts disk usage. You can’t remount / read-only though while the system is booted.
Ive had this alot, with ext4 on debain the only way I ever fixed it was to start over again. Not much help I know but it worked for me everytime. seems like just sometimes it don’t like it.
@ Vodkaholic this is the second time this happen on two different computers/server. It could be that Im using ext4 or maybe not, but both times I was stating with a fresh/clean install system.
@ Locutus Here is the ouput I got after running that on the terminal:
root@ns1:~# quotaoff /
quotaoff: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaoff: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
root@ns1:~# quotacheck -m /
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: lstat Cannot stat `//home/marc/.gvfs': Permission denied
Guess you'd better run fsck first !
exiting...
root@ns1:~# quotaon /
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/sda1] to turn quotas on/off.
root@ns1:~#
My next step is to boot from a live usb and run a fsck to sda1 see if that does anything. Thank you guys for helping.
Hmm, well for me, when fixing quotas after copying a /home, I always managed to do it with quotacheck.
You might try “quotacheck -avugimf” (all, verbose, user, group, interactive, no remount, force). If that still fails, try it twice, or delete /aquota.user first and then do an fsck.
Here is the ouput of quotacheck -avugimf (still have not run the fsck)
root@ns1:~# quotacheck -avugimf
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...
quotacheck: Scanning /dev/sda1 [/] quotacheck: lstat Cannot stat `//home/marc/.gvfs': Permission denied
Guess you'd better run fsck first !
exiting...
root@ns1:~#
Well, as I suggested, you might want to delete the empty quota files (at least I’m assuming that the error message “truncated” refers to that) and run fsck. Also check what’s up with “/home/marc/.gvfs” and see why quotacheck cannot access it.
I.e. fix all error messages that quotacheck gives you.