Quota problems. Can't mount filesystem
hey,
I'm trying to set up quotas on my server so that my flatmates (who have accounts) don't use up all my space. I would like to set quotas on their home folders, which are located in /home
I have done the following:
0. Enabled quota in kernel and recompiled:
pi / # grep -i quota /usr/src/linux/.config
CONFIG_QUOTA=y
CONFIG_QUOTACTL=y
1. installed quota .
2. created the following entry in /etc/fstab:
/dev/hdb1 /home reiserfs defaults,usrquota 1 1
3. not mounted /home
4. turned quota on.
Firstly, I will highlight that I CAN mount /home if I remove the "usrquota" option.
At this stage (with "usrquota" in fstab) I tried to mount /home:
pi / # mount /home
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
or too many mounted file systems
and when I do:
pi / # quotacheck -va
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
I get told the same thing.
As I said, I CAN mount the hard drive without the "usrquota" option, so it isn't a hardware problem.
I understand that I have to create the file: "aquota.user" in the filesystem which I will be mounting. This is what I haven't understood. Do I "touch acquota.user" in /home when the filesytem IS mounted or when /home ISN'T mounted? That is my first question.
In order make it when it isn't mounted, I have to take the "usrquota" option off and then mount the filesystem, umount it etc. I have done this.
I have also made hte files in /home when the filesystem wasn't loaded. HOwever, I still get no result.
What is my next move? It seems that the filesystem doesn't want to mount when i have the "usrquota"option on .
Thanks in advance for your help.
Hamish
|