OS: Ubuntu 20.04.3 LTS
Basically I set my root cron to reboot every week. At first this was the line I used:
0 1 * * 0 /sbin/shutdown -r now
As the weeks went by I began to notice small but annoying issues after every reboot. So I decided to switch it up about two weeks ago. I instead made it run a script with just reboot
in it.
0 1 * * 0 /home/user/reboot.bash
I've been noticing less issues based on these two weeks but there was this one error that once happened with the old crontab and just happened today again even with the new crontab - the filesystem becoming read-only.
Sure, a quick fsck
fixes it no problem. But I have no idea why it would corrupt the filesystem when I reboot using cron. When I reboot using the GUI or by reboot
manually, it works just fine.
Keep in mind that this doesn't always happen; everything was fine last week. Sometimes the problem is different too - one time some of my drivers stopped working.
I have seen posts where people have this problem while dual-booting. However I don't think it applies since I only have ubuntu on the machine. I have no idea which logs to post so if you need any please tell me in the comments.