Code Snippet

Just another Code Snippet site

[Linux] Create a folder with quota

Create a new file with a defined size : (here 64M)

dd if=/dev/zero of=/opt/quota_drive bs=1024 count=65536
ls -altrih /opt/quota_drive

Create target mount :

mkdir -p /quota

Format new file with EXT3

/sbin/mkfs -t ext3 -q /opt/quota_drive -F

Mount file (direct) :

mount -o loop,rw,usrquota,grpquota /opt/quota_drive /quota

Mount file (fstab) :

/opt/quota_drive    /quota ext3    rw,loop,usrquota,grpquota  0 0

, , , , , ,


Leave a Reply

Your email address will not be published. Required fields are marked *