LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-26-2009, 01:17 PM   #1
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Rep: Reputation: 15
Question grub-installation


Hello Friends,

I want to install dual boot like rhel5 and winxp.

First want to install linux then windows, in that case we have to reinstall grub.

Is there any way so that I can first install linux and then windows and then need not to reinstall grub?

Thanks-
 
Old 01-26-2009, 02:01 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by JATA01 View Post
Hello Friends,

I want to install dual boot like rhel5 and winxp.

First want to install linux then windows, in that case we have to reinstall grub.

Is there any way so that I can first install linux and then windows and then need not to reinstall grub?

Thanks-
No Windows always write in MBR .
But would like install linux first
 
Old 01-26-2009, 02:52 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
With 2 harddrives: (call them "D1" and "D2" to avoid confusion with device numbers, etc.)

1. Install Linux on D1, and put grub on the mbr of D1 (Note that the actual identification of D1 depends on how the BIOS is set.)

2. Configure /boot/grub/menu.lst to chainload to the boot code on D2. (Same comment about the actual identification)

3. Install Windows on D2. It will automatically install its boot code to the MBR of D2.

4. Set BIOS to boot from D1, and you'll have your dual-boot. Set the BIOS to boot from D2, and you'll have Windows.


With 1 harddrive:

1. Install Linux on D1 and put grub in the boot sector of the Linux partition. Make an image file of the boot sector using dd.

2. Install Windows.

3. copy the image file from step 1 into the folder where boot.ini lives.

4. Edit boot.ini to point to the image file.

This second method is documented in various places---search for--eg-- "dual-boot using NTLDR". Also search here at LQ for member "Saikee".


all this aside, it's easier to install Windows first.....

Last edited by pixellany; 01-26-2009 at 02:53 PM.
 
Old 01-26-2009, 03:17 PM   #4
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
Thanks for the response!!
I'll do it at my home and let you know if i have any issue.

Thanks-
 
  


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 22 after installation Viper Chief Linux - General 5 06-01-2008 05:16 PM
Grub smilies? after "native" installation of grub. tuffstuff Linux - Newbie 2 03-14-2007 02:29 PM
Grub Installation preeth45 Slackware 3 11-29-2006 03:05 AM
grub installation jxn Slackware 2 04-22-2004 05:08 AM
Grub Installation MAsKrA Slackware 6 06-09-2003 05:59 PM

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

All times are GMT -5. The time now is 12:59 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