1 Attachment(s)
set-guid - helps setting the partition GUID
I wrote a script to help manage the GUID updates to the partition. This way, it's easy to switch between the OS X and AppleTV-bootable GUIDs. The script is attached. Here's how to use it, for the third volume of disk1:
- set AppleTV-bootable GUID: ./set-guid /dev/disk1 3
- set OS X-accessible GUID: ./set-guid /dev/disk1 3 r
- test the script and see the commands it'll run: ./set-guid /dev/disk1 3 --test
- if you want to give it the start/end sectors directly: ./set-guid /dev/disk1 3 409640 20604520
When you set the GUID to AppleTV-bootable, you'll see something like this:
Code:
> ./set-guid /dev/disk1 3
Disk /dev/disk1 unmounted
gpt remove: /dev/disk1: 1 partition(s) removed
Disk /dev/disk1 unmounted
The script works for me - my AppleTV just booted OS X Server. Be careful - at this point the error checking in the script is not of the greatest quality.
Let me know if you find any bugs. :D Enjoy.