I have some problem when I'm trying to allocate disk limit for user in Ubuntu Desktop 12.04 LTS system. I use edquota to specify the amount of disk space for user after edit fstab file. Here are some questions I'm confusing.
I have enabled disk quota in the "/" inside fstab file. The problem is when I use the command
sudo repquota -a, you can see that the block size of my test2 user is 48928 KB
Let's compare the total amount of disk space of test2 user by issuing the command
sudo du -hc /home/test2
See what? The du command calculated the whole test2's home directory only 2MB. So why repquota calculates that much? 48MB.
By the way, How can I config the disk limit for user's home directory only? Is that useful? Because users only have permission of thier home directory. But I just want to know if it can be done.