netkas.org forum

General Category => MultiBoot with GPT => Topic started by: netkas on December 04, 2007, 08:05:51 PM



Title: Booting windows from gpt
Post by: netkas on December 04, 2007, 08:05:51 PM
to be able to install windows to gpt partition. need to make it hybrid mbr/gpt disk, with utility called gptsync, it will make mbr entries for first three gpt partitions (excluding efi system partition)
gptsync will erase bootloader from mbr. so u need to reinstall boot0.
after installing windows u need to reinstall boot0 again.


Title: Re: Booting windows from gpt
Post by: Ehsan on December 04, 2007, 08:50:37 PM
So , Will gptsync let us dual boot OSX and  XP (32-bit) on GUID drive , or we will still be restricted in using Vista/XP-64bit for dual boot ?


Title: Re: Booting windows from gpt
Post by: netkas on December 04, 2007, 09:11:21 PM
after gptsync u can install winXP. cause first 3 partitions will be available as mbr partitions.


Title: Re: Booting windows from gpt
Post by: BladeRunner on December 04, 2007, 10:04:14 PM
What platform does gptsybc need and where can we get it?


Title: Re: Booting windows from gpt
Post by: Thrawnhex on December 04, 2007, 10:17:53 PM
Platform: linux, but also compiled for mac os
link: http://rapidshare.com/files/73514966/gptsync.html


Title: Re: Booting windows from gpt
Post by: aki on December 05, 2007, 09:52:58 PM
Have a problem :

1. I created 3 partitions with diskutility GUID partition table
2. I installed efi v8
3 I go to linux to gptsync /dev/sda

gptsync says MBR doesn't need sync and in fact both lists shows 4 partitions : GUID and MBR (1st is "ee" efi + 3 created with diskutility) there should ne only 3 partitions in MBR according to Netkas.

is there a special order or another command i am missing to create this hybrid right
do I need fdisk ? or another tool ?

I need to install vista / osx / ubuntu on this hd

Thanks for you help.

Aki


Title: Re: Booting windows from gpt
Post by: l0pht on December 18, 2007, 12:20:41 PM
have you tried iPacifist ? Maybe could iPacifist help us
http://www.charlessoft.com/
l0pht
SEA U


Title: Re: Booting windows from gpt
Post by: Yotun on December 18, 2007, 10:06:40 PM
Have a problem :

1. I created 3 partitions with diskutility GUID partition table
2. I installed efi v8
3 I go to linux to gptsync /dev/sda

gptsync says MBR doesn't need sync and in fact both lists shows 4 partitions : GUID and MBR (1st is "ee" efi + 3 created with diskutility) there should ne only 3 partitions in MBR according to Netkas.

is there a special order or another command i am missing to create this hybrid right
do I need fdisk ? or another tool ?

I need to install vista / osx / ubuntu on this hd

Thanks for you help.

Aki
DiskUtility in Leopard makes hybrid GPT/MBR partition table, so you even do not need to use gptsync after. And gptsync says that MBR doesn't need to sync ;) because it already synced.


Title: Re: Booting windows from gpt
Post by: don_regie on December 21, 2007, 06:23:19 AM
The GUID partition will need to be shrunk down, creating free space in which Linux and Windows will reside. Simultaneously, we’ll build the hybrid partition map and create the two partitions for Linux/Windows.

$ diskutil list
/dev/disk0
#: type name size identifier
0: GUID_partition_scheme *200.8 GB disk0
1: EFI 200.0 MB disk0s1
2: Apple_HFS Macintosh HD 200.6 GB disk0s2

diskutil resizeVolume [disk identifier] [disk size] [partition type] ["Partition label"] [partition size] [partition type] ["Partition label"] [partition size]

Using the above example, say we want to drop the size of the GUID partition by 150GB and create two 25GB partitions (MRB) for Linux and 25GB for Windows. The command will be as follows:

sudo diskutil resizeVolume disk0s2 150G "EFS" "Ubuntu Linux" 25G "FAT32" "Windows XP" 25G

