Alternative to "quota" for user FS quotas

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Alternative to "quota" for user FS quotas

Post by Chris Corbyn »

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:

Code: Select all

d11wtq root # cat /etc/mtab
/dev/discs/disc0/disc / xfs rw,noatime,quota,usrquota 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev devfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
/mirror /mirror hostfs ro 0 0

d11wtq root # quotacheck -vgum /
quotacheck: Mountpoint (or device) / not found.
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
d11wtq root #
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? :)
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Did you remount the partition? Or reboot?

Code: Select all

mount -o remount /partition
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Buddha443556 wrote:Did you remount the partition? Or reboot?

Code: Select all

mount -o remount /partition
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 :)

Thanks dude :)
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

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! 8O
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Buddha443556 wrote:
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! 8O
Did I type mtab? :lol: 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.
Post Reply