LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Grub Editing (https://www.linuxquestions.org/questions/linux-general-1/grub-editing-252166/)

hoe 11-07-2004 04:15 PM

Grub Editing
 
Hi: I have two hard disks with three operating systems and using GRUB. I am booting Windows and Mepis okay but haven't yet figured out what to put in the Menu.list for FedoraCore3. Fedora is on hdb3. Here is what l have so far in my menu:

default saved
timeout 15
color cyan/blue white/blue
foreground ffffff
background 2f5178
splashimage /boot/grub/mepis.xpm.gz

title MEPIS at hdb4, kernel 2.6.7
kernel (hd1,3)/boot/vmlinuz-2.6.7 root=/dev/hdb4 nomce psmouse.proto=imps quiet splash=verbose vga=791
initrd (hd1,3)/boot/initrd.mepis
savedefault

title MEPIS at hdb4, kernel 2.4.26
kernel (hd1,3)/boot/vmlinuz-2.4.26 root=/dev/hdb4 nomce quiet splash=verbose vga=791 hdc=ide-scsi hdd=ide-scsi
initrd (hd1,3)/boot/initrd.mepis
savedefault

title Windows XP at hda1
root (hd0,0)
rootnoverify
makeactive
chainloader +1

title MEMTEST
kernel /boot/memtest86.bin

title Use a qwerty keyboard with GRUB
setkey y y
setkey Y Y
setkey q q
setkey Q Q
setkey w w
setkey W W
setkey a a
setkey A A
setkey semicolon semicolon
setkey colon colon
setkey z z
setkey Z Z
setkey m m
setkey M M
setkey comma comma
setkey less less
setkey period period
setkey greater greater
setkey slash slash
setkey bracketright bracketright
setkey backslash backslash
setkey doublequote doublequote
setkey 1 1
setkey exclam exclam
setkey 2 2
setkey at at
setkey 3 3
setkey numbersign numbersign
setkey 4 4
setkey dollar dollar
setkey 5 5
setkey percent percent
setkey 6 6
setkey caret caret
setkey 7 7
setkey ampersand ampersand
setkey 8 8
setkey asterisk asterisk
setkey 9 9
setkey parenleft parenleft
setkey 0 0
setkey parenright parenright
setkey minus minus
setkey backquote backquote
setkey tilde tilde
setkey braceright braceright
setkey question question
setkey braceleft braceleft
setkey quote quote
setkey underscore underscore

title Utiliser un clavier azerty avec GRUB
setkey y y
setkey Y Y
setkey a q
setkey A Q
setkey z w
setkey Z W
setkey q a
setkey Q A
setkey m semicolon
setkey M colon
setkey w z
setkey W Z
setkey comma m
setkey question M
setkey semicolon comma
setkey period less
setkey colon period
setkey slash greater
setkey exclam slash
setkey dollar bracketright
setkey asterisk backslash
setkey percent doublequote
setkey ampersand 1
setkey 1 exclam
setkey tilde 2
setkey 2 at
setkey doublequote 3
setkey 3 numbersign
setkey quote 4
setkey 4 dollar
setkey parenleft 5
setkey 5 percent
setkey minus 6
setkey 6 caret
setkey backquote 7
setkey 7 ampersand
setkey underscore 8
setkey 8 asterisk
setkey caret 9
setkey 9 parenleft
setkey at 0
setkey 0 parenright
setkey parenright minus
setkey less backquote
setkey greater tilde
setkey numbersign braceright
setkey backslash question
setkey bracketright braceleft
setkey braceleft quote
setkey braceright underscore

title Benutze qwertz Tastatur mit GRUB
setkey y z
setkey z y
setkey Y Z
setkey Z Y
setkey equal parenright
setkey parenright parenleft
setkey parenleft asterisk
setkey doublequote at
setkey backquote equal
setkey plus bracketright
setkey minus slash
setkey slash ampersand
setkey ampersand percent
setkey percent caret
setkey underscore question
setkey question underscore
setkey semicolon less
setkey less numbersign
setkey numbersign backslash
setkey colon greater
setkey greater bar
setkey asterisk braceright
setkey caret backquote
setkey backslash minus

homey 11-07-2004 06:05 PM

I don't think I've ever seen anythin quite like this ... :)
title Use a qwerty keyboard with GRUB

But anyway, if you are booted up into MEPIS, you can mount the FC3 system so you can have a look in it's /boot directory to see what it has for a kernel and initrd. Also, if your lucky there may be a menu.lst to look at. Then you can put that info into your MEPIS grub.

