LIUNX下的磁盘配额
原创
©著作权归作者所有:来自51CTO博客作者yirehe的原创作品,如需转载,请与作者联系,否则将追究法律责任
mkfs.ext3 /dev/sda1 格式化这个分区 这步也可以不做。
1 mount /dev/sda1 /mnt/d1 -o usrquota,grpquota
2mount会出现/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /mnt/d1 type ext3 (rw,usrquota,grpquota)
3more /etc/mtab
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
/dev/sda1 /mnt/d1 ext3 rw,usrquota,grpquota 0 0
4quotacheck -cvuga a 也可以用 /dev/sda1来取代 c表示创建数据库v表示创建
数据库的详细过程u用户g组a所有的分区
会出现
quotacheck: Scanning /dev/sda1 [/mnt/d1] done
quotacheck: Checked 2 directories and 0 files
quotacheck: Old file not found.
quotacheck: Old file not found.