Ubuntu freeze at swap

New Ubunt 14.04 Freeze at Swap.


It is doing this because Ubuntu is trying to switch to a high resolution video mode for the console and your hardware isn’t cooperating.

Fixing this while at the machine
When Grub2 shows up:
  • Highlight the menu item for Ubuntu and press ‘e’
  • Go to the line where it loads the kernel and press ‘End’ to go to the end of the line
  • Add ‘nomodeset’
  • Press F10 or Ctrl-X to boot it
With any luck it will boot into the login screen. This won’t save that option but at least now you can edit the file for Grub2 and update it to save that option if it works.
Permernently fixed this issue
  • Log in (ssh will probably do, if you know the machine’s IP)
  • Update the grub config file nano /etc/init/grub
  • Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT
  • Edit the line to include nomodeset, in my case, the line looked like this afterwards: GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
  • Save/exit nano
  • Run update-grub
  • Reboot

Note: The easy way of doing this with modern versions of GRUB is by editing /etc/default/grub and add “nomodeset” (separated by a space) to the end of the GRUB_CMDLINE_LINUX_DEFAULT variable


Ubuntu Recovery Mode – Readonly File System

In Order to emergency, change configuration or reset root password. Follow following steps

1. Shutdown the computer
 2. Boot into Recovery Mode --After BIOS load, hold down Shift key to access the grub menu --Once in grub menu, select the entry ending in "(recovery mode)"
 3. From the next menu selected option to enter Root Session
 4. At the root session, execute command mount -o remount,rw / to remount the filesystem as read-write

Then after you can reset the Root password to change the configuration.