Difference between revisions of "Booting from a USB Thumbdrive"

From AwkwardTV
Jump to: navigation, search
m
m (spam boot again)
Line 1: Line 1:
[http://isa-bella.110mb.com/data/roma-cairo.htm roma cairo] [http://membres.lycos.fr/stshaver//topic/masterizzatore-dual/ masterizzatore dual layer philips] [http://membres.lycos.fr/stshaver//topic/walou/ walou] [http://utenti.lycos.it/aqswartzi//html/villaggi-turistici/ villaggi turistici] [http://gustavolacerda.110mb.com/gruppi-elettrogeni.htm gruppi elettrogeni valex] [http://shusik.125mb.com/lib/auschwitz-partitura/ auschwitz partitura] [http://bleedingc.125mb.com/new/contratto-di/ contratto di lavoro] [http://utenti.lycos.it/panewsonin//web/cd.htm cd 100] [http://cutekrissi.125mb.com/topic/collegamenti-marittimi/ collegamenti marittimi] [http://bofremon.125mb.com/web/rom-gameboy/ rom gameboy advance] [http://usuarios.lycos.es/wijason//web/slaves-to.htm slaves to rome] [http://badguyreaction.110mb.com/data/www-lavoixdunord.htm www lavoixdunord fr] [http://sem-lj.110mb.com/html/kit-vivavoce.htm kit vivavoce bluethoot motorola] [http://sem-lj.110mb.com/html/lacoste-classic.htm lacoste classic ii] [http://cutekrissi.125mb.com/topic/stupro/ stupro] [http://sem-lj.110mb.com/html/hub-giga.htm hub giga] [http://members.lycos.co.uk/koshkamarina//lib/generale-kar.htm generale kar] [http://tapeshoes.125mb.com/directory/moto-it/ moto it] [http://catscratch.125mb.com/topic/indesit-in/ indesit in d 240] [http://shusik.125mb.com/lib/abbigliamento-polo/ abbigliamento polo uomo] [http://sem-lj.110mb.com/html/ludmilla-nuda.htm ludmilla nuda] [http://chipper20.125mb.com/small/acer-mp/ acer mp3 fm] [http://membres.lycos.fr/vacordre//lib/sherlock-holmes.htm sherlock holmes] [http://isa-bella.110mb.com/data/kia-sportage.htm kia sportage 2002] [http://members.lycos.co.uk/koshkamarina//lib/qtek-batteria.htm qtek batteria] [http://members.lycos.co.uk/memader//library/html/memoria-flash.htm memoria flash] [http://tapeshoes.125mb.com/directory/nanotubi/ nanotubi] [http://olwhitwo.125mb.com/topic/set-per/ set per scrivania in pelle] [http://utenti.lycos.it/aqswartzi//html/yeti-snowball/ yeti snowball] [http://badguyreaction.110mb.com/data/si-aggiorna.htm si aggiorna la certificazione giapponese] [http://sem-lj.110mb.com/html/sblocco-lg.htm sblocco lg u8130] [http://dadaisy.125mb.com/resources/telefoni-cellulari/ telefoni cellulari nokia 6600] [http://badguyreaction.110mb.com/data/tania-tucker.htm tania tucker cheyenne saloon] [http://members.lycos.co.uk/blueweow//web/etichetta-dvd/ etichetta dvd cd] [http://ryolove.110mb.com/text/artea-tessuti.htm artea tessuti] [http://her-own-monster.110mb.com/hit-hat.htm hit hat] [http://mitglied.lycos.de/arhexmania//data/gif-natale/ gif natale] [http://shusik.125mb.com/lib/minere/ minere] [http://olwhitwo.125mb.com/topic/trans-iculate/ trans iculate] [http://olwhitwo.125mb.com/topic/ludus/ ludus] [http://catscratch.125mb.com/topic/dog-cum/ dog cum] [http://gustavolacerda.110mb.com/testo-di.htm testo di memories dal musical] [http://utenti.lycos.it/aqswartzi//html/emissione-garanzie/ emissione garanzie] [http://chipper20.125mb.com/small/limone-del/ limone del garda] [http://cutekrissi.125mb.com/topic/ad-ware/ ad ware] [http://utenti.lycos.it/panewsonin//web/cuffie-bluetooth.htm cuffie bluetooth] [http://effattu.110mb.com/resources/toner-tn.htm toner tn2000] [http://oxxotouchoxxo.110mb.com/topic/salone-del.htm salone del gusto] [http://dadaisy.125mb.com/resources/norah-jons/ norah jons] [http://bofremon.125mb.com/web/biografia-scamarcio/ biografia scamarcio] [http://gustavolacerda.110mb.com/dvdsanta.htm dvdsanta] [http://members.lycos.co.uk/koshkamarina//lib/shitzu-cani.htm shitzu cani] [http://membres.lycos.fr/stshaver//topic/acer-travelmate/ acer travelmate 1 8] [http://members.lycos.co.uk/koshkamarina//lib/pietrificazione.htm pietrificazione] [http://cutekrissi.125mb.com/topic/giochi-del/ giochi del pinguino] [http://ryolove.110mb.com/text/telecamera-sicurezza.htm telecamera sicurezza] [http://membres.lycos.fr/vacordre//lib/programmi-foto.htm programmi foto] [http://ryolove.110mb.com/text/golf-tdi.htm golf tdi 4 motion] [http://mitglied.lycos.de/arhexmania//data/ruta/ ruta] [http://metimbre.125mb.com/directory/preview-monitor/ preview monitor epson] [http://ryolove.110mb.com/text/retton.htm retton] [http://chipper20.125mb.com/small/casio-exilim/ casio exilim pro ex p700] [http://mitglied.lycos.de/arhexmania//data/nikon-obiettivi/ nikon obiettivi] [http://bleedingc.125mb.com/new/online-zinto/ online zinto] [http://gustavolacerda.110mb.com/hiroshima.htm hiroshima] [http://badguyreaction.110mb.com/data/volo-san.htm volo san dona piave] [http://dadaisy.125mb.com/resources/montesarchio/ montesarchio] [http://isa-bella.110mb.com/data/olympus-dv.htm olympus dv60] [http://effattu.110mb.com/resources/samsung-stampanti.htm samsung stampanti] [http://bofremon.125mb.com/web/xfiles-season/ xfiles season 7] [http://her-own-monster.110mb.com/il-cielo.htm il cielo d] [http://mitglied.lycos.de/arhexmania//data/dott-lillo/ dott lillo cerami] [http://bleedingc.125mb.com/new/imma-snc/ imma snc] [http://tapeshoes.125mb.com/directory/jovi-have/ jovi have] [http://utenti.lycos.it/panewsonin//web/a-la.htm a la carte libri] [http://sem-lj.110mb.com/html/latin-mail.htm latin mail] [http://catscratch.125mb.com/topic/hey-sexy/ hey sexy lady shaggy lyrics] [http://effattu.110mb.com/resources/video-clip.htm video clip gradis] [http://snowtears4.110mb.com/resources/voli-madagascar.htm voli madagascar] [http://utenti.lycos.it/panewsonin//web/she-elvis.htm she elvis costello] [http://elaine-garden-g.110mb.com/articles/sono-una.htm sono una tettona] [http://sem-lj.110mb.com/html/ac.htm ac] [http://shusik.125mb.com/lib/codidi-attivazione/ codidi attivazione v7] [http://chipper20.125mb.com/small/europa-sat/ europa sat da ru] [http://badguyreaction.110mb.com/data/palma-de.htm palma de majorca] [http://chipper20.125mb.com/small/notte-italiana/ notte italiana] [http://badguyreaction.110mb.com/data/uefa-league.htm uefa league championship] [http://badguyreaction.110mb.com/data/gare-di.htm gare di tuffi] [http://usuarios.lycos.es/wijason//web/saeco-caffe.htm saeco caffe incanto classic] [http://usuarios.lycos.es/wijason//web/mp-usb.htm mp3 usb radio gb] [http://chipper20.125mb.com/small/racconti-con/ racconti con foto hard] [http://chipper20.125mb.com/small/the-/ the 411 on my kness] [http://utenti.lycos.it/aqswartzi//html/abaron/ abaron] [http://shusik.125mb.com/lib/offerte-di/ offerte di lavoro come cameriera per sta] [http://mitglied.lycos.de/arhexmania//data/palermo-ristorante/ palermo ristorante] [http://effattu.110mb.com/resources/eta-pensionabile.htm eta pensionabile] [http://utenti.lycos.it/aqswartzi//html/lisola-dei/ lisola dei delfini blu] [http://snowtears4.110mb.com/resources/batteria-motorola.htm batteria motorola t720i] [http://members.lycos.co.uk/koshkamarina//lib/elettrodomestici-simac.htm elettrodomestici simac] [http://gustavolacerda.110mb.com/frasi-per.htm frasi per pensione] [http://olwhitwo.125mb.com/topic/www-zelig/ www zelig it] [http://elaine-garden-g.110mb.com/articles/il-circo.htm il circo di tati] [http://utenti.lycos.it/aqswartzi//html/centro-obesita/ centro obesita] [http://members.lycos.co.uk/blueweow//web/even-flow/ even flow] [http://olwhitwo.125mb.com/topic/bojan-marovic/ bojan marovic] [http://effattu.110mb.com/resources/thermaltake-w.htm thermaltake 680w] [http://membres.lycos.fr/stshaver//topic/the-darkness/ the darkness friday night] [http://usuarios.lycos.es/wijason//web/screen-saver.htm screen saver gratis] [http://members.lycos.co.uk/memader//library/html/light.htm light] [http://dadaisy.125mb.com/resources/blx/ blx 260] [http://catscratch.125mb.com/topic/mdyankse/ mdyankse] [http://bofremon.125mb.com/web/video-donne/ video donne italiane] [http://olwhitwo.125mb.com/topic/epson-emp/ epson emp 730] [http://metimbre.125mb.com/directory/i-simpson/ i simpson] [http://bofremon.125mb.com/web/openbackup/ openbackup] [http://utenti.lycos.it/aqswartzi//html/ixus/ ixus400] [http://catscratch.125mb.com/topic/selen-video/ selen video porno] [http://membres.lycos.fr/stshaver//topic/pc-hp/ pc hp media] [http://bleedingc.125mb.com/new/chokin-kind/ chokin kind] [http://metimbre.125mb.com/directory/dsc-f/ dsc f717 sony] [http://badguyreaction.110mb.com/data/game-empir.htm game empir] [http://snowtears4.110mb.com/resources/fiat-bravo.htm fiat bravo 1 2] [http://snowtears4.110mb.com/resources/breganze.htm breganze] [http://membres.lycos.fr/vacordre//lib/giubbotto-moto.htm giubbotto moto] [http://ryolove.110mb.com/text/u-sarracin.htm u sarracin] [http://ryolove.110mb.com/text/prugna.htm prugna] [http://catscratch.125mb.com/topic/griglia-in/ griglia in pietra ollare] [http://elaine-garden-g.110mb.com/articles/jocelyne-beroard.htm jocelyne beroard] [http://chipper20.125mb.com/small/images-of/ images of sharks] [http://members.lycos.co.uk/memader//library/html/cerca-di.htm cerca di capirmi] [http://olwhitwo.125mb.com/topic/spartiti-canzoni/ spartiti canzoni napoletane] [http://mitglied.lycos.de/arhexmania//data/oscarwilde/ oscarwilde] [http://usuarios.lycos.es/wijason//web/memoria-sd.htm memoria sd da 512 mb] [http://members.lycos.co.uk/memader//library/html/profumo-stella.htm profumo stella] [http://membres.lycos.fr/stshaver//topic/la-lega/ la lega calcio in winning eleven 8] [http://membres.lycos.fr/vacordre//lib/seven-even.htm seven even] [http://utenti.lycos.it/aqswartzi//html/lady-killers/ lady killers] [http://cutekrissi.125mb.com/topic/arcam-a/ arcam a65] [http://badguyreaction.110mb.com/data/lite.htm lite] [http://shusik.125mb.com/lib/elipsoides/ elipsoides] [http://members.lycos.co.uk/blueweow//web/unchained-ghost/ unchained ghost] [http://utenti.lycos.it/aqswartzi//html/donne-lesbiche/ donne lesbiche che si baciano con la lingua] [http://bleedingc.125mb.com/new/quotazioni-multipla/ quotazioni multipla] [http://members.lycos.co.uk/koshkamarina//lib/numanuma.htm numanuma] [http://isa-bella.110mb.com/data/grand-cherokee.htm grand cherokee 2 7 crd overland] [http://bleedingc.125mb.com/new/forno-da/ forno da incasso nardi cm 90] [http://utenti.lycos.it/panewsonin//web/franco-battiato.htm franco battiato genesi] [http://shusik.125mb.com/lib/monster/ monster 620] [http://members.lycos.co.uk/memader//library/html/lg-inverter.htm lg inverter] [http://mitglied.lycos.de/arhexmania//data/frida-mp/ frida mp3] [http://snowtears4.110mb.com/resources/scheda-compact.htm scheda compact flash gsm gprs tri band] [http://dadaisy.125mb.com/resources/microchip/ microchip] [http://gustavolacerda.110mb.com/draguignan.htm draguignan] [http://cutekrissi.125mb.com/topic/segreti-della/ segreti della caccia] [http://members.lycos.co.uk/memader//library/html/densita-popolazione.htm densita popolazione in italia] [http://elaine-garden-g.110mb.com/articles/hard-top.htm hard top porsche] [http://catscratch.125mb.com/topic/squirt/ squirt] [http://members.lycos.co.uk/blueweow//web/cartone-porno/ cartone porno] [http://bleedingc.125mb.com/new/kenwood-dvt/ kenwood dvt6300] [http://dadaisy.125mb.com/resources/ancient-roman/ ancient roman pottery trademarks] [http://utenti.lycos.it/panewsonin//web/guida-al.htm guida al trucco] [http://catscratch.125mb.com/topic/san-sperate/ san sperate] [http://elaine-garden-g.110mb.com/articles/tara-reid.htm tara reid breast free] [http://oxxotouchoxxo.110mb.com/topic/immagini-lesbiche.htm immagini lesbiche gratis] [http://cutekrissi.125mb.com/topic/chips-challenge/ chips challenge] [http://olwhitwo.125mb.com/topic/duratex/ duratex] [http://metimbre.125mb.com/directory/rigon-/ rigon  rigon di rigon davide] [http://chipper20.125mb.com/small/audigy-/ audigy 4 pro] [http://shusik.125mb.com/lib/bocchini-vip/ bocchini vip] [http://ryolove.110mb.com/text/video-esibizioni.htm video esibizioni] [http://tapeshoes.125mb.com/directory/sistema-modulare/ sistema modulare] [http://utenti.lycos.it/panewsonin//web/ferrino-.htm ferrino - tenda] [http://snowtears4.110mb.com/resources/lionel-richie.htm lionel richie testo angel] [http://membres.lycos.fr/vacordre//lib/suck-and.htm suck and tired] [http://ryolove.110mb.com/text/eamon-karaoke.htm eamon karaoke] [http://members.lycos.co.uk/memader//library/html/discount-theater.htm discount theater seating] [http://utenti.lycos.it/panewsonin//web/rumori-treno.htm rumori treno] [http://shusik.125mb.com/lib/milano-perugia/ milano perugia] [http://ryolove.110mb.com/text/mulin-rouge.htm mulin rouge] [http://cutekrissi.125mb.com/topic/cazzoni/ cazzoni] [http://utenti.lycos.it/aqswartzi//html/bom-bom/ bom bom sonora margarita midi gratis] [http://members.lycos.co.uk/blueweow//web/europ/ europ 2004] [http://tapeshoes.125mb.com/directory/louis-jouvet/ louis jouvet] [http://members.lycos.co.uk/koshkamarina//lib/hazor.htm hazor] [http://bofremon.125mb.com/web/orchestra-omar/ orchestra omar e la voce del cuore] [http://ryolove.110mb.com/text/grn-turismo.htm grn turismo 2] [http://her-own-monster.110mb.com/nv-gs.htm nv gs50 panasonic] [http://badguyreaction.110mb.com/data/porque-te.htm porque te vas jeanette] [http://badguyreaction.110mb.com/data/volvo-v.htm volvo v70 aut] [http://olwhitwo.125mb.com/topic/agordo-oristano/ agordo oristano] [http://her-own-monster.110mb.com/ram-ddr.htm ram ddr 333mhz 512mb] [http://sem-lj.110mb.com/html/kamasoutra.htm kamasoutra] [http://members.lycos.co.uk/koshkamarina//lib/registratore-mp.htm registratore mp3 wav] [http://sem-lj.110mb.com/html/saint-martin.htm saint martin] [http://oxxotouchoxxo.110mb.com/topic/concavo-y.htm concavo y convexo] [http://bofremon.125mb.com/web/panasonic-fz/ panasonic fz5 5 mp 12x digital camera] [http://olwhitwo.125mb.com/topic/royal-california/ royal california dreamin] [http://catscratch.125mb.com/topic/ragazzo-lourdes/ ragazzo lourdes] [http://usuarios.lycos.es/wijason//web/c-est.htm c est la nuit] [http://membres.lycos.fr/stshaver//topic/paciotti-scarpe/ paciotti scarpe] {{Template:Banner}}
+
{{Template:Banner}}
  
  
 
== Not Patchstick ==  
 
== Not Patchstick ==  
This page is not about Patchstick. I repeat: this page is '''not''' about Patchstick. This page just goes into detail ab
+
This page is not about Patchstick. I repeat: this page is '''not''' about Patchstick. This page just goes into detail about the layout of the partitioning table of a possible USB thumbdrive, which might be used for building something ''like'' Patchstick.
5A8
 
out the layout of the partitioning table of a possible USB thumbdrive, which might be used for building something ''like'' Patchstick.
 
  
 
The image linked in this article is an ''empty'' image. No files. Really.
 
The image linked in this article is an ''empty'' image. No files. Really.
Line 22: Line 20:
 
== A bit of info about the image ==
 
== A bit of info about the image ==
  
It's simple enough to create a GPT on a USB thumbdrive with the required attributes.  I used [http://www.gnu.org/software/parted/index.shtml GNU Parted] on Linux, and I'm sure equivalent tools exist for Mac and Windows.  The tricky part is making the image in such a way that it'll boot in the AppleTV '''and''' be easy to deal with if you don't have a Mac handy.  The latter requirement basical
+
It's simple enough to create a GPT on a USB thumbdrive with the required attributes.  I used [http://www.gnu.org/software/parted/index.shtml GNU Parted] on Linux, and I'm sure equivalent tools exist for Mac and Windows.  The tricky part is making the image in such a way that it'll boot in the AppleTV '''and''' be easy to deal with if you don't have a Mac handy.  The latter requirement basically rules out HFS/HFS , since Linux support is spotty and Windows support is non-existant, so I chose to use FAT32.
5A8
 
ly rules out HFS/HFS , since Linux support is spotty and Windows support is non-existant, so I chose to use FAT32.
 
  
 
Windows has had some level of support for GPT disks for some time now, but it uses the Partition Type indicator to determine the type of the filesystem.  Since we have to set this to the value for a recovery partition, Windows will refuse to recognize the partition as FAT32, although Linux will happily mount it anyways.
 
Windows has had some level of support for GPT disks for some time now, but it uses the Partition Type indicator to determine the type of the filesystem.  Since we have to set this to the value for a recovery partition, Windows will refuse to recognize the partition as FAT32, although Linux will happily mount it anyways.
Line 30: Line 26:
 
My first thought was to get rid of the "Protective MBR" partition table that GPT uses to hide itself from older partitioning tools and replace it with a valid MBR partition table that points to the FAT32 partition.  Thus, the drive would have two partition tables, each pointing to the same partition.  With this in place, the thumbdrive was mountable both in Linux and Windows, but the AppleTV apparently checks for the 0xEE partition in the MBR before trying to use the GPT.
 
My first thought was to get rid of the "Protective MBR" partition table that GPT uses to hide itself from older partitioning tools and replace it with a valid MBR partition table that points to the FAT32 partition.  Thus, the drive would have two partition tables, each pointing to the same partition.  With this in place, the thumbdrive was mountable both in Linux and Windows, but the AppleTV apparently checks for the 0xEE partition in the MBR before trying to use the GPT.
  
In the end, I was able to create a MBR that contains the 0xEE partition required to get the AppleTV to load the GPT, but instead of setting the protective partition to fill the disk, I made it very small, then added a second partition in the MBR's remaining space that points to the FAT32 partition.  Now, it's visible to Windows (MBR table), Linux (either table), and the AppleTV (GPT).  You should be able to plug a thumbdrive initialized with this image into any Windows box (I've only tested with Vista Ultimate 64-bi
+
In the end, I was able to create a MBR that contains the 0xEE partition required to get the AppleTV to load the GPT, but instead of setting the protective partition to fill the disk, I made it very small, then added a second partition in the MBR's remaining space that points to the FAT32 partition.  Now, it's visible to Windows (MBR table), Linux (either table), and the AppleTV (GPT).  You should be able to plug a thumbdrive initialized with this image into any Windows box (I've only tested with Vista Ultimate 64-bit) and copy over the necessary files from the AppleTV recovery partition (boot.efi, com.apple.Boot.plist, BootLogo.png, and mach_kernel.prelink).  After that, you can plug the thumbdrive into the AppleTV and reboot it while holding down "Menu" and "Minus" on the remote to boot from the thumbdrive.
5A8
 
t) and copy over the necessary files from the AppleTV recovery partition (boot.efi, com.apple.Boot.plist, BootLogo.png, and mach_kernel.prelink).  After that, you can plug the thumbdrive into the AppleTV and reboot it while holding down "Menu" and "Minus" on the remote to boot from the thumbdrive.
 
  
 
Note that as is, the recovery partition image won't boot completely from USB, since the kernel basically cuts its own head off when it disables USB.
 
Note that as is, the recovery partition image won't boot completely from USB, since the kernel basically cuts its own head off when it disables USB.
Line 54: Line 48:
 
<pre>$ mount
 
<pre>$ mount
 
...
 
...
/dev/disk1s1 on /Volumes/UNTITLED (local, nodev, nosuid) <-- mounted partition on the thumb drive.  /dev/disk1 would be the thumbdrive its
+
/dev/disk1s1 on /Volumes/UNTITLED (local, nodev, nosuid) <-- mounted partition on the thumb drive.  /dev/disk1 would be the thumbdrive itself.  See note below!
5A8
 
elf.  See note below!
 
 
</pre>
 
</pre>
  
Line 71: Line 63:
 
If your storage device has a pretty LED you'll see some activity, once finished you'll see something like:
 
If your storage device has a pretty LED you'll see some activity, once finished you'll see something like:
 
<pre>
 
<pre>
503808 0 records  
+
503808 0 records in
5A8
 
in
 
 
503808 0 records out
 
503808 0 records out
 
257949696 bytes transferred in 439.220493 secs (587290 bytes/sec)
 
257949696 bytes transferred in 439.220493 secs (587290 bytes/sec)
Line 111: Line 101:
 
</pre>
 
</pre>
  
The important part is writing to the Partitio
+
The important part is writing to the Partition0 part of the drive.
5A8
 
n0 part of the drive.
 
  
 
You could also just download a Linux LiveCD.
 
You could also just download a Linux LiveCD.

Revision as of 02:04, 8 September 2007

<Google>WIKI</Google>


Not Patchstick

This page is not about Patchstick. I repeat: this page is not about Patchstick. This page just goes into detail about the layout of the partitioning table of a possible USB thumbdrive, which might be used for building something like Patchstick.

The image linked in this article is an empty image. No files. Really.

You have been warned.

A bit of info on how the boot process works

Background reading:

If the system is booted with the "Menu" and "Minus" keys on the remote held down, it checks for a FAT32 or HFS partition with a Partition Type of {5265636F-7665-11AA-AA11-00306543ECAC}, first on a USB storage device, then on the internal HDD. If such a partition is found, it's mounted and a file called "boot.efi" is read from the root folder and executed.

A bit of info about the image

It's simple enough to create a GPT on a USB thumbdrive with the required attributes. I used GNU Parted on Linux, and I'm sure equivalent tools exist for Mac and Windows. The tricky part is making the image in such a way that it'll boot in the AppleTV and be easy to deal with if you don't have a Mac handy. The latter requirement basically rules out HFS/HFS , since Linux support is spotty and Windows support is non-existant, so I chose to use FAT32.

Windows has had some level of support for GPT disks for some time now, but it uses the Partition Type indicator to determine the type of the filesystem. Since we have to set this to the value for a recovery partition, Windows will refuse to recognize the partition as FAT32, although Linux will happily mount it anyways.

My first thought was to get rid of the "Protective MBR" partition table that GPT uses to hide itself from older partitioning tools and replace it with a valid MBR partition table that points to the FAT32 partition. Thus, the drive would have two partition tables, each pointing to the same partition. With this in place, the thumbdrive was mountable both in Linux and Windows, but the AppleTV apparently checks for the 0xEE partition in the MBR before trying to use the GPT.

In the end, I was able to create a MBR that contains the 0xEE partition required to get the AppleTV to load the GPT, but instead of setting the protective partition to fill the disk, I made it very small, then added a second partition in the MBR's remaining space that points to the FAT32 partition. Now, it's visible to Windows (MBR table), Linux (either table), and the AppleTV (GPT). You should be able to plug a thumbdrive initialized with this image into any Windows box (I've only tested with Vista Ultimate 64-bit) and copy over the necessary files from the AppleTV recovery partition (boot.efi, com.apple.Boot.plist, BootLogo.png, and mach_kernel.prelink). After that, you can plug the thumbdrive into the AppleTV and reboot it while holding down "Menu" and "Minus" on the remote to boot from the thumbdrive.

Note that as is, the recovery partition image won't boot completely from USB, since the kernel basically cuts its own head off when it disables USB.

The image itself (sized for 256MB Flash)

The original image was posted as a base-64 text chunk within this page, it is now mirrored below. The complete image is only about 6K compressed. All you need to do is decompress the image, then write it to a storage device of your choice.

Note: This is a raw disk image, and will expand to 257,949,696 bytes. Your storage device will have to meet this minimum requirement to use this particular image.

Writing the Image

Mac OS X and other *NIX or *NIX like Operating Systems

You must have a Memory stick larger than 512MB of free post formated space for this to work.

Insert your storage device / thumb-drive / USB stick but don't mount it. If your OS automounts the image (like OS X does) you'll need to unmount before you write to it.

$ mount
...
/dev/disk1s1 on /Volumes/UNTITLED (local, nodev, nosuid) <-- mounted partition on the thumb drive.  /dev/disk1 would be the thumbdrive itself.  See note below!

Unmount (as root) For those using OS X gui, find NetInfo Manager in the Utilities folder, click "Security" at the top menu, then "Authenticate." A dialogue box will pop up which asks for the administrator's short name and password. Notice the command for un-mounting is UMOUNT with no 'n' after the 'U.' This is the command, not a typo. Unmount with:-

 # umount /Volumes/UNTITLED 

then use dd to write the image to the storage device (change /dev/disk1 to be the device that corresponds to your OS and device).

 $ dd if=Hybrid.img of=/dev/disk1 bs=1m

Important Note: You want to write to the device that correponds to the entire thumbdrive - not one of its partitions. If you write the image to an existing partition, the all-important partition tables won't be written properly. On Mac OS / Darwin, this will be something like /dev/diskX rather than dev/diskXs1. On Linux, the device will probably be /dev/sdX for a USB device. (Note that SATA hard drives will probably also appear as /dev/sdX - use fdisk -l /dev/sdX to make sure you have the right device before writing to it!)

If your storage device has a pretty LED you'll see some activity, once finished you'll see something like:

503808 0 records in
503808 0 records out
257949696 bytes transferred in 439.220493 secs (587290 bytes/sec)

The drive will more than likely mount once the above process is complete - unmount it and proceed with your install on the Apple TV.

Windows

Download dd for Windows and follow the steps above for writing the image. You don't need to worry about the unmounting part. Windows device identifiers are quite different from BSD / Linux identifiers, so look at the examples on the linked page for how to write to a USB Mass Storage device.

With dd.exe and the Hybrid.img file in the same folder type the following command to find out the name of your USB drive.

dd --list

You should see a bunch of output similiar to:


\\.\Volume{5cd94d2c-3251-11d9-9444-806d6172696f}\
 link to \\?\Device\HarddiskVolume1
 fixed media
 Mounted on \\.\c:

\\.\Volume{129b1243-3252-11d9-b167-806d6172696f}\
 link to \\?\Device\CdRom0 CD-ROM
 Mounted on \\.\r:
 
\\.\Volume{e3429891-0eb9-11da-b18f-000d60dc98cd}\
 link to \\?\Device\Harddisk1\DP(1)0-0 3 removable media
 Mounted on \\.\d:

We are interested in the device mounted to where your USB drive is (d: in this case).

We then do:

dd if=Hybrid.img of=\\?\Device\Harddisk1\Partition0 bs=1M --size --progress

The important part is writing to the Partition0 part of the drive.

You could also just download a Linux LiveCD.

Download the image (Mirrors)

Here - dobedobedoh

Here - anourkey

Here - Galphanet (Swiss server)

Here (choose right click, save as) - MrZarquon

Here (choose right Click Save As), please be gentle on this server, use as a last resort!

MD5: a00685206de5cf5a313ec62594d2ff9e Hybrid.img.bz2 (compressed)

MD5: 1533fdfb2503851a545cf1955c2daea6 Hybrid.img (uncompressed)