This small guide will help you get user quotas running on your B3.
This is the steps I took on B3 to get user quotas working. It might be missing some small thing as it took a lot of testing to get it. Feel free to comment on steps missing or clarifications needed.
1. Download files from - http://b3.update.excito.org/test/ .I used wget to download the kernel and module files.
Code: Select all
wget filenameCode: Select all
dpkg -i bubba3-kernel_2.6.35.8-1.armel.deb bubba3-modules_2.6.35.8-1.armel.deb4. Add quota support to mounted partition (I'm using journaled quota v2)
Open fstab and add ,usrjquota=aquota.user,jqfmt=vfsv0 to /home partition
Code: Select all
vi /etc/fstabCode: Select all
..
/dev/mapper/bubba-storage /home ext3 defaults,usrjquota=aquota.user,jqfmt=vfsv0 0 2
..
Code: Select all
mount -o remount /homeCode: Select all
..
/dev/mapper/bubba-storage on /home type ext3 (rw,usrjquota=aquota.user,jqfmt=vfsv0)
..Code: Select all
modprobe quota_v2
echo 'quota_v2' >> /etc/modules9. Check "lsmod" and find -
Code: Select all
..
quota_v2 3461 0
..10. Create aquota files
Code: Select all
touch /home/aquota.user
chmod 644 /home/aquota.user11. Install quota (might be installed already but just to be sure)
Code: Select all
apt-get install quota quotatoolCode: Select all
quotacheck -vcum /homeCode: Select all
quotacheck: Scanning /dev/mapper/bubba-storage [/home] done
quotacheck: Old group file not found. Usage will not be substracted.
quotacheck: Checked 19 directories and 16 files13. Turn the qouta on
Code: Select all
quotaon /home15. Now your done - quotas are working. Next step is to configure the usage limits.
16. You can use quotatool to set user quota limits. The example will set limit for user marten, using 15Mb for soft and 20Mb for hard limit on /home partition.
Code: Select all
quotatool -u marten -bq 15M -l "20 Mb" /homeIf you have any questions or comments please leave them here and I'll be happy to help.
Marten