I am using ubuntu 14.04 64 bit. The problem I am facing is, I can not shutdown my machine. Every time I shutdown or reboot the computer (both from terminal and GUI) it get stuck at boot splash screen and stays there forever until I shut it down by pressing the power button..
I have gone through the question- How to troubleshoot slow shutdown and it's answer but could not diagnosis the problem. There are some log in /var/crash/
but could not find any string Title: MISBEHAVING_PROGRAMNAME
in them. My kernel version: 3.16.0-50-generic
I have booted with previous kernels form grub menu but the problem persists. How do I solve the issue or at least find out the reason behind it?
Best Answer
Try pressing escape when it is frozen to see the shutdown commands behind the splash screen. Or remove
"quiet splash"
from this line in etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
you can do this by editing the etc/default/grub file
sudo gedit etc/default/grub
- make the edit so it looks like thisGRUB_CMDLINE_LINUX_DEFAULT=""
If you had other parameters between the "" you can leave them in the line then update grub with
sudo update-grub
On start up and shut down you should see the boot sequences commands now. If you see
Reached target shutdown
and that is where it hangs forever this may be related to bug #1464917:If you feel this is related to this bug please go to the link above and add your name to the "This affects me " link at the top of the bug description
Update:
There has been a development as a work around to this bug. It seems to be related to the swap file usage/management. Adam (from the bug link above) points out that if you turn your swap off, wait for it to process, before you shutdown the hang never happens. When you are ready to shutdown your machine, open a terminal window and type;
sudo swapoff -a
Wait for the command to process and give your prompt back then you should be able to perform normal shutdown. This is working for many including me.
end update
After the shutdown or reboot has hanged with this message
Reached target Shutdown
Try Sysrq
You can also try the following after it hangs.
see if you can login tty1 and reboot
Ctrl+Alt+F1
orCtrl+Alt+F2
orCtrl+Alt+F3
...If your password and username are correct, you are now logged in.
If that fails try
Ctrl+Alt+Del
a couple times at that point in the tty1 screenYou might see a message that states the machine is going to reboot and then it should do just that after a minute or so.
Its better than a hard boot - until its fixed
In the bug notes it is reported that you can upgrade to Vivid-Proposed and it fixes the issue but some still see this after that upgrade. It might be worth a shot.
Btw the same bug affects me.