Score:0

A question about Ubuntu 21.04 shutdown process

in flag
Ali

I just wanted to ask question about Ubuntu 21.04 which is I'm currently running.

1-2 hours ago I tried to shutdown my laptop using GUI (not from terminal). Everything was good until i accidentally pressed INSERT button (Note on my laptop 0 button of my numpad is also INSERT button) then shutdown logs showed up.

I knew that we can see shutdown logs by pressing ESC key. After that logs disappeared and screen went black.

I even thought that laptop is completely turned off, but then i realized that led of my laptop which indicates that laptop is running is glowing. There is another led which was turned off and it usually blips when laptop's hard drive is in use. I waited a bit then i shutdown laptop by pressing and holding power button.

I know that shutdown laptop by pressing and holding power button is dangerous.

My question is that as hard drive of the laptop (SSD actually) is not in use and logs are disappeared is it correct to shutdown laptop by pressing and holding power button.

fr flag
I wouldn't say it's correct, but the system is quite good at repairing any errors you might have introduced, so as a last resort it shouldn't give you any problems.
waltinator avatar
it flag
After you reboot, `sudo journalctl -b -1 -e` will show you the last lines of logs from the previous boot. Also, just wait, and wait, ... There are some shutdown tasks that hang, and timeout after 30 minutes. When they timeout, information is logged.
PonJar avatar
in flag
You might want to try the REISUB key sequence. Read these links https://askubuntu.com/questions/926461/whats-the-difference-between-the-magic-reisub-reset-and-holding-down-the-power and https://en.wikipedia.org/wiki/Magic_SysRq_key
in flag
Ali
Thank you all very much! Yes i tried REISUB and pc didn't respond at all, but didn't tried journalctl command. Also it's goid to know that system is quite good at repairing possible errors but wanted to know how. (Any links would be appreciated)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.