If Linux is freezing, the obvious way to fix this is to restart the Linux Operating System. However, this does not identify what is causing Linux to freeze. Furthermore, if you are in the middle of something, you will likely lose what you are in the midst of doing, which is a major annoyance.
To attempt to un-freeze Linux, remember "Raising Elepants Is So Utterly Boring." This is the syntax used to remember the six key combination that might be able to un-freeze Linux. First, try pressing Alt + SysRq + R. If your keyboard does not have a SysRq key, use the Print Scrn button instead, so your key combination becomes Alt + Print Scrn + R. Try all six of these key combinations to try to un-freeze Linux.
- Alt+SysRq+R or Alt+PrintScrn+R
- Alt+SysRq+E or Alt+PrintScrn+E
- Alt+SysRq+I or Alt+PrintScrn+I
- Alt+SysRq+S or Alt+PrintScrn+S
- Alt+SysRq+U or Alt+PrintScrn+U
- Alt+SysRq+B or Alt+PrintScrn+B
The xsession logs may help to identify what is causing Linux Mint to freeze. Enter the following command to view the xsession logs.
egrep -i 'error|fail' ~/.xsession-errors
Following is output showing in our xsession log.
Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service Failed to connect to the VirtualBox kernel service (cinnamon-settings-daemon:2188): media-keys-plugin-WARNING **: Grab failed for some keys, another application may already have access the them. JS ERROR: !!! Exception was: Error: Expected type utf8 for Argument 'format' but got type 'undefined' (nil) JS ERROR: !!! message = '"Expected type utf8 for Argument 'format' but got type 'undefined' (nil)"' JS ERROR: !!! fileName = '"/usr/share/cinnamon/js/ui/environment.js"' JS ERROR: !!! lineNumer = '75' JS ERROR: !!! stack = '"((void 0))@/usr/share/cinnamon/js/ui/environment.js:75
Notice the output starts with a few events stating Failed to connect to the VirtualBox kernel service. This is likely appearing because I have both Samba and NFS configured as shares on the Linux Server, which is a VM running on VirtualBox. The Linix client has entries in the /etc/fstab file to automatically mount the Samba and NFS shares at boot. To remedy this issue, install DKMS (Dynamic Kernel Module Support).
apt-get install dkms
The main system log for Linux Mint is located at /var/log/syslog. When Linux Mint freezes, we will need to restart Linux Mint. After the restart, we can review the syslog to look for issues.
tail -20 /var/log/syslog