problem with grub in redhat 9 (dual boot win98)

From: Alex Hunsley (alex.hunsley_at_blueyonder.munge.co.uk)
Date: 09/24/03


Date: Wed, 24 Sep 2003 12:58:45 +0100

I've just installed redhat9 to make a dual booting system (with win98)
and am having problems with grub.
(Note: my friend is sick of windows 98 virus++ and I am weaning her onto
linux so I really want to get this working for her!)

The setup: I had an existing windows 98 system, that had one hard disk
(master on ide0). I added another disk to the system, putting the new
disk as master on ide0, and the win98 disk as the slave on ide0. Then I
installed redhat 9 (shrike) from the three CD set.

The problem: well, setup went fine, I rebooted, and sure enough, grub
comes up, offering windows 98 or RedHat Linux. Selecting RedHat worked
fine, but selecting Windows 98 caused grub to hang and not boot windows
98. I searched on the internet for problems like this, and found a post
of someone advising you map hd0 to hd1 and vice versa to fix the problem
in this situation. So, I edited the windows98 section of my grub.conf to
be as follows:

title Windows 98
  map (hd0) (hd1)
  map (hd1) (hd0)
  rootnoverify (hd1)
  chainloader +1

..which appears to be the way to do it. (I didn't edit the RedHat
section, I left it as is).
Now when I boot up, grub drops through to the grub command line, without
showing a menu, which I believe is what happens when the config is wrong
or erroneous. Can anyone advise if indeed this means my grub.conf is
bogus, and how to fix it?
(Funnily enough, if I type the windows98 rules at the grub command line
as they appear above, and then type 'boot', windows 98 boots just fine!)

My full grub.conf reads as follows:

#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.40.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
        initrd /initrd-2.4.20-8.img
title Windows 98
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1)
        chainloader +1

all help greatly appreciated!

alex

-- 
to email me, remove the munger from my address


Relevant Pages

  • Re: [opensuse] dual boot issues
    ... I am still unable to boot into the Win7 partition from grub. ... I have set up SuSE machines to dual boot into Windows since SuSE ... Since the Windows 7 boot sector was corrupted during the install of grub ...
    (SuSE)
  • Re: [SLE] reboot
    ... > 9.3 has a long-click reboot that lets you choose what grub boots. ... Your problem will be how to reboot out of windows, ... As to the mechanics of how KDM instructs grub to boot some alternative ...
    (SuSE)
  • Re: Help!! GTAN-Grub Troubling Another Newbie
    ... > windows XP running. ... I tried to make it double boot using grub but it ... > title Red Hat Linux ...
    (comp.os.linux.setup)
  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: Dual-boot RH9/Windows XP using GRUB
    ... It blew away GRUB but I ... >I am using a boot floppy to boot into Redhat. ... >title Windows XP Professional ...
    (RedHat)