LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2003, 07:22 PM   #1
southsibling
Member
 
Registered: Jun 2003
Location: Harford County, Maryland
Distribution: Mandrake 10.1
Posts: 162

Rep: Reputation: 30
edit Red Hat 9 Grub to boot Windows


I've installed a Red Hat 9 distro on the same hard-drive as Windows-the Windows OS grabbing onto a primary partition, and Linux tucked away in the Logical cacoon in an Ext/2 partition, all created by PartitionMagic. I installed BootMagic, because I was invited to by the august tomes of PowerQuest, and because I didn't know any better. Red Hat, of course, thought better of its' own offering (Grub), and brought that to the table. Now, I can't get either one to talk nice to the other. BootMagic will boot Windows, and Grub will boot RedHat. I am the intermediary, juggling two boot-up floppies as appropriate. What I would really like to do is improve the code embedded in Grub, (labeled DOS) that at least intends to kick Windows off to a good start. (Once I'm able to realize this dream, I'll then give BootMagic the boot.) To that end, I've retrieved what I hope is appropriate code from the Linux Doc. Project. Can even go into edit in the Grub environ and add the code. What I CAN'T do is get Grub to swallow it! I've gotten as far as the command line screen, wherein I should let Grub know that I've tossed up some code that I would like saved, but I don't have a clue how to do that. What code lines do I need to leave at Grub's doorstep so's it'll inhale and retain the Windows boot-up stuff?
 
Old 12-17-2003, 07:38 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
When you get to the Redhat command line, try this....
grub-install /dev/hda

If that doesn't work, it may take a little more doing.
 
Old 12-18-2003, 07:30 PM   #3
southsibling
Member
 
Registered: Jun 2003
Location: Harford County, Maryland
Distribution: Mandrake 10.1
Posts: 162

Original Poster
Rep: Reputation: 30
well, the prediction was right...it didn't work.
 
Old 12-18-2003, 08:03 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Well this may help...

1. Boot your machine from your boot media (cdrom1) and select linux rescue to install to the command prompt.

2. Redhat 8.0 displays a message “If you would like to make your system the root environment, run the command: chroot /mnt/sysimage”. Go ahead and do that.

3. At the prompt, type rdev and make a note of the output. For example, if it looks like this... /dev/hda2 / . This indicates that the Redhat root partition is on the first drive and second partition. You need that info for the next step.

4. Get into the grub configuration utility with the command: grub.
· At the prompt grub> type the command: root (hd0,1) ; this will tell grub that the linux files it needs are on the first hard disk (hd0) and the second partition (1) of that drive. Change this to meet your configuration needs. For instance, if the linux files are on the second hard disk (hd1), first partition (0) of that drive then type root (hd1,0).
· If you selected the correct location (where linux is installed), you should see a message as follows.... Filesystem type is Ext2fs, partition type is 0x83.
· Then issue the following command: setup (hd0) ; this will install grub in the MBR of your first hard disk. You could change that to use the /boot partition if desired.
· Exit the grub utility with the command: quit

The file /etc/grub.conf may need to be edited also.
 
  


Reply



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
how to boot red hat if i installed GRUB in the /root cosgeo99 Red Hat 4 02-17-2005 11:14 AM
unable to edit grub in red hat randrake Linux - Enterprise 1 05-14-2004 01:28 AM
Grub in Mandrake doesn't give Red Hat boot option webwolf70 Mandriva 5 03-11-2004 03:44 AM
Dual Windows XP and Red Hat 9 Grub Problems jonsmel Red Hat 10 01-29-2004 09:12 AM
grub + Red hat Linux 8 + Windows XP Naru Linux - Newbie 8 12-10-2002 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:32 AM.

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
Open Source Consulting | Domain Registration