ID #1051

Is disk quota supported?

AFAIK there's no true quota support built in the FREESCO kernel (see this HOWTO what steps are required), but there's this FAQ, which doesn't describe a true quota system, but that method can be used to limit the amount of space a certain directory (i.e. the users login directory) can occupy.

The next howto has been posted by ubiquity and confirmed to be working on at least FREESCO 0.3.2 by TeCuMSeH
Original thread is here

Required is e2fsprogs package, available for both 0.2.7 and 0.3.x.


you can create a folder with a restricted size as follows
let's say you want the folder to only hold 100MiB.  Do the following:

create the container
dd bs=1024k count=100 < /dev/zero > your_container_file_path

map the container to a loop device
losetup /dev/loop0 your_container_file_path

format the loop device (get the e2fsprogs package)
mke2fs /dev/loop0

mount the loop device
mount /dev/loop0 your_desired_mount_point

FREESCO 0.2.7 only comes with two loop devices (loop0 and loop1).  If you need more, create them with mknod.
mknod loop2 b 7 2

After the container(s) is created, you can edit your rc_user to mount and unmount the device.
make sure to losetup before the mount and losetup -d after the unmount.
any loop devices created will not survive a reboot so place your appropriate mknod in rc_user, too.

Last update: 2004-10-14 00:01
Author: Dingetje
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 0 from 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry