Find out why your ubuntu stuck on reboot
Let's show detail logs when we were rebooting
-
edit
/etc/default/grub
, change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet"
to GRUB_CMDLINE_LINUX_DEFAULT="splash"
quiet: this option tells the kernel to NOT produce any output. (If you add this, you'll see a screen of printed messages)
splash: this option is used to start an eye-candy "loading" screen while all the core parts of the system are loaded in the background.
-
run
update-grub2
or update-grub
to reload the config
edit
/etc/default/grub
, change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet"
to GRUB_CMDLINE_LINUX_DEFAULT="splash"
quiet: this option tells the kernel to NOT produce any output. (If you add this, you'll see a screen of printed messages)splash: this option is used to start an eye-candy "loading" screen while all the core parts of the system are loaded in the background.
run
update-grub2
or update-grub
to reload the configCan we just temporarily solve this problem?
- edit
/etc/systemd/system.conf
- change a few lines of old config to:
DefaultTimeoutStartSec=5s DefaultTimeoutStopSec=5s
- run
sudo systemctl daemon-reload
/etc/systemd/system.conf
DefaultTimeoutStartSec=5s DefaultTimeoutStopSec=5s
sudo systemctl daemon-reload