[Quota][User Space Size] How to quota the space of each user
1. Create 12G empty iso
dd if=/dev/zero of=/opt/image/happy bs=1024 count=12000000
2. Format iso as ext4 format
mkfs.ext4 /opt/image/happy
3. mount ext4 on /opt/happy
mount -t ext4 -o loop /opt/image/happy /opt/happy
4. Auto mount when OS restart
vim /etc/fstab
/opt/image/happy /opt/happy ext4 defaults 0 0
Reference :
0 意見:
張貼留言