Skip to main content

Ubuntu 11.10 alternate install blank screen

With Ubuntu 11.10 Unity requiring lots of resources both in CPU and memory, I embarked on installing a trimmed down version of it using alternate install. This used to be straight forward, follow the text based wizard and you are ready to go.

The problem is that after installation, on reboot it shows a blank screen. Just nothing... (except for the blinking cursor). This might be specific to VirtualBox guest machines but I can't verify this.

Anyway, it took me a while to figure this one out (of course with the help of Google). The following, from  Ubuntu's bug repository Launchpad, shows the problem:


Ubuntu 11.10 Command line only installation fails over and over again
http://ubuntuforums.org/showthread.php?t=1873069

grub2 configuration has vt.handoff=7 even when X11 is not installed
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/695658

Command-line Install on Minimal CD tries to boot graphically
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/831752

The problem
Ubuntu minimal/alternate failed to cover the use case that user might not need GUI in Ubuntu. This is a big oversight as a big chunk of Linux users (servers) don't need GUI. What happens is that it boots up and creates virtual terminal session 7 so that it can transition to GUI login seamlessly. 

The work around
In Ubuntu 11.10, /etc/grub.d/10_linux line 70, it checks if the word "splash" is present in GRUB_CMDLINE_LINUX_DEFAULT.  This GRUB_CMDLINE_LINUX_DEFAULT can be modified in /etc/default/grub. So changing this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT=""

I should have removed "splash" only but I also would like to see all the message while the machine is booting up.

Next up, is add the following towards the end of /etc/default/grub:
GRUB_GFXPAYLOAD_LINUX=text

Ok I am not so familiar with this one. But I believe what it does is to force it to run in text mode instead of doing KMS functionality built-in the kernel.

Now, to update grub.cfg run:

sudo update-grub
Then reboot the machine, like:
sudo reboot

Comments

Nauglin said…
Great, works like a magic spell, thanks a lot. I was very confused about this Ubuntu CLI boot hanging "feature", wandering what the hell were I doing so wrong O_o Un millón de gracias.
Glad to be of help. Thanks for the comment.
Unknown said…
ditto to Nauglin. You just saved my day man! I made 4 different Virtual Machines, trying some luck. Thanks a lot!
Anonymous said…
Thanks for compiling this worked well. Took a moment to figure out how to get to the command line (using the install cd in rescue mode), but I'm pretty noob on this.
@Unknown/Anonymous, I am glad that the post helped. Thanks for the comment.
Deepak @ BITS said…
Didnt work for me
took me to tty
logged in
startx came with errors: Fatal server error: no screens found.
ny idea???

deepak
Deepak @ BITS said…
Didnt work for me
took me to tty
logged in
startx came with errors: Fatal server error: no screens found.
ny idea???

deepak
Senryo said…
Many thanks. Helped me a lot.
Todd T said…
Thank you very much for sharing, this helped me out.
Todd T said…
Thank you very much for sharing, your instructions worked for me (using Ubuntu 11.04 minimal install on vmware player).
Todd T said…
Thank you very much for sharing, this helped me out.
Anonymous said…
thanks brother its good more tech tips visit www.anbuthil.con

Popular posts from this blog

The following add-ins could not be started MonoDevelop.GnomePlatform

Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: The following add-ins could not be started: The root of the trace shows MonoDevelop.GnomePlatform,2.8 A quick search shows that MonoDevelop depends on libgnomeui . This should have been part of dependencies when installing the application but well.... Below is the screen shot of the error message. References: http://software.1713.n2.nabble.com/MonoDevelop-and-openSUSE-12-1-td7462957.html [2013/04/09] - Same issue observed in OpenSUSE 12.3 and also the same fix. [2014/11/02] - Same issue observed in OpenSUSE 13.3, mondevelop 3.0.6 and the same fix.

Error! Could not locate dkms.conf file install VirtualBox 4.1.8 on Ubuntu 11.10

Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed properly except that VirtualBox installation was complaining about missing dkms.conf file, see error message below. $: sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! Could not locate dkms.conf file. File: does not exist. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] Though it looks like installation was fine but I am concerned about its effects to VirtualBox functionality. To fix this, do: $: cd /var/lib/dkms/vboxhost $: sudo rm -r 4.1.4 $: sudo /etc/init.d/vboxdrv setup Of course you have to re