Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Installation > HowTo: Multiple, Independent WinXP Installs on the Same HardDrive via Grub

Forgot Password?
 Installation   Need help or have questions about installing Linux, including dual booting with other distros or Windows? put them here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 07-25-2006   #1 (permalink)
Linux Newbie
 
Join Date: Mar 2004
Posts: 185
HowTo: Multiple, Independent WinXP Installs on the Same HardDrive via Grub

Why

Why would someone want multiple, independent Windows XP installations? Well in my case it was keeping one install neat and tidy, and the other for app testing and gaming i.e. keeping nasty DRMs like Starforce off at least one of my WinXP installs.


How

Partitions
WindowsXP requires installation to a primary partition, so multiple primary partitions are need for a multi-WinXP system. One hard drive can have a maximum of four primary parititions, or a maximum of three with the presence of one extended partition. The four primary partitions would be labled hda1, hda2, hda3, and hda4. The first logical partition of an extended drive is labeled hda5. Note: The maximum number of XP installs on a single hard drive using this method is three, do to the necessary Linux install. I recommend cfdisk for setting up partitions.

And example setup for a dual WinXP setup:
hda1 Boot Primary NTFS [^A] 15726.74
hda2 Primary NTFS [^B] 22002.63
hda5 Logical Linux swap 1200.90
hda6 Logical Linux ReiserFS 8496.72
Pri/Log Free Space


Install WinXP to hda1
Install WinXP to hda1 as normal.

Install Linux
Now install your distro of choice, in this case VectorLinux 5.1.1SOHO to hda6, with Grub v.95 installed via GSlapt from a Slackware10.1 source.

In Linux, open up a terminal as root and type:
# grub
# hide (hd0,0)
# quit


You can verify hda1 (hda0,0 in grub notation) is now hidden by typing # fdisk -l or going into cfdisk and checking for a change from NTFS to Hidden HPFS/NTFS.

Install WinXP to hda2
Reboot the machine and boot from the WinXP CD to install WinXP, but this time to hda3. The installer will ignore hda1 as an unknown filesystem and default to hda2 as its C:\.

Configure Grub
Reboot after the hda2 WinXP installation, and boot up using your VectorLinux CD (or your distro of choice) to boot to your Linux install. Now it is time to configure Grub by editing your /boot/grub/menu.lst file. You must hide the two WinXP installs from each other every time you boot to either of them. This is very simple using Grubs hide and unhide command.

An example menu.lst, using the same dual WinXP setup:
# Start GRUB global section
default 0
timeout 5
#
title WindowsXP (on /dev/hda1)
unhide (hd0,0)
hide (hd0,1)
rootnoverify (hd0,0)
makeactive
chainloader +1
#
title WinTesting (on /dev/hda2)
unhide (hd0,1)
hide (hd0,0)
rootnoverify (hd0,1)
makeactive
chainloader +1
#
title VectorLinux (on /dev/hda6)
root (hd0,5)
kernel /boot/vmlinuz root=/dev/hda6 ro vga=773



Hope this is of help to some. I posted it on the Vector forums, but thought the larger audience here could potentially benefit as well. A big thanks to saikee of JustLinux for his input. Would probably still be googling for a solution without his help. Thanks! I'm still trying to figure a way to get Win98SE on this NForce4 machine. If/when I do, I'll be sure to make another HowTo for it too.


Best Regards,
DrCR

_____________
VL 5.1.1 SOHO, Asus A8N5X, 3500+ VeniceE4, 2x512MB CorsairXMS, 120GB, 320GB
DrCR is offline  



Old 10-31-2008   #2 (permalink)
Linux Newbie
 
Join Date: Mar 2004
Posts: 185
Typo Correction:
Install WinXP to hda2
Reboot the machine and boot from the WinXP CD to install WinXP, but this time to hda2. The installer will ignore hda1 as an unknown filesystem and default to hda2 as its C:\.
DrCR is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:12 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1