I'm trying to set up quotas for users on my VDS. The standard method is to use the quota package and apply usrquota option in fstab. I've done this and /etc/mtab reflects the changes but for some reaosn quota just refuses to find the drive:
I'm almost certain it's because the VDS runs inside UML so I ask this... Is there an alternative approach to setting up filesystem quotas for my users?
I tried a remount first and I got the same results but given that it's a VDS server and I only have one drive ( / ) I then tried a reboot since remounting / in a running system isn't ideal in any case
Turns out that XFS quota supported wasn't built into the UML kernel on the host so I changed mtab to give the partition a EXT3 FS. I know that sounds crazy, but because it's not a *real* disc and it's just fake hardware created by the UML server you can do that. So I'll just stop blabbering and say that after a reboot using ext3 it now works
d11wtq wrote:Turns out that XFS quota supported wasn't built into the UML kernel on the host so I changed mtab to give the partition a EXT3 FS. I know that sounds crazy, but because it's not a *real* disc and it's just fake hardware created by the UML server you can do that. So I'll just stop blabbering and say that after a reboot using ext3 it now works
d11wtq wrote:Turns out that XFS quota supported wasn't built into the UML kernel on the host so I changed mtab to give the partition a EXT3 FS. I know that sounds crazy, but because it's not a *real* disc and it's just fake hardware created by the UML server you can do that. So I'll just stop blabbering and say that after a reboot using ext3 it now works
Wow, UML sure made that easy!
Did I type mtab? That was a typo I meant fstab but anyway.
Yep
I've also just realised that there was little point changing to filesystem type so I may change back. I can just specify the quota format with the -F flag on both quotacheck and quotaon. I'm not sure which is the better option myself.