Help with grub problem...

Bob Nielsen nielsen at oz.net
Tue Nov 9 04:34:41 UTC 2004


On Mon, Nov 08, 2004 at 01:16:16PM -0600, Vlammend wrote:
> 
> > > Open the grub menu.lst config file via a terminal by typing:
> > >
> > > sudo gedit /boot/grub/menu.lst
> > > 
> > > Look for the line below in the menu.lst config. It will be the first
> > > entry for the various Linux kernals you can choose to boot into:
> > >
> > > Code:
> > >
> > > Title Ubuntu
> > >
> > > Then either type or paste the code below right before the line
> > above:
> > >
> > > Code:
> > >
> > > Title Windows
> > > root (hd0,0)
> > > makeactive
> > > chainloader +1
> > >
> > > Change the hd0,0 to the partition or hard drive where Winblows is
> > > installed if necessary. Save the file, reboot and the computer will
> > > now boot into Winblows by default.
> 
> This worked for me to boot into WindowsXP again after the Ubuntu
> Install, but now it defaults into Winblows, as the article says off
> course.
> 
> My question is now, how to make Ubuntu to startup as default??
> 
> My menu.lst (I deleted al lines which where uncommented)
> 
> Code:
> --------------------
>     default		0
>   timeout		3
>   hiddenmenu
>   
>   title		Windows XP Home
>   root		(hd0,0)
>   makeactive
>   chainloader	+1
>   
>   title		Ubuntu, kernel  
>   root		(hd0,4)
>   kernel		/vmlinuz root=/dev/hda6 ro console=tty0 quiet splash
>   initrd		/initrd.img
>   savedefault
>   boot
>   
>   title		Ubuntu, kernel  (recovery mode)
>   root		(hd0,4)
>   kernel		/vmlinuz root=/dev/hda6 ro console=tty0 single
>   initrd		/initrd.img
>   savedefault
>   boot
>   
>   title		Ubuntu, kernel 2.6.8.1-3-amd64-generic 
>   root		(hd0,4)
>   kernel		/vmlinuz-2.6.8.1-3-amd64-generic root=/dev/hda6 ro console=tty0 quiet splash
>   initrd		/initrd.img-2.6.8.1-3-amd64-generic
>   savedefault
>   boot
>   
>   title		Ubuntu, kernel 2.6.8.1-3-amd64-generic (recovery mode)
>   root		(hd0,4)
>   kernel		/vmlinuz-2.6.8.1-3-amd64-generic root=/dev/hda6 ro console=tty0 single
>   initrd		/initrd.img-2.6.8.1-3-amd64-generic
>   savedefault
>   boot
> --------------------
> 
> 
> I want to default to 
> title		Ubuntu, kernel 2.6.8.1-3-amd64-generic
> 
> Can I just say default 4?? Or is it not that simple.


default 3 (grub starts counting from 0).





More information about the ubuntu-users mailing list