Showing posts with label grub. Show all posts
Showing posts with label grub. Show all posts

Friday, December 11, 2015

Grub: Boot from Previous Selection

If you run a dual or multi-boot setup with grub, setting "remember previous boot" is really easy and (I find) convenient as it tends to fit my usage patterns.

Couple of useful references at askubuntu and the grub manual, but all you need to do is make the following changes to /etc/default/grub:

# GRUB_DEFAULT=0
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

Then run sudo update-grub

Monday, August 18, 2014

Fix Missing TTY Terminal with nVidia GPU

So I had this long-running problem where as soon as I installed the drivers for an nVidia GPU, I'd lose the terminals (normally accessed by Ctrl-Alt-F1, Ctrl-Alt-F2, etc). The processes were still running, but nothing was visible. This was particularly annoying if I did anything to trash the desktop environment --- couldn't get access to a terminal to fix things.

Turns out the solution though is pretty simple: modify the file /etc/default/grub so that instead of saying "quiet splash" it says "nomodeset" (make a copy of your original grub file first to be safe):

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

Then run sudo update-grub. Upon reboot, the TTYs will be visible again. Spews out the entire boot log to the screen as well, but that wasn't really a concern at all for me.