To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Tue, 09-Feb-2010 18:49:37 GMT
         internet.com

Go Back   JustLinux Forums > Community Help: Check the Help Files, then come here to ask! > How I Did It!

How I Did It! Got a How-To/Tutorial/Guide you wrote? Post it here.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-12-2006, 07:52 PM
saikee's Avatar
saikee saikee is offline
moderator
 
Join Date: Jun 2004
Location: Newcastle upon Tyne
Posts: 2,485
How to boot two Windows Vista with one Grub without installing a Linux

Pretty wacky isn't it?

Just a demonstration to show how easy Grub can do such thing when Vista can’t do it itself.

I started with a Live CD, a Kanotix 64bit, to create 3 partitions of hda1, hda2 and hda3 of size 25Gb, 25Gb and 1Gb in NTFS, NTFS and Fat32 in a spare hard disk. Partition type for NTFS is 7 and for Fat32 it is type c. Since a Dos partition is involved I needed to reboot and then formatted only the hda3 Fat32 partition. I marked hda1 as bootable.

I then installed the 1st copy of Vista in hda1 and had it in working order first.
I then booted up a Live CD again and use its cfdisk program to mark hda1 hidden. Its partition type 7 changed to 17. By making hda2 bootable the active flag jumped from hda1 to hda2.

I could then install the second copy of Vista in hda2 and have it working. I chose different wall papers to distinguish the two Vistas.

Lastly I booted up the Live CD, create /mnt/hda3 to mounted hda3. I found Grub’s the stage1 file from the Live CD by

Code:
find / -name stage1
which locates in /KOPPIX/lib/grub/x86_64-pc subdirectory. I made a /boot/grub subdirectory in /mnt/hda3 and copies all the Grub files in /KOPPIX/lib/grub/x86_64-pc to /mnt/hda3/boot/grub. Strictly speaking only stage1, stage1.5 and stage2 are needed. The last command was to invoke Grub to set itself up in hda3 by commands

Code:
grub
root (hd0,2)
setup (hd0,2)
Grub is now inside the boot sector of the partition of hda3.

To make Grub booting the two Vistas I created a menu.lst in /boot/grub subdirectory in hda3 as that is where Grub will search for a booting menu. My boot menu looks like this

Code:
title 1st Vista in hda1
root (hd0,0)
makeactive
unhide (hd0,0)
chainloader +1

title 2st Vista in hda2
root (hd0,1)
makeactive
unhide (hd0,1)
hide (hd0,0)
chainloader +1
When I reboot the 2nd copy of Vista is active and so the M$’s own MBR boots it.

I don’t need to unhide hda2 when booting hda1 because hda2 will become “D” drive. Booting hda2 however I must hide hda1 as it can rob the “C” drive status from hda2.

Inside Vista I can click “start” and then right click “computer”, then click “manage”, then “storage” to activate the “disk Management” program. As hda1, hda2 and hda3 are all partitions supported by M$ and they all shown up there.

To give control to Grub I right click hda3 to select it to be “active”.

On a reboot the M$’s MBR has no choice but to boot hda3 because it is active and Grub is loaded with a screen listing the two Vistas available for booting.

The above scheme works well except to activate Grub I must in Vista to transfer the active flag to hda3 every time.

Points noteworthy:-

(1) Grub is inside hda3 unattached to any operating system.

(2) Grub is booted by the Vista’s MBR!

(3) Vista can't boot another copy of its own self.

(4) There is no operational Linux in the PC.

(5) Grub operates without the need to access the MBR
__________________
Linux user started Jun 2004 - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
Just cloning tips Just booting tips A collection of booting tips

Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

Last edited by saikee; 10-23-2006 at 11:20 AM.
Reply With Quote
  #2  
Old 10-13-2006, 03:08 AM
Parcival's Avatar
Parcival Parcival is offline
Grail Knight
 
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
Quote:
Originally Posted by saikee
I chose different wall papers to distinguish the two Vistas.
I bet this was the hardest part. Thank you for this great howto.
__________________

"What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence."

Tractatus Logico-Philosophicus by Ludwig Wittgenstein (1889-1951)
Reply With Quote
  #3  
Old 10-13-2006, 03:30 AM
saikee's Avatar
saikee saikee is offline
moderator
 
Join Date: Jun 2004
Location: Newcastle upon Tyne
Posts: 2,485
I just got Vista for the first time and was testing it to see if Grub could boot it same as every other MS system.

Some time ago I made a statement saying Grub can boot ancient PC systems before Grub was invented and also new systems that have not yet been invented.

I guess Vista belonging to the latter.
__________________
Linux user started Jun 2004 - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
Just cloning tips Just booting tips A collection of booting tips

Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"
Reply With Quote
  #4  
Old 10-13-2006, 11:47 AM
Icarus's Avatar
Icarus Icarus is offline
Radioactive Wombat/Moderator
 
Join Date: Aug 2001
Location: Somewhere, Texas
Posts: 9,616
Quote:
Originally Posted by saikee
Some time ago I made a statement saying Grub can boot ancient PC systems before Grub was invented and also new systems that have not yet been invented.
It was Grub that booted human evolution!
__________________
I'm just a ParadoX waiting to happen
Registered Linux User #296841
'There's a fine line between genius and insanity. I have erased this line.' - Oscar Levant
Reply With Quote
  #5  
Old 10-13-2006, 03:26 PM
Parcival's Avatar
Parcival Parcival is offline
Grail Knight
 
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
Quote:
Originally Posted by Icarus
It was Grub that booted human evolution!
If there is a way to install a bootloader and a better OS into my brain, please let me know.
__________________

"What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence."

Tractatus Logico-Philosophicus by Ludwig Wittgenstein (1889-1951)
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 02:49 PM.

Help File Library
Audio Hardware
Software
Compiling Kernels
Programming
Soundcards
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.