LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub menu not coming; XP & RHEL Dual boot (https://www.linuxquestions.org/questions/linux-newbie-8/grub-menu-not-coming%3B-xp-and-rhel-dual-boot-591823/)

vikas027 10-14-2007 09:47 PM

Grub menu not coming; XP & RHEL Dual boot
 
Hi All,

I have installed XP & RHEL 5. I had absolutely no problems in it, but suddenly my grub menu disappeared and I was not able to boot either of them. I managed to run my XP then by booting it by CD and run FIXMBR.

But now only XP boots directly without the GRUB menu.
I had run Linux Rescue at prompt. Now, my menu.lst is located at /mnt/sysimage/boot/grub/menu.lst

Pls help !!!


Thanks in adv,
Vikas

vikas027 10-14-2007 10:38 PM

Quote:

Originally Posted by vikas027 (Post 2924305)
Hi All,

I have installed XP & RHEL 5. I had absolutely no problems in it, but suddenly my grub menu disappeared and I was not able to boot either of them. I managed to run my XP then by booting it by CD and run FIXMBR.

But now only XP boots directly without the GRUB menu.
I had run Linux Rescue at prompt. Now, my menu.lst is located at /mnt/sysimage/boot/grub/menu.lst

Pls help !!!


Thanks in adv,
Vikas



Now, I have tried running these commands

chroot /mnt/sysimage
grub-install /dev/sda

I am getting GRUB menu now (not colored like before), BUT RHEL still doesnt boots.
I am getting these errors

root (hd0,5)
Filesystem type unknown, partition type 0x82
kernel /boot/vmnlinuz-2.6.18.el5 ro root=LABEL=/ rhgb quiet crashkernel=128@16M

Error 17: Cannot mount selected partition

Press any key to continue



I have tried upgrading my existing installation in Rescue Mode but it doesnt helps. Also, I have tried upgrading or again creating the bootloader, but still all went in vain.


Here is the output of fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 c W95 FAT32 (LBA)
/dev/sda2 2612 17902 f W95 Ext'd (LBA)
/dev/sda3 17903 19457 12 Compaq Diagnostics
/dev/sda5 2612 15291 b W95 FAT32
/dev/sda6 15292 15552 82 Linux Swap / Solaris
/dev/sda7 15593 17902 83 Linux


Hope it Helps

Larry Webb 10-14-2007 11:09 PM

I'm no expert but they will probably want your grub menu list also.

emoore 10-15-2007 07:51 AM

You might try booting the SuperGrub CD and using it to restore Grub/dual booting. Its not RHEL 5 specific like I assume Linux Rescue is, which has both advantages and disadvantages.

http://supergrub.forjamari.linex.org/

selva146 10-15-2007 09:03 AM

Here is the output of fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 c W95 FAT32 (LBA)
/dev/sda2 2612 17902 f W95 Ext'd (LBA)
/dev/sda3 17903 19457 12 Compaq Diagnostics
/dev/sda5 2612 15291 b W95 FAT32
/dev/sda6 15292 15552 82 Linux Swap / Solaris
/dev/sda7 15593 17902 83 Linux


from your output of fdisk -l , it refers that you are having 2 filesystem for linux.

/dev/sda6 --- swap
/dev/sda7 --- root

you do not have seperate filesystem of boot. so boot files are in root file system itself

so you follow the step given below

boot into sytem using cdrom with rescue

boot: linux rescue

after logining in

chroot /mnt/sysimage (hopefully this is right)

then go to the file

/boot/grub/grub.conf

and edit the following enties in that file

title .............
root (hd0,6) // this is one specfying the boot file in MBR
kernel ................. ro root = /dev/sda7
........


selvaraju

http://linuxmonk.blogspot.com

vikas027 10-15-2007 11:12 PM

Quote:

Originally Posted by selva146 (Post 2924776)
Here is the output of fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 c W95 FAT32 (LBA)
/dev/sda2 2612 17902 f W95 Ext'd (LBA)
/dev/sda3 17903 19457 12 Compaq Diagnostics
/dev/sda5 2612 15291 b W95 FAT32
/dev/sda6 15292 15552 82 Linux Swap / Solaris
/dev/sda7 15593 17902 83 Linux


from your output of fdisk -l , it refers that you are having 2 filesystem for linux.

/dev/sda6 --- swap
/dev/sda7 --- root

you do not have seperate filesystem of boot. so boot files are in root file system itself

so you follow the step given below

boot into sytem using cdrom with rescue

boot: linux rescue

after logining in

chroot /mnt/sysimage (hopefully this is right)

then go to the file

/boot/grub/grub.conf

and edit the following enties in that file

title .............
root (hd0,6) // this is one specfying the boot file in MBR
kernel ................. ro root = /dev/sda7
........


selvaraju

http://linuxmonk.blogspot.com


thank you so MUCH... changing root (hd0,6) worked.
THANKS A TON !


All times are GMT -5. The time now is 03:59 PM.