disk quotas and how to fix them.
3 Replies
# /etc/rc.local
ln -s /dev/xvda /dev/root
/etc/init.d/quota restart
exit 0
That allowed me to start quotas in Webmin, and also have them persist after a reboot.
After some digging, I realised that the disks are now called sda (and sdb, sdc, etc). The xvda device no longer exists.
So I deleted the logical link to root and recreated it pointing to /dev/sda
Also edited the rc.local file so it will now create the link correctly and quotas should work on a reboot
user@host:/dev# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
ln -s /dev/sda /dev/root
/etc/init.d/quota restart
exit 0