Review your favorite Linux distribution.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 06-12-2006, 08:10 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
Red Hat AS Windows Xp dual boot problem on separate disks

Hi Everyone,
I am quite new to Linux and wish to have a dual boot system with Linux (Red Hat Advanced Server) and Windows Xp. I have 2 hard disks installed. The master disk (hda) has Windows XP installed on it and I wish to install RedHat AS on the slave (hdb).

During the installation od Red Hat AS, the Windows boot partition is not picked by Linux. I chose to install GRUB on the first sector of the /boot partition, when i rebooted after installation, the system went straight to Windows.

So i did a re-installation (i'm still a newbie), this time installing GRUB on the MBR. After installation was complete, the Windows Partition was not picked up. I tried adding the following line to the grub.conf file:
title Windows XP
rootnoverify (hd0,0)
chainloader +1

When I select Windows XP from the GRUB screen I get the following error:
Error 13: Invalid or unsupported executable format.

So to get windows back, i went to XP recovery concole and used the FIXMBR command. Now I can access Windows but have lost Linux.

Can anyone guide me on how to have a dual bootable system with Windows and Linux on separate hard disks? I would not like to re-install the Windows system on the master drive, is there a way?

Dual booting works fine if i try to install both systems on a single disk (tried on another machine).

Your help would be much appreciated.
Thanks in advance
Old 06-13-2006, 06:42 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
No reason to re-install any OS.........

Your booting into Windows may be to the wrong partition, many systems now have a small recovery partition at the begining of the hard drive and Windows is really on hda2 or hd0,1 (for grub). So you might want to check this first, after booting into Linux use the command 'fdisk -l hda' minus the single quotemarks to check.

If you want to use the Windows bootloader instead after using the fixmbr command and installing grub on the secondary (hdb) hard drive.

Boot into Linux (first) and log on as root from the console or xterm session do something like;

/sbin/grub-install --recheck /dev/hdb (*)
dd if=/dev/hdb of=/bootsect.lnx bs=512 count=1

Save the file to a floppy or a 'shared FAT32/VFAT' partition if available. When done boot into Windows (after using fixmbr) and copy this file to the root of the Windows "C:" drive.

Change the attributes of the boot.ini (so you can edit the file) and add a line like; c:\bootsect.lnx="Linux"

When done save and restore the attributes of the boot.ini file.

* You might want to do this (as a test) first to hda, maybe this will fix the problem.


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
Configuring Red Hat 7.2/ Windows XP dual boot mobok7v Linux - General 10 11-27-2006 03:47 PM
Cannot dual boot Windows XP with Red Hat 9 fries321 Linux - Newbie 6 08-03-2006 10:24 AM
Dual Boot Problem (Windows XP & Red Hat 8) sypkensj Linux - Newbie 50 07-13-2006 03:31 PM
how can i dual boot between windows and red hat? phancom Linux - Newbie 2 09-17-2003 10:53 AM
Dual Boot, Lilo Windows / Red Hat kbhadsten Linux - Newbie 15 06-21-2002 07:30 AM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:33 AM.

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