Note that the ‘MS-DOS FAT32′ partition type does not infer that FAT32 is required. An NTFS filesystem can be created on this partition.

Disk utiliy can create hybrid partition on command line. ;D
Then we can now install WinXP on Fat32 (can be formated w/ NTFS)


Title: Re: Booting windows from gpt
Post by: SMF on December 21, 2007, 07:33:44 PM
So,

Can you confirm that you can boot XP with this setup?  And what are the details?

I've used the diskutil gui to set up partitions like this on a guid drive with pc_efi_v8 installed and the xp installer sees the partitions (HFS and EFI partitions are shown as "unknown") and begins the installation.  When it's done copying files and wants to reboot to perform the actual install it hangs with errors like "missing operating system".... at the end of the bios phase as it transitions to the boot device.

If I install XP to the guid drive with another xp install on another drive (my "c:" drive) it will install and boot through the bootloader of the first install and run fine but I would like a clean install on a single guid drive.....

Thanks,
SMF


Title: Re: Booting windows from gpt
Post by: don_regie on December 22, 2007, 02:48:57 PM
So,

Can you confirm that you can boot XP with this setup?  And what are the details?

I've used the diskutil gui to set up partitions like this on a guid drive with pc_efi_v8 installed and the xp installer sees the partitions (HFS and EFI partitions are shown as "unknown") and begins the installation.  When it's done copying files and wants to reboot to perform the actual install it hangs with errors like "missing operating system".... at the end of the bios phase as it transitions to the boot device.

If I install XP to the guid drive with another xp install on another drive (my "c:" drive) it will install and boot through the bootloader of the first install and run fine but I would like a clean install on a single guid drive.....

Thanks,
SMF

