Jump to content

enhanced gptsync tool


  • Please log in to reply
23 replies to this topic

#1
JrCs

JrCs

    InsanelyMac Protégé

  • Coders
  • 30 posts
  • Gender:Male
Hi,

here's an OSX port and enhancement i made to help creating hybrid MBR partitions on GPT drive.

Code came from project rEFit: http://refit.sourceforge.net/

The package below contain the gptsync command line tool for Mac OSX Leopard.

Source code is available here: https://github.com/JrCs/gptsync

You can download the package here:

Edit 31/12/12 version 0.3: gptsync-0.3.pkg

Old Versions:
Edit 02/08/09 version 0.2: gptsync-0.2.pkg.zip

JrCs

#2
tdtran1025

tdtran1025

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 352 posts
Can u explain further.

#3
=SABER=

=SABER=

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
http://netkas.org/?p=39

phnix had compiled 2 years ago.

#4
JrCs

JrCs

    InsanelyMac Protégé

  • Coders
  • 30 posts
  • Gender:Male

http://netkas.org/?p=39

phnix had compiled 2 years ago.


Here it's an enhanced version. With selection of partition to add, to make active, etc....

#5
Ed_Saxman

Ed_Saxman

    InsanelyMac Geek

  • FAQ Team
  • 232 posts
  • Gender:Male
  • Location:Barcelona
Your app was very useful for me!!

At least I have an GPT/MBR Triple Boot with OS X, win7 and Ubuntu 9.

Thank you!!

#6
saivert

saivert

    InsanelyMac Protégé

  • Members
  • PipPip
  • 71 posts
So you can't boot Windows from a GPT partition then? Windows 7 supports GPT.

#7
srs5694

srs5694

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Male
  • Location:Woonsocket, RI
Windows 7 does support reading and writing GPT disks, but not booting from them, unless the computer uses EFI for firmware, rather than a BIOS. (I've corresponded with somebody who's used a post-BIOS EFI implementation to work around this limitation, but that's currently an awkward solution that doesn't work on all computers -- I couldn't get it to work myself, for instance.) So in a dual-boot environment with Windows and a need or desire to use GPT, you must have either multiple disks (at least one MBR for Windows to boot and at least one GPT) or a hybrid MBR configuration.

#8
caribouuu

caribouuu

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Whoa. I just ran the installer and couldn't find anything having been installed. I hope this isn't a trojan.

Where are the files it installed?

#9
Trauma!

Trauma!

    Took too much...

  • Members
  • PipPipPipPipPipPipPip
  • 964 posts
  • Gender:Male
  • Location:France
This is a command line tool caribouu...

It's absolutly not a trojan!

Open your terminal and type:

which gpsync


#10
Suzuka

Suzuka

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 691 posts

Windows 7 does support reading and writing GPT disks, but not booting from them, unless the computer uses EFI for firmware, rather than a BIOS. (I've corresponded with somebody who's used a post-BIOS EFI implementation to work around this limitation, but that's currently an awkward solution that doesn't work on all computers -- I couldn't get it to work myself, for instance.) So in a dual-boot environment with Windows and a need or desire to use GPT, you must have either multiple disks (at least one MBR for Windows to boot and at least one GPT) or a hybrid MBR configuration.

Er...then how did I install Windows 7 on my Hackintosh?

#11
srs5694

srs5694

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 541 posts
  • Gender:Male
  • Location:Woonsocket, RI

Er...then how did I install Windows 7 on my Hackintosh?


There are several possibilities:

  • Your computer uses MBR rather than GPT
  • Your computer uses a hybrid MBR (GPT+MBR) rather than a "pure" GPT
  • Your computer has EFI-enabled firmware
  • Possibly something else I'm forgetting

Without more details on your configuration, I can't narrow it down further than that; however, #2 seems to be quite common; many people run hybrid configurations and aren't even aware of it.

#12
sachink70

sachink70

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts
how to use this zip pkg
please explain

what to type at terminal??


This is a command line tool caribouu...

It's absolutly not a trojan!

Open your terminal and type:

which gpsync



#13
gcc1

gcc1

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
As a noob, especially when it comes to using command line, could someone provide a brief walk through on how to use this tool, (planning to use it for dual boot purposes).

Thanks.

#14
itry2hide

itry2hide

    InsanelyMac Protégé

  • Members
  • PipPip
  • 52 posts
looks like the command line installs as gptsync. Now if I could figure out the switches.

#15
McDarling

McDarling

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts
Just tried this. Attempting Linux install now.

#16
dabora

dabora

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Das sieht echt bescheuert aus und es muss doch eine Möglichkeit geben, welche den größten Wert nimmt und das AR entsprechend


------------------------------
The ccsp and cissp is worldwide accredited certification that validates in ccna security and ccna voice with the professional’s knowledge and skills of IT system security.

#17
xbox361

xbox361

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
Fortunately, boot can be easily unset the same way you set it (using parted). But, when you do so, at least using the version of parted that comes with Ubuntu Gutsy, the msftres flag is set, and parted won't let you unset it no matter how many times you try. The main problem this caused for me was that the partitions marked as msftres would no longer be mounted automatically by OS X, so they didn't show up in the Finder, and they were grayed out in Disk Utility. diskutil list indeed showed their type as "Microsoft Reserved Data" or something to that effect. (I don't remember exactly, and I didn't feel like changing the type back just to do testing for this hint.)

#18
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i
Usage: gptsync [OPTION]... DEVICE [PARTITION[+/-[TYPE]]] ...

gptsync fill hybrid MBR of GPT drive DEVICE.

Specified partitions will be a part of hybrid MBR. Up to 3 partitions are allowed.
+ means that partition is active (only one partition can be active).
TYPE is an MBR hexadecimal type (use -t option to list recognized types).

Valid options:
-e, --empty create an MBR containing only the EFI Protective partition
-n, --nofill don't try to protect unused partition
-t, --types list the MBR recognized type codes
-h, --help display this message and exit
-V, --version print version information and exit

examples:
sudo gptsync /dev/disk1 1 2+af
sudo gptsync /dev/disk1 2+

#19
asdfeas

asdfeas

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 7 posts
I just ran the installer and couldn't find anything having been installed,too. and don’t know why.anyone knows?
I’ll be appreciate for posting me.thanks.Posted Image

#20
BugsB

BugsB

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,513 posts
  • Gender:Male
  • Location:Kauai, Hawai'i
asdfeas, this is a COMMAND LINE utility = you have to run the commands (see given examples) in TERMINAL ......

Apart from that, I would love to get Grub4DOS going on a GPT partitioned drive - anybody know how to?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy