为了在debian系统上启用用户配额,我必须编辑/ etc / fstab( http://tldp.org/HOWTO/Quota-3.html )。
但是在我的情况下,整个vm上的/ etc / fstab被注释掉了:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> #proc /proc proc defaults 0 0 #/dev/sda1 / ext3 defaults,errors=remount-ro 0 1 #/dev/sda4 none swap sw 0
如何定义根分区的用户配额,然后如果分区没有在fstab中列出?
mount命令输出:
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) rootfs on / type rootfs (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw)
尝试重新安装根分区:
mount -o remount,usrquota,grpquota /
命令可以在rc.local中添加