LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 02-06-2008, 11:17 PM   #1
navin_karnam
Member
 
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
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
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-07-2008, 12:00 AM   #2
Minozake
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):

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

Code:
# Windows Alternate
title Windows2
rootnoverify (hd0,0)
savedefault
makeactive
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-07-2008 at 12:12 AM.
 
Old 02-07-2008, 01:59 AM   #3
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks

title Windows
root (hd0,0)
savedefault
makeactive
chainloader +1

I added this to /etc/grub.conf

Its working now !!!
 
  


Reply


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 12:17 PM
FC5 upgrade, grub dual boot nightmare... agerkis Linux - Newbie 21 10-02-2006 06:08 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 11:56 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 04:38 PM


All times are GMT -5. The time now is 04:07 PM.

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