|
|
|
|
|
|
| Author |
Message |
guy *nix forums beginner
Joined: 16 Feb 2005
Posts: 1
|
Posted: Wed Feb 16, 2005 3:01 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
I found out that the XP registry holds information about mounted disks
(it suffices that the XP sees these disks once) and then even if you
hide them with grub, XP still knows about them.
What I did was erase the mounted disks entries from the registry.
guy |
|
| Back to top |
|
 |
guy *nix forums beginner
Joined: 15 Feb 2005
Posts: 1
|
Posted: Tue Feb 15, 2005 4:27 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
Indeed this is correct (although) terse.
Unfortunately, The same sequence does not hide one XP partition from
another XP partition for me. I wonder why (I wanted to have one
trusted-safe partition and one untrusted in addition to a LINUX
partition)...
Any clue why hiding fails?
Here is the partition info (from parted) and the grub.conf file.
Disk geometry for /dev/hda: 0.000-58641.108 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 101.975 primary ext3
2 101.975 25101.562 primary ntfs boot
3 25101.562 43598.276 primary ntfs
4 45104.370 58635.681 extended
5 45104.401 58635.681 logical lvm
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this
file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=600
splashimage=(hd0,0)/grub/splash.xpm.gz
title LINUX (2.6.9-1.667)
unhide(hd0,1)
unhide(hd0,2)
root (hd0,0)
kernel /vmlinuz-2.6.9-1.667 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-1.667.img
title XP-1
hide(hd0,1)
unhide(hd0,2)
rootnoverify (hd0,2)
chainloader +1
makeactive
title XP-2
unhide(hd0,1)
hide(hd0,2)
rootnoverify (hd0,1)
chainloader +1
makeactive
thanks,
guy
| Quote: |
To get 2 Win OS installed so that they will work from Grub, you would
have to mark the second partition as hidden (so the first one cannot
see it) and install to number one. Then reverse things, so that number
one is hidden, and install to number 2 (so the Win installer thinks
that it is the only Win OS on the machine)...AND when all that is
done, boot from a Linux CD or floppy and re-install Grub to the MBR,
since each of the prior Win installs will have highjacked the MBR for
"itself".
Geoff |
|
|
| Back to top |
|
 |
R. G. Newbury *nix forums beginner
Joined: 18 Mar 2005
Posts: 15
|
Posted: Mon Feb 14, 2005 4:34 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
On Mon, 14 Feb 2005 14:11:13 UTC, Andy Fraser
<andyfraser31@hotmail.com> wrote:
| Quote: | I have NO PROBLEM to boot XP or Me but just for curiosity I would like
to know if GRUB can directly, without passing through the MBR of the
HD, boot two win partitions.
I would do as others suggest and just leave it. It might be worth trying the
hide/unhide idea that Roby posted but I have a feeling that mjt's right
about what happened and you could end up leaving one or both Windows
systems unbootable temporarily while a partition is hidden.
I think this is more of a Windows issue than a GRUB issue so if you really
want to persue this further I'd suggest posting to a Windows group or
finding a Windows expert to help. If WinXP /has/ changed something in
WinME's partition WRT it's bootloader then there's nothing GRUB can do
about it.
This *is* a Windows issue. Unless the 2 Win installs are done |
separately *and* with the other hidden, the second install will add
its OS to the bootloader in the first installed partition....So the
chain of command will always pass through that Win bootloader. In
addition, it is unlikely that the second install will even boot on a
standalone basis, if the first Win partition is made hidden (with
Partion Magic or somesuch).
To get 2 Win OS installed so that they will work from Grub, you would
have to mark the second partition as hidden (so the first one cannot
see it) and install to number one. Then reverse things, so that number
one is hidden, and install to number 2 (so the Win installer thinks
that it is the only Win OS on the machine)...AND when all that is
done, boot from a Linux CD or floppy and re-install Grub to the MBR,
since each of the prior Win installs will have highjacked the MBR for
"itself".
Geoff |
|
| Back to top |
|
 |
Andy Fraser *nix forums Guru Wannabe
Joined: 01 Mar 2005
Posts: 169
|
Posted: Mon Feb 14, 2005 1:11 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
In comp.os.linux.setup, Paolo uttered the immortal words:
| Quote: | When I choose to boot XP or Me I got a dos screen that ask me again to
choose between XP or ME. I think that when I choose any of the win
partitions I always get back to the MBR of the hard disk.
|
GRUB "owns" the MBR. IIRC WinXP "hijacks" WinME and forces it's bootloader
on ME. AIUI the order of events are as follows: MBR calls GRUB, GRUB calls
the bootloader on one of the Windows partitions but it's essentially
WinXP's bootloader in both cases hence the menu. It's been a long time
since I used Windows at this level (2001 IIRC) and would need to set up my
own dual-boot Win9x/NT system to check it out.
| Quote: | I have NO PROBLEM to boot XP or Me but just for curiosity I would like
to know if GRUB can directly, without passing through the MBR of the
HD, boot two win partitions.
|
I would do as others suggest and just leave it. It might be worth trying the
hide/unhide idea that Roby posted but I have a feeling that mjt's right
about what happened and you could end up leaving one or both Windows
systems unbootable temporarily while a partition is hidden.
I think this is more of a Windows issue than a GRUB issue so if you really
want to persue this further I'd suggest posting to a Windows group or
finding a Windows expert to help. If WinXP /has/ changed something in
WinME's partition WRT it's bootloader then there's nothing GRUB can do
about it.
--
Andy. |
|
| Back to top |
|
 |
