Cousin Stanley wrote:
>
> 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 ....
Yup. Lotta ways to skin a cat.
Me, I just use cut & paste and set up the menu.lst the way I want it to
look -- order-wise -- on the bootup screen, with my default preference
at the top.
Thought it might be good for the OP to have to look through the file and
maybe get a feel for what was in it. That's how I was taught, and in
short order I was a GrUB editing fool.
Which was good, 'cause I kept having to go back and redo it every time I
blew up an install.