You can install Win XP on the "Ms-Dos Fat32" partition (created by diskutil), after XP install, it boot directly @ XP partition (XP install make the "MS Dos Fat32 active).
To boot into "Darwin w/ EFI-Boot", you need to re-do "Boot0 install" (i.e. part of pc_efi installation on GUID)
 


Title: Re: Booting windows from gpt
Post by: SMF on December 22, 2007, 04:11:51 PM
Can you tell me exactly how you installed?  I've tried a number of partition configurations - FAT first, FAT last (4th), NTFS first... and have had no luck getting the install to work.

I always get through selecting a partition to install to and it copies all the files over but when it reboots to do the actual install it hangs with errors like "missing operating system"

A detailed list of the steps you followed would be appreciated.

Thanks,
SMF


Title: Re: Booting windows from gpt
Post by: SMF on December 29, 2007, 02:19:44 PM
So - can anyone confirm they have Windows XP running on a GUID drive?  If so can you post how you did it?

Thanks,
SMF


Title: Re: Booting windows from gpt
Post by: gotoh on December 29, 2007, 04:38:15 PM
when you reboot, you have to boot from an OS X partition on an other drive, or from an OS X DVD, then reinstall the PC_EFI bootloader (all the 3 stuff, boot0 boot1h and boot_V8) before you can attempt booting Windows or OS X again.


Title: Re: Booting windows from gpt
Post by: BladeRunner on December 29, 2007, 08:19:19 PM
when you reboot, you have to boot from an OS X partition on an other drive, or from an OS X DVD, then reinstall the PC_EFI bootloader (all the 3 stuff, boot0 boot1h and boot_V8) before you can attempt booting Windows or OS X again.

I have tried this - just as you described. And, just as the other posters said, it failed.  For me, it was always a "b0 error".  I finally went back to Parallesl.  That works and no more hair pulling.


Title: Re: Booting windows from gpt
Post by: SMF on December 31, 2007, 02:03:32 PM
gotoh,

My problem is I can't get XP to finish the installation.  I understand that once I'm done I'll have to replace boot0 since XP should overwrite that during it's install

What happens -
1. Establish partitions & install Leopard with pc_efi (GUID).
2. Confirm it boots
3. Begin XP installation
3a. XP installer sees the partitions - first EFI, and three more (I use one for Leopard - the installer sees the EFI and LEO partitions as "Unknown")
3b. Select partition to install to (I've tried different combinations of not changing the format, formating quick or full FAT or NTFS
3c. Installer copies all the files over (I use a slipstreamed SP2 disk including my network and sata ahci drivers)
4. Installer finishes copying files and reboots the computer to start the windows install
5. Reboot fails with "Missing Operating System" error.

I'm definitely frustrated because I believe it should work.

Any help or advice would be appreciated - I feel like I'm missing something obvious.

Thanks,
SMF


Title: Re: Booting windows from gpt
Post by: gotoh on December 31, 2007, 02:22:03 PM
then you could try to boot from DVD or other disk, use OS X fdisk to flag your windows partition and save, but DO NOT update.
then use GPTsync and reinstall bootloader...


Title: Re: Booting windows from gpt
Post by: SMF on January 01, 2008, 05:27:15 PM
gotoh,

I'm not sure I follow you I'm still a newbie as far as OSX is concerned and am feeling my way with trial and error...however my latest step was to just go back to MBR with EFI.  I installed OSX and then tried to install windows and had the same error - "Missing Operating System".  I'm in the process of wiping my target drive and trying a couple of other options such as first partitioning the drive GUID but not installing OSX/EFI and seeing if I can install windows.  I also want to confirm it's not an issue with being on the second SATA port off my ICH9R so I may try the first port or my JMicron....

SMF


Title: Re: Booting windows from gpt
Post by: bs0d on January 01, 2008, 08:22:21 PM
I've always found xp/vista likes to be the last partition on the disk.

I have

1 FAT32   EFI System Partition
2 HFS+    Leopard Partition
3 EXT2fs  Ubuntu Partition
4 NTFS    Windows XP Partition

I partitioned the drive using disk utility in osx ( it makes a hybrid guid/mbr disk )
then i installed xp and formatted the partition as NTFS.

i then installed leopard, lastly i added ubuntu.

i use the grub bootloader to select between all 3 os's ( windows was added automagically by the ubuntu installer )

bs0d.



Title: Re: Booting windows from gpt
Post by: SMF on January 01, 2008, 11:05:20 PM
bs0d,

Thanks.  I'll keep plugging.  With my drive/ICH9R on the 2nd SATA port it's acting strange.  I've partitioned the drive with a single partition (MBR - with the remainder unpartitioned) under windows and OSX (Leopard) and XP installs with the windows partioning but not the OSX partitioning.  It's inexplicable to me - MBR is MBR.  I'm going to move the drive to my JMicron and other ports on the ICH9R and see if I get different results.  I'll try a 4th partition as well though I've tried that in the past to no success.


SMF


Title: Re: Booting windows from gpt
Post by: SMF on January 04, 2008, 03:04:11 AM
UPDATE: Well I've had some success with installing XP on GUID but before I could really feel like I had the formula I had to RMA my drive.  So I'll be a bit slowed down in my testing.  I did finally get it to install by partitioning and installing OS X then installing XP.  Diskutility creates a synced GPT/MBR.  More testing when my replacement drive arrives.

SMF


Title: Re: Booting windows from gpt
Post by: gotoh on January 04, 2008, 10:25:51 AM
I think that's the way to go, like here :
http://forum.netkas.org/index.php/topic,88.0.html


Title: Re: Booting windows from gpt
Post by: kocoman on January 11, 2008, 12:39:05 PM
It seems Windows XP doesn't let you install to GUID partation?  stating that "this disk does not contain a windows xp compatible partition"


Title: Re: Booting windows from gpt
Post by: SMF on January 12, 2008, 08:05:47 PM
You need to format one of the partitions as MS-DOS (FAT) in the OS X diskutility before trying to install windows.  My experience has shown that for some reason (that I'm working to try and understand) Windows XP only works when being installed to the 4th partition.  Other wise the install fails on the first reboot after copying the files.

SMF


Title: Re: Booting windows from gpt
Post by: MacPaq on February 18, 2008, 01:04:26 AM
If I understand correctly, in gpt partition, the first logical block (block 0) is MBR, for compatibility, which means Windows MBR or Grub can be installed there. Am I right?