mjt *nix forums Guru
Joined: 09 Mar 2005
Posts: 961
|
Posted: Mon Feb 14, 2005 12:20 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
Roby wrote:
| Quote: | Try adding the hide/unhide commands shown above.
|
.... it's worth a try, but i'm not sure that will help.
i *assume* what has happened is the OP installed eXPensive
after ME, and eXPensive saw ME already there and then
automagically installed its bootloader to offer up a
dual-boot system (win OSes only obviously), so it has
its bootloader on /dev/hda1-2
but hey, what the heck do i know about m$ OSes
--
<< http://michaeljtobler.homelinux.com/ >>
SHIFT TO THE LEFT! SHIFT TO THE RIGHT!
POP UP, PUSH DOWN, BYTE, BYTE, BYTE! |
|
| Back to top |
|
 |
7 *nix forums addict
Joined: 24 Mar 2005
Posts: 85
|
Posted: Mon Feb 14, 2005 12:16 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
Paolo wrote:
| Quote: | Hi guys out there.
Can I boot TWO win partitions DIRECTLY with GRUB?
Here is the question: I have WinMe (hda1 30MB), WinXP (hda2 20 MB) and
Linux in hdb1. I have configurated the menu like this:
title=Windows ME
rootnoverify (hd0,0)
makeactive
chainloader +1
title=Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1
(if I remember well) and than of course the linux partition.
When I choose to boot XP or Me I got a dos screen that ask me again to
choose between XP or ME. I think that when I choose any of the win
partitions I always get back to the MBR of the hard disk.
I have NO PROBLEM to boot XP or Me but just for curiosity I would like
to know if GRUB can directly, without passing through the MBR of the
HD, boot two win partitions.
Paolo Perani
|
Somebody claimed they did do it, but it was horribly
complicated and I didn't understand it.
You might be able to find it through gooling newsgroups.
In the above, you could comment out the second set of entries
and just change the title of the first entry to Windows ME/XP.
It makes it tidy, though it won't get rid of problem. |
|
| Back to top |
|
 |
Roby *nix forums beginner
Joined: 22 Feb 2005
Posts: 29
|
Posted: Mon Feb 14, 2005 12:14 pm Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
Paolo wrote:
| Quote: | Hi guys out there.
Can I boot TWO win partitions DIRECTLY with GRUB?
Here is the question: I have WinMe (hda1 30MB), WinXP (hda2 20 MB) and
Linux in hdb1. I have configurated the menu like this:
title=Windows ME
ADDED: unhide (hd0,0) |
ADDED: hide (hd0,1)
| Quote: | rootnoverify (hd0,0)
makeactive
chainloader +1
title=Windows XP
ADDED: unhide (hd0,1) |
ADDED: hide (hd0,0)
| Quote: | rootnoverify (hd0,1)
makeactive
chainloader +1
(if I remember well) and than of course the linux partition.
When I choose to boot XP or Me I got a dos screen that ask me again to
choose between XP or ME. I think that when I choose any of the win
partitions I always get back to the MBR of the hard disk.
I have NO PROBLEM to boot XP or Me but just for curiosity I would like
to know if GRUB can directly, without passing through the MBR of the
HD, boot two win partitions.
Paolo Perani
|
Hi Paulo!
Try adding the hide/unhide commands shown above.
Roby |
|
| Back to top |
|
 |
mjt *nix forums Guru
Joined: 09 Mar 2005
Posts: 961
|
Posted: Mon Feb 14, 2005 11:57 am Post subject:
Re: Booting TWO win partition with DIRECTLY with GRUB
|
|
|
Paolo wrote:
| Quote: | Can I boot TWO win partitions DIRECTLY with GRUB?
|
yes
[snip]
| Quote: | When I choose to boot XP or Me I got a dos screen that ask me again to
choose between XP or ME.
|
that's probably the the eXPensive bootloader taking over.
i would learn to live with it - it might be too much of
a hassle to "undo" that
--
<< http://michaeljtobler.homelinux.com/ >>
The light at the end of the tunnel is the headlight
of an approaching train. |
|
| Back to top |
|
 |
Paolo *nix forums beginner
Joined: 14 Feb 2005
Posts: 7
|
Posted: Mon Feb 14, 2005 9:09 am Post subject:
Booting TWO win partition with DIRECTLY with GRUB
|
|
|
Hi guys out there.
Can I boot TWO win partitions DIRECTLY with GRUB?
Here is the question: I have WinMe (hda1 30MB), WinXP (hda2 20 MB) and
Linux in hdb1. I have configurated the menu like this:
title=Windows ME
rootnoverify (hd0,0)
makeactive
chainloader +1
title=Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1
(if I remember well) and than of course the linux partition.
When I choose to boot XP or Me I got a dos screen that ask me again to
choose between XP or ME. I think that when I choose any of the win
partitions I always get back to the MBR of the hard disk.
I have NO PROBLEM to boot XP or Me but just for curiosity I would like
to know if GRUB can directly, without passing through the MBR of the
HD, boot two win partitions.
Paolo Perani |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 6:51 pm | All times are GMT
|
|
Internet Advertising | Loans | Credit Card Consolidation | Credit Cards | Credit Card Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|