LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2002, 10:25 AM   #1
TomCruise2002
LQ Newbie
 
Registered: Sep 2002
Posts: 12

Rep: Reputation: 0
How to dual boot XP and Linux in separate drives


Hello from a Linux newbie in Singapore

I have 2 hard disk drives in my PC. One of them is installed with Windows XP and the other is not partitioned at all.

Drive 1: 40 GB (Single NTFS partition installed with Windows XP)
Drive 2: 60 GB (not partitioned)

I would like to install Red Hat Linux OS in Drive 2. Then when I boot from Windows XP, it will allow me to choose either to load Windows or Linux OS.

When I install the CD Rom and choose Disk Druid, I am brought to a screen which shows tables for the
partitions and drive summary. Both tables show my first drive. I am worried that if I continue with the install procedure Linux will partition Drive 1 and I will lose all my data or I won't be able to boot from Windows XP the next time?

How should I achieve my desired method of booting up?

Was wondering whether I can partition Drive 2 using Linux Fdisk (Ext2 partitions), create a rescue boot diskette for Linux and then boot from the Linux resdue diskette.

Next, run dd if=/dev/hdan of=/boot.xxxx bs=512 and then copy the boot.xxxx file into a DOS-formatted floppy.

Hopefully my Windows XP boots the next time and I copy the Linux file boot.xxxx into C:\, and append the string "c:\boot.xxxx="linux"" in boot.ini.

Does this mean that when XP boots the next time, and I choose Linux OS, Xp reads the boot.ini file and somehow understands is able to read the boot.xxxx file, look at the first sector of Drive 2 and load the Linux OS?

Let me know.
Thanks.
Anthony.
 
Old 09-22-2002, 12:51 PM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Perhaps, it's time for you to learn how to rescue XP.

# After you installed XP on /dev/hda1
# & Linux with lilo on /dev/hda2
#
# Replace /dev/hda2 if need be
#
Boot Linux & open terminal
mount /mnt/floppy
dd if=/dev/hda2 of=/mnt/floppy/boot.lnx bs=512 count=1
cp boot.lnx /mnt/floppy
umount /mnt/floppy
Boot XP
copy boot.lnx c:\
edit boot.ini
After multi(0)..., add a new line
C:\boot.lnx="linux"
Reboot
 
  


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
Dual boot with 2 separate hard drives and OS lfierro Linux - Newbie 8 12-11-2004 03:37 PM
FC3 Dual Boot/Separate Drives StarSage Fedora - Installation 2 11-12-2004 09:53 AM
Dual Boot on Separate Hard Drives? theonlylivinggo Linux - Newbie 6 02-26-2004 05:15 PM
Dual boot dilemma - XP/Linux on separate drives BarkingBonefish Linux - Newbie 28 02-12-2004 10:56 AM
dual boot w/ separate hard drives? aveach Linux - General 2 09-15-2003 04:33 PM


All times are GMT -5. The time now is 08:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration