Unix Technical Forum

problem with grub in redhat 9 (dual boot win98)

This is a discussion on problem with grub in redhat 9 (dual boot win98) within the Linux Operating System forums, part of the Unix Operating Systems category; --> I've just installed redhat9 to make a dual booting system (with win98) and am having problems with grub. (Note: ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:05 AM
Alex Hunsley
 
Posts: n/a
Default problem with grub in redhat 9 (dual boot win98)

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:05 AM
mjt
 
Posts: n/a
Default Re: problem with grub in redhat 9 (dual boot win98)

Alex Hunsley wrote:

> all help greatly appreciated!


.... can you give us the output of:
# fdisk -l /dev/hd*
..
--
/// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
\\\ http://pages.sbcglobal.net/mtobler/mjt_linux_page.html ///
While most peoples' opinions change, the conviction of their
correctness never does.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:05 AM
Douglas Mayne
 
Posts: n/a
Default Re: problem with grub in redhat 9 (dual boot win98)

On Wed, 24 Sep 2003 12:58:45 +0100, Alex Hunsley wrote:

> 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!)
>
> <snip>
>
> title Windows 98
> map (hd0) (hd1)
> map (hd1) (hd0)

rootnoverify (hd1,0)
makeactive
> chainloader +1
>
>
> all help greatly appreciated!
>
> alex
>

Assuming your slave drive has only one partition...

Try the syntax (as modified above). This chainloads to the partition's
BPB loader code (not the MBR on the slave drive.)

--Douglas Mayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:05 AM
Alex Hunsley
 
Posts: n/a
Default Re: problem with grub in redhat 9 (dual boot win98)

Douglas Mayne wrote:

> On Wed, 24 Sep 2003 12:58:45 +0100, Alex Hunsley wrote:
>
>
>>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!)
>>
>><snip>
>>
>>title Windows 98
>> map (hd0) (hd1)
>> map (hd1) (hd0)

>
> rootnoverify (hd1,0)
> makeactive
>
>> chainloader +1
>>
>>
>>all help greatly appreciated!
>>
>>alex
>>

>
> Assuming your slave drive has only one partition...


Yes, I think it does.
>
> Try the syntax (as modified above). This chainloads to the partition's
> BPB loader code (not the MBR on the slave drive.)


I've tried your amendment and I get the same result - grub comes up in
command line mode, no menu.

thanks,
alex


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 08:06 AM
Alex Hunsley
 
Posts: n/a
Default Re: problem with grub in redhat 9 (dual boot win98)

Douglas Mayne wrote:

> On Wed, 24 Sep 2003 12:58:45 +0100, Alex Hunsley wrote:
>
>
>>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!)
>>
>><snip>
>>
>>title Windows 98
>> map (hd0) (hd1)
>> map (hd1) (hd0)

>
> rootnoverify (hd1,0)
> makeactive
>
>> chainloader +1
>>
>>
>>all help greatly appreciated!
>>
>>alex
>>

>
> Assuming your slave drive has only one partition...
>
> Try the syntax (as modified above). This chainloads to the partition's
> BPB loader code (not the MBR on the slave drive.)
>
> --Douglas Mayne


Problem now solved... the problem is detailed here:
http://mail.gnu.org/archive/html/bug.../msg00093.html

basically, booting 98 causes (hd0,0) partition to be set to partition
type 0x93, I have set it back now with a parttype command in menu.lst.

thanks all who answered,
alex


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 08:06 AM
mjt
 
Posts: n/a
Default Re: problem with grub in redhat 9 (dual boot win98)

Alex Hunsley wrote:

> basically, booting 98 causes (hd0,0) partition to be set to partition
> type 0x93, I have set it back now with a parttype command in menu.lst.


.... the request for the 'fdisk -l /dev/hd*' would have
revealed this a long time ago )
..
--
/// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
\\\ http://pages.sbcglobal.net/mtobler/mjt_linux_page.html ///
Paradise is exactly like where you are right now ... only much,
much better. - Laurie Anderson

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 08:07 AM
Alex Hunsley
 
Posts: n/a
Default Re: problem with grub in redhat 9 (dual boot win98)

mjt wrote:
> Alex Hunsley wrote:
>
>
>>basically, booting 98 causes (hd0,0) partition to be set to partition
>>type 0x93, I have set it back now with a parttype command in menu.lst.

>
>
> ... the request for the 'fdisk -l /dev/hd*' would have
> revealed this a long time ago )
> .


Uh? I posted that! D'oh... where the hell is it?
<remembers> oh, mailserver was down, I did File -> Save and then
couldn't find where it had gone, then forgot that it hadn't been posted...

alex

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:40 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com