PDA

View Full Version : Grub Issue



UCSDrake
11th June 2007, 08:52 PM
Hey, I'm brand new at Fedora Core and I've been using PCLinuxOS for several weeks now (very new to linux overall so please bare with me if im a bit slow) I've got 4 partitions on my HDD and are as follows

hda1 - windows NTFS
hda2 - Linux Swap
hda3 - PCLinuxOS
hda4 - Fedora Core 6

heres what happened, I had PCLinuxOS installed on my machine with the forth partition blank waiting for another distro to take its space so I was convinced to try out FC by a friend (I used 6 because it was the only one available to me at the time) so I installed Fedora Core 6 and to my dismay the GRUB didn't include PCLinuxOS as a boot option, so I reinstalled PCLinuxOS over that and tried to add Fedora Core to the menu.lst of my PCLinuxOS. Now Fedora Core just hangs on the startup. Here's my menu.lst, what am I doing wrong?


timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,2)/usr/share/gfxboot/themes/pclinuxos/boot/message
default 0

title PCLinuxOS 2007
kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=PCLinuxOS_2007 root=/dev/hda3 acpi=on resume=/dev/hda2 splash=silent vga=788
initrd (hd0,2)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

title Fedora Core 6
kernel (hd0,2)/boot/vmlinuz-2.6.18.8.tex5 BOOT_IMAGE=Fedora_Core_6 root=/dev/hda4 acpi=on resume=/dev/hda2 splash=silent
initrd (hd0,2)/boot/initrd-2.6.18


Thanks for any help in advance, when I searched around the forums I couldn't find anything

hal8000b
11th June 2007, 09:31 PM
I'm pretty sure that your entry in menu.lst is wrong for Fedora Core 6, because the kernel you are trying to boot is the Texstar kernel for PClinuxOS.

Boot into Fedora then type uname -a. Kernel images usually append the distribution, e.g. in Fedora 7 there is a .fc7 appended to the kernel image name

[root@zen anc]# uname -a
Linux zen.tuxnet 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:35:01 EDT 2007 i686 i686 i386 GNU/Linux

If you can mount partition 4 (Fedora) from PCLinux then post the output of
ls /boot

this will provide the correct names for the FC6 kernel and initial ramdisk

UCSDrake
11th June 2007, 09:39 PM
I mounted the FC partition and went into the boot section and found this

initrd-2.6.18-1.2798.fc6.img
vmlinuz-2.6.18-1.2798.fc6

should i put those values into their respective spots on the menu.lst?

Edit: I subbed in those values and the system booted!! thanks for the help!

heres the final menu.lst that I have for future reference



timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,2)/usr/share/gfxboot/themes/pclinuxos/boot/message
default 0

title PCLinuxOS 2007
kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=PCLinuxOS_2007 root=/dev/hda3 acpi=on resume=/dev/hda2 splash=silent vga=788
initrd (hd0,2)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

title Fedora Core 6
kernel (hd0,3)/boot/vmlinuz-2.6.18-1.2798.fc6 root=/dev/hda4 acpi=on resume=/dev/hda2 splash=silent
initrd (hd0,3)/boot/initrd-2.6.18-1.2798.fc6.img

sailor
11th June 2007, 09:53 PM
That looks like the right kernel image...but
you nee to point it to the right partition as well...(hd0,3)

edit: oops I see you did put the right partition...:)
Looks like you figured it out fine :)