> mike wrote:
> ....
>
> sudo gedit /etc/boot/menu.lst
> <enter your password>
>
> You will then be looking at the GrUB menu.lst file
> in the Gedit text editor.
>
> About fouteen or so lines down you should see a line that reads
>
> default 0
>
> For now, just make note of that.
>
> Next, start scrolling down, and count all the lines
> that do NOT begin with a #, but DO begin with:
>
> title <some reference to Ubuntu or Windows>
>
> until you get to one that says:
>
> title Microsoft Windows
>
> ***********
> Note -- do NOT count this one:
> # This is a divider, added to separate the menu items below from the
> Debian
>
> # ones.
>
> title Other operating systems:
>
> root
>
> ************
>
> Now, take the number of the line that referred to Windows, and SUBTRACT
> ONE. (GrUB starts counting at 0, not one. Therefore, GrUB calls the
> fifth entry #4, and so on.)
>
> Whatever number you've come up with, scroll back up and find
>
> default 0
>
> and plug in your number in place of the zero. For example, if Windows
> was the fifth listing, plug in 4.
>
> Save the file, close Gedit, and reboot. If all went according to plan,
> your Windows entry should be highlited in the GrUB boot list, and should
> boot to Windows automatically.
>
> Good luck, and welcome to Linux.
Another way to make a similar count without scrolling
*before* opening the file in the editor ....
$ grep ^title /boot/grub/menu.lst
title Debian GNU/Linux, kernel 2.4.27-3-686
title Debian GNU/Linux, kernel 2.4.27-3-686 (recovery mode)
title Debian GNU/Linux, kernel 2.4.27-3-386
title Debian GNU/Linux, kernel 2.4.27-3-386 (recovery mode)
title Debian GNU/Linux, kernel memtest86
title Debian GNU/Linux, kernel memtest86+
title Other operating systems:
title Windows 95/98/Me
Counting from 0 at the first title line
and excluding the Other operating systems: divider,
if I wanted to set Windows as the default OS to be booted,
I would set ....
default 6
when editing /boot/grub/menu.lst ....
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----