View Single Post
Old 03-03-2007, 10:40 PM   #2 (permalink)
unni
In The Zone
 
unni's Avatar
 
Join Date: Mar 2006
Location: Thiruvananthapuram (Now in Bengaluru)
Posts: 386
Default Re: Boot Ubuntu INto command line

EDIT: I tried this in Ubuntu and found that it won't work. So, please ignore my post.:roll:

This is a temporary method for testing:
When in grub OS selection menu, select the Ubuntu grub entry and press 'e'. Now, select the line which looks like
kernel (hd0,6)/vmlinuz-2.6.17-10-generic root=/dev/hdb9 ro quiet splash splash=verbose
. Again, press 'e'. Now you can edit this line. Add '2' or '3' at the end of the line so that it looks like
kernel (hd0,6)/vmlinuz-2.6.17-10-generic root=/dev/hdb9 ro quiet splash splash=verbose 2
. Now press enter. Then press 'b' to start booting. If you boot into the command line mode as expected, you can make this permanent by editing the /boot/grub/menu.lst file.

To edit the file,

1. Launch terminal. Type su and enter.
2. Now type gedit /boot/grub/menu.lst
3. Copy the Ubuntu entries in the file. There may be 3 to 6 lines for each OS. It begins with "title Ubuntu " and may end with either "initrd ...." or "boot" (I don't remmeber clearly.
4. Paste them after the last line in the file. Now add 2 or 3 as in the above method. Finally, it will look something like this (only the necessary portion of the file is shown here):
Quote:
title Ubuntu, kernel 2.6.17-11-generic
root (hd1,0)
kernel /vmlinuz-2.6.17-11-generic root=/dev/hdb9 ro quiet splash
initrd /initrd.img-2.6.17-11-generic
quiet
savedefault
boot

title Microsoft Windows
root (hd0,0)
makeactive
chainloader +1

title Ubuntu, kernel 2.6.17-11-generic
root (hd1,0)
kernel /vmlinuz-2.6.17-11-generic root=/dev/hdb9 ro quiet splash 2
initrd /initrd.img-2.6.17-11-generic
quiet
savedefault
boot
Here, the values 2 and 3 indicates the runlevel. 3 means you will have netwroking support + everything available in 2.

I have tried this only on Mandriva. That's why I mentioned the temporary method first. If this didn't work for you, post back and wait for the experts. Sorry if I oversimplified this.

Last edited by unni; 04-03-2007 at 08:36 PM.
unni is offline