mkdir /mnt/test
mount /dev/hdb3 /mnt/test

hoe 11-07-2004 06:45 PM

Hi Homey: Thanks for the quick reply but l finally through trial, error and persistance got it figured out. Fedora boots up for me now. Mepis installed GRUB so this file is in MEPIS boot/grub/menu.lst of course. It now lets me boot up 2 Mepis kernels,XP or Fedora Core 3. Here it is:

default saved
timeout 15
color cyan/blue white/blue
foreground ffffff
background 2f5178
splashimage /boot/grub/mepis.xpm.gz

title Windows XP at hda1
root (hd0,0)
rootnoverify
makeactive
chainloader +1

title MEPIS at hdb4, kernel 2.6.7
kernel (hd1,3)/boot/vmlinuz-2.6.7 root=/dev/hdb4 nomce psmouse.proto=imps quiet splash=verbose vga=791
initrd (hd1,3)/boot/initrd.mepis
savedefault

title MEPIS at hdb4, kernel 2.4.26
kernel (hd1,3)/boot/vmlinuz-2.4.26 root=/dev/hdb4 nomce quiet splash=verbose vga=791 hdc=ide-scsi hdd=ide-scsi
initrd (hd1,3)/boot/initrd.mepis
savedefault

title Fedora Core 3 at hdb3
root (hd1,2)
kernel /boot/vmlinuz-2.6.8-1.541 root=/dev/hdb3
initrd /boot/initrd-2.6.8-1.541.img

title MEMTEST
kernel /boot/memtest86.bin

title Use a qwerty keyboard with GRUB
setkey y y
setkey Y Y
setkey q q
setkey Q Q
setkey w w
setkey W W
setkey a a
setkey A A
setkey semicolon semicolon
setkey colon colon
setkey z z
setkey Z Z
setkey m m
setkey M M
setkey comma comma
setkey less less
setkey period period
setkey greater greater
setkey slash slash
setkey bracketright bracketright
setkey backslash backslash
setkey doublequote doublequote
setkey 1 1
setkey exclam exclam
setkey 2 2
setkey at at
setkey 3 3
setkey numbersign numbersign
setkey 4 4
setkey dollar dollar
setkey 5 5
setkey percent percent
setkey 6 6
setkey caret caret
setkey 7 7
setkey ampersand ampersand
setkey 8 8
setkey asterisk asterisk
setkey 9 9
setkey parenleft parenleft
setkey 0 0
setkey parenright parenright
setkey minus minus
setkey backquote backquote
setkey tilde tilde
setkey braceright braceright
setkey question question
setkey braceleft braceleft
setkey quote quote
setkey underscore underscore

title Utiliser un clavier azerty avec GRUB
setkey y y
setkey Y Y
setkey a q
setkey A Q
setkey z w
setkey Z W
setkey q a
setkey Q A
setkey m semicolon
setkey M colon
setkey w z
setkey W Z
setkey comma m
setkey question M
setkey semicolon comma
setkey period less
setkey colon period
setkey slash greater
setkey exclam slash
setkey dollar bracketright
setkey asterisk backslash
setkey percent doublequote
setkey ampersand 1
setkey 1 exclam
setkey tilde 2
setkey 2 at
setkey doublequote 3
setkey 3 numbersign
setkey quote 4
setkey 4 dollar
setkey parenleft 5
setkey 5 percent
setkey minus 6
setkey 6 caret
setkey backquote 7
setkey 7 ampersand
setkey underscore 8
setkey 8 asterisk
setkey caret 9
setkey 9 parenleft
setkey at 0
setkey 0 parenright
setkey parenright minus
setkey less backquote
setkey greater tilde
setkey numbersign braceright
setkey backslash question
setkey bracketright braceleft
setkey braceleft quote
setkey braceright underscore

title Benutze qwertz Tastatur mit GRUB
setkey y z
setkey z y
setkey Y Z
setkey Z Y
setkey equal parenright
setkey parenright parenleft
setkey parenleft asterisk
setkey doublequote at
setkey backquote equal
setkey plus bracketright
setkey minus slash
setkey slash ampersand
setkey ampersand percent
setkey percent caret
setkey underscore question
setkey question underscore
setkey semicolon less
setkey less numbersign
setkey numbersign backslash
setkey colon greater
setkey greater bar
setkey asterisk braceright
setkey caret backquote
setkey backslash minus


All times are GMT -5. The time now is 01:20 AM.