Quote:
Originally Posted by betula
What do the block of grub commands look like?
|
A while back, I installed Mepis 8.0 into sda3 of a system that already had Mepis 7 in sda2.
In the Mepis 8.0 installer I chose to install the MBR, which overwrote the MBR I had installed with Mepis 7, so the copy of grub in sda2/boot/grub still existed but it was no longer in use during boot.
In Mepis 8.0 I opened up /boot/grub/menu.lst in a text editor and saw three choices (two of which were really the same new install of Mepis 8.0 and the other isn't valid, but could be after a kernel update)
Code:
title MEPIS at sda3, newest kernel
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 nomce nosplash vga=788
initrd /boot/initrd.img
boot
title MEPIS at sda3, previous kernel (if any)
root (hd0,2)
kernel /boot/vmlinuz.old root=/dev/sda3 nomce quiet splash vga=788
boot
title MEPIS at sda3, kernel 2.6.27-1-mepis64-smp
root (hd0,2)
kernel /boot/vmlinuz-2.6.27-1-mepis64-smp root=/dev/sda3 nomce quiet splash vga=788
initrd /boot/initrd.img-2.6.27-1-mepis64-smp
boot
Each of those blocks from title to boot describes one boot choice.
I mounted sda2 and then opened /mnt/sda2/boot/grub/menu.lst in another text editor window. It included a similar three choices
Code:
title MEPIS at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet nosplash
boot
title MEPIS at sda2, previous kernel (if any)
root (hd0,1)
kernel /boot/vmlinuz.old root=/dev/sda2 nomce quiet nosplash
boot
title MEPIS at sda2, kernel 2.6.22-1-mepis64-smp
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-1-mepis64-smp root=/dev/sda2 nomce quiet nosplash vga=791
boot
I knew I had been using only the first of those three choices, so I copied it (with a slight change of title) into the second choice position in /boot/grub/menu.lst
Now my complete /boot/grub/menu.lst file (which is on sda3 with Mepis 8.0) including that edit and including the beginning and end parts that I didn't change when editing:
Code:
timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message
title MEPIS at sda3, newest kernel
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 nomce nosplash vga=788
initrd /boot/initrd.img
boot
title MEPIS 7 at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet nosplash
boot
title MEPIS at sda3, previous kernel (if any)
root (hd0,2)
kernel /boot/vmlinuz.old root=/dev/sda3 nomce quiet splash vga=788
boot
title MEPIS at sda3, kernel 2.6.27-1-mepis64-smp
root (hd0,2)
kernel /boot/vmlinuz-2.6.27-1-mepis64-smp root=/dev/sda3 nomce quiet splash vga=788
initrd /boot/initrd.img-2.6.27-1-mepis64-smp
boot
title MEPIS at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet nosplash
title MEMTEST
kernel /boot/memtest86+.bin
If you look at your own /boot/grub/menu.lst file right after it is created by some Linux installer, I think it will be obvious how to adjust all that to your own situation.
I have only a vague idea what the initrd lines mean or what the nomce option on the kernel lines means. The Mepis installer put those things there and I didn't need to understand them at that point. When I copied the one block I needed from the Mepis 7 menu.lst to the new menu.lst, I still didn't need to know what any of that meant. I just needed to know those blocks each started with title and in this limited case each ended with boot.