I know that editing the boot options line and adding 'nomodeset' solves the problem of my laptop during LiveCD mode, what I don't know is how to set it at boot up through Grub2 after I've installed Ubuntu.
So, my question is; how do I set nomodeset before I boot into Ubuntu?
You should add this option to
/etc/default/grub
, firstly:and then add
nomodeset
toGRUB_CMDLINE_LINUX_DEFAULT
:And then save by hitting Ctrl+O, then exit nano with Ctrl+X, then simply run:
To edit Grub2 during the boot process try the following:
Immediately after the BIOS splash screen during boot, press and hold the SHIFT button. This will display you grub containing a list of kernels and recovery options
Press e to edit the first kernel displayed
Find the line ending with
quiet splash
. Add your boot option before these key words - i.e. so the line looks like [...]nomodeset quiet splash
Press CTRL + X to boot
Follow the steps in Coldfish's answer on how to fix the nomodeset boot option permanently so that you don't have to go through this manual procedure again.
I had the same problem. The above solutions are all correct, but it's a bit more tricky when you have to fix this when running from a Live CD. I found this blog post very helpful.
The author basically proposes to mount the installed Linux from within the LiveCD. I did that, and it helped me a lot. So here are the steps:
sudo mount /dev/sdXY /mnt
Then mount/bind the directories Grub needs to access:
sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
Then move on to this environment using chroot, which I found a supersmart idea:
sudo chroot /mnt
/etc/default/grub
, as the others pointed out. Like:sudo vi /etc/default/grub
and change the lineGRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
I found it very useful to also remove quiet and splash so I could see something moving on behind the scenes.update-grub
The author unmounted, but I just rebooted and the new settings where in place. With the "nomodeset" option I was able to boot Ubuntu and Lubuntu from a MacBook Pro harddisk.