Need help reconfiguring GRUB
I've been running XP on hda and Mandrake on hdb. I added Fedora1 to hdb on seperate partitions from Mandrake. The Fedora installer overwrote the GRUB for Mandrake in the MBR. I need to add Mandrake back to the GRUB configuration but I'm not sure how to do that.
|
mount the Mandrake partition and see what it says in boot/grub/grub.conf/menu.lst or /etc/lilo.conf if you chose LILO.
|
what is the proper command string to mount the partition?
|
Quote:
|
The command to mount a partition depends on where the partition is and where you want to mount it. If Mandrake is on /dev/hdb1 and you've made an empty /mandrake folder for it in /mnt/mandrake the command would be
mount /dev/hdb1 /mnt/mandrake When you're configuring Grub, Grub counts from zero so all numbers are one less than you'd expect. Also it uses numbers not letters for drives (again, one less than you'd expect) so /dev/hdb1 is (hd1,0) to grub. /dev/hda5 would be (hd0,4) and so on. Grub's dead easy to work with when you get the hang of it as you don't need to run grub after you've edited /boot/grub/menu.lst |
Allrighty then.... thanks for the help on mounting the partition.
Okay here is the Mandrake lilo.config (I thought I had specified grub but there is no grub.conf?) [root@localhost /]# cat /mnt/mandrake/etc/lilo.conf # File generated by DrakX/drakboot # WARNING: do not forget to run lilo after modifying this file boot=/dev/hda map=/boot/map default="linux-enterprise" keytable=/boot/us.klt prompt nowarn timeout=100 message=/boot/message menu-scheme=wb:bw:wb:bw image=/boot/vmlinuz label="linux" root=/dev/hdb2 initrd=/boot/initrd.img append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent" vga=788 read-only image=/boot/vmlinuz label="linux-nonfb" root=/dev/hdb2 initrd=/boot/initrd.img append="devfs=mount acpi=ht resume=/dev/hdb10" read-only image=/boot/vmlinuz-i686-up-4GB label="linux-i686-up-4GB" root=/dev/hdb2 initrd=/boot/initrd-i686-up-4GB.img append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent" read-only image=/boot/vmlinuz-enterprise label="linux-enterprise" root=/dev/hdb2 initrd=/boot/initrd-enterprise.img append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent" read-only image=/boot/vmlinuz-2.6.3-7mdk label="263-7" root=/dev/hdb2 initrd=/boot/initrd-2.6.3-7mdk.img append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent" read-only image=/boot/vmlinuz-2.4.25-2mdk label="2425-2" root=/dev/hdb2 initrd=/boot/initrd-2.4.25-2mdk.img append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent" read-only image=/boot/vmlinuz label="failsafe" root=/dev/hdb2 initrd=/boot/initrd.img append="failsafe acpi=ht resume=/dev/hdb10 devfs=nomount" read-only other=/dev/hda1 label="windows" table=/dev/hda other=/dev/hdb1 label="windows2" table=/dev/hdb map-drive=0x80 to=0x81 map-drive=0x81 to=0x80 other=/dev/fd0 label="floppy" unsafe And now the Fedora1 /boot/grub/grub.conf (this is the one that currently boots) # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,11) # kernel /vmlinuz-version ro root=/dev/hdb11 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=10 splashimage=(hd1,11)/grub/splash.xpm.gz title Fedora Core (2.4.22-1.2115.nptl) root (hd1,11) kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi hdd=ide- scsi rhgb initrd /initrd-2.4.22-1.2115.nptl.img title DOS rootnoverify (hd0,0) chainloader +1 |
I've tried to add what I think is the correct lines in grub.config but I keep getting errors. Based on the above lilo.confg file what should I add to grub.confg to get mandrake to boot?
|
Took me a while but I figured it out.
Thanks |
All times are GMT -5. The time now is 05:11 AM. |