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.