Sometimes we start Ubuntu just for doing some copy & paste things or changing a configuration file, and not need to boot into graphical interface but just a command console. Here’s a simple way to add a entry in Grub2 boot loader for Ubuntu directly booting into command line(text mode).

And you’d better make a backup of “/boot/grub/grub.cfg” before doing following. Actually, Grub2 boot entries revert to original just by “sudo update-grub” command.

This is just a little change on “/boot/grub/grub.cfg” file. So first use this command to make it writable:

sudo chmod +w /boot/grub/grub.cfg

Then, edit this file with your favorite editor and copy the section about the normal Ubuntu entry look like this:

menuentry ‘Ubuntu´╝îLinux 2.6.32-22-generic-pae’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root=’(hd0,7)’
search –no-floppy –fs-uuid –set 7dde7e5c-249c-4128-b148-8ebae100cc7a
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=7dde7e5c-249c-4128-b148-8ebae100cc7a ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic-pae
}

Make a little change and paste it right under previous one:

menuentry ‘Ubuntu´╝îLinux 2.6.32-22-generic-pae(command mode)‘ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root=’(hd0,7)’
search –no-floppy –fs-uuid –set 7dde7e5c-249c-4128-b148-8ebae100cc7a
linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=7dde7e5c-249c-4128-b148-8ebae100cc7a ro text
initrd /boot/initrd.img-2.6.32-22-generic-pae
}

If you want to start GUI in text mode, use:

/etc/init.d/gdm  start