View Single Post
  #3  
Old 13th September 2012, 00:25
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 395
Thanks: 30
Thanked 58 Times in 50 Posts
Default

I realize that it's been awhile, but this topic is still relevant. I'm fiddling with quota and quotatool on Ubuntu 12.04.1 LTS and am running into the same problem.

Steps to reproduce (is bears mention that I'm testing this in VirtualBox):

1.) Install quota and quotatool.

Code:
# apt-get install quota quotatool
2.) Modify /etc/fstab to contain appropriate quota/mount information.

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/mapper/ubuntu12-root /               ext4    errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0       1
# /boot was on /dev/sda1 during installation
UUID=ab42ed0f-4a35-424c-b031-75ca34898c6b /boot           ext2    defaults        0       2
/dev/mapper/ubuntu12-swap_1 none            swap    sw              0       0
3.) Enable quota.

Code:
# touch /aquota.user /aquota.group
# chmod 600 /aquota.*
# mount -o remount /
# quotacheck -avugm
quotacheck: WARNING -  Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING -  Quotafile //aquota.group was probably truncated. Cannot save quota settings...
# quotaon -avug
quotaon: Cannot find quota file on / [/dev/mapper/ubuntu12-root] to turn quotas on/off.
quotaon: Cannot find quota file on / [/dev/mapper/ubuntu12-root] to turn quotas on/off.
I tried your suggestion, Falko, using quota.group and quota.user, but the result doesn't seem to change.

I noticed also that the letter "j" appears in my /etc/fstab line, e.g., "usrjquota", which I assume is supposed to be there. I am working from a how-to that I compiled years ago, and I can't remember the significance, so maybe more recent software requires something different, and that's part of the issue.

Any thoughts?
Reply With Quote