I am setting up quota on my Linode server running Ubuntu 16.10, and I get the following error
Cannot stat() mounted device /dev/root: No such file or directory
So to fix this, I reached this thread for the fix which is done by adding
ln -s /dev/xvda /dev/root
/etc/init.d/quota restart
to the /etc/rc.local
. But Ubuntu 16.10 doesn't uses rc.local
anymore instead uses systemd. What is the alternative for rc.local
, How can I run the above commands on startup?
Also I enabled the service using systemctl enable rc-local.service
but it didn't work for me. Any lead would be appreciated.
/dev/root
. Fix the underlying bug and then you don't need to make this symlink. It should be configured to turn on quotas for all filesystems listed in /etc/fstab ( by uuid preferably ) with the quota option. – psusi Feb 24 '17 at 00:12/dev/root
? I am setting up using this https://www.howtoforge.com/tutorial/ubuntu-perfect-server-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/2/#g0.0.16 – Saurabh Sharma Feb 24 '17 at 07:15