Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 02-06-2008, 10:17 PM   #1
Registered: May 2007
Posts: 52

Rep: Reputation: 15
how to upgrade the grub for dual boot

Hi all,

I have RHEL-4(sda3) installed on machine, then i installed windows on it(sda1).So i was unable to boot linux, then i booted with boot disk(linux) in rescue mode and executed the commands

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

Then rebooted hoping that grub will be able to show the boot menu with both windows and linux, but it is showing only linux.

Please guide me how do i upgrade the grub to show the option to boot both.

[naveen@LocalHost ~]$ /sbin/fdisk -l

Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1306 10490413+ 7 HPFS/NTFS
/dev/sda2 1307 1319 104422+ 83 Linux
/dev/sda3 1320 3231 15358140 83 Linux
/dev/sda4 3232 3362 1052257+ f W95 Ext'd (LBA)
/dev/sda5 3232 3362 1052226 82 Linux swap

[naveen@LocalHost ~]$ sudo cat /etc/grub.conf
# 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 (hd0,1)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
title Red Hat Enterprise Linux WS (2.6.9-11.EL)
root (hd0,1)
kernel /vmlinuz-2.6.9-11.EL ro root=LABEL=/ hdc=scsi-ide
initrd /initrd-2.6.9-11.EL.img
title Driver Dump
rootnoverify (hd0,0)
chainloader +1
Old 02-06-2008, 11:00 PM   #2
LQ Newbie
Registered: Jan 2008
Location: Frozen Hell, MN, USA
Distribution: Source Mage GNU/Linux
Posts: 18

Rep: Reputation: 0
Try adding this to the configuration (/boot/grub/grub.conf if I am right):

# Windows
title Windows
root (hd0,0)
chainloader +1
If that doesn't work:

# Windows Alternate
title Windows2
rootnoverify (hd0,0)
chainloader +1
Change the '(hd0,0)' as needed. Right now, it is set to the first partition of the hard drive, usually hda0.

Last edited by Minozake; 02-06-2008 at 11:12 PM.
Old 02-07-2008, 12:59 AM   #3
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15

title Windows
root (hd0,0)
chainloader +1

I added this to /etc/grub.conf

Its working now !!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub stopping with dual HD dual boot arrangement CraigM Linux - Newbie 6 12-12-2007 11:17 AM
FC5 upgrade, grub dual boot nightmare... agerkis Linux - Newbie 21 10-02-2006 05:08 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 10:56 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration