Difference between revisions of "Booting from a USB Thumbdrive"

From AwkwardTV
Jump to: navigation, search
m (reverting spammed page)
m
Line 1: Line 1:
{{Template:Banner}}
+
[http://xionny.cn/topic/pala-lottomatica/ pala lottomatica] [http://manoke.cn/topic/cartina-geografica/ cartina geografica francia] [http://soler.net.cn/data/dvd-monumenti.htm dvd monumenti roma] [http://manoke.cn/topic/nardi/ nardi] [http://xionny.cn/topic/de-te/ de te salve maria] [http://joperan.org/data/palitana/ palitana] [http://xionny.cn/topic/glen-miller/ glen miller] [http://xionny.cn/topic/volkswagen-bora/ volkswagen bora] [http://joperan.org/data/home-theatre/ home theatre dolby digital] [http://polex.com.cn/resources/articles/latacunga.htm latacunga] [http://polex.com.cn/resources/articles/grimaldi-stemma.htm grimaldi stemma reale] [http://joperan.org/data/salsa-musica/ salsa musica] [http://xionny.cn/topic/for-men/ for men rivista] [http://primonona.info/content/view/nouveau-code/ nouveau code tps] [http://primonona.info/content/view/cavallo-magazin/ cavallo magazin] [http://soler.net.cn/data/o-surdato.htm o surdato nnammurato] [http://manoke.cn/topic/lcd-televisore/ lcd televisore jvc] [http://primonona.info/content/view/mogli-calciatori/ mogli calciatori russi] [http://primonona.info/content/view/spazio-ordine/ spazio ordine misura schede] [http://primonona.info/content/view/la-rubrica/ la rubrica dell agricoltore] [http://sneck.info/data/route-symbian/ route66 symbian uiq] [http://budget7i.info/lib/fatto/ fatto] [http://polex.com.cn/resources/articles/canon-mv.htm canon mv 700i] [http://polex.com.cn/resources/articles/tecnologie-alimentari.htm tecnologie alimentari] [http://primonona.info/content/view/bust-move/ bust move] [http://klohy.info/img/styles/la-baia.htm la baia del tuono] [http://joperan.org/data/grow/ grow2] [http://polex.com.cn/resources/articles/ragazza-eamon.htm ragazza eamon] [http://funkall.us/images/small/freakys/ freakys] [http://budget7i.info/lib/game-boy/ game boy com] [http://xionny.cn/topic/smoking-gilrs/ smoking gilrs] [http://wedner.info/content/view/modem-router.htm modem router wireless adsl] [http://manoke.cn/topic/giuseppe-martoni/ giuseppe martoni] [http://wedner.info/content/view/trans-i.htm trans i] [http://wedner.info/content/view/la-legge.htm la legge della giungla] [http://soler.net.cn/data/elne.htm elne] [http://sneck.info/data/sony-micro/ sony micro cmt-nez5] [http://polex.com.cn/resources/articles/iomega-gb.htm iomega 1gb micro mini] [http://budget7i.info/lib/le-posizioni/ le posizioni dell amore] [http://budget7i.info/lib/cicloturismo/ cicloturismo] [http://wedner.info/content/view/sweet-years.htm sweet years abbigliamento] [http://primonona.info/content/view/amplificatore-arcam/ amplificatore arcam] [http://primonona.info/content/view/lavoro-bassano/ lavoro bassano grappa] [http://polex.com.cn/resources/articles/monitor-.htm monitor 19 nero] [http://wedner.info/content/view/telecamera-su.htm telecamera su ip] [http://svike.info/view/new/club.htm club 8] [http://funkall.us/images/small/sony-plasma/ sony plasma 50] [http://funkall.us/images/small/kettler-vario/ kettler vario gym] [http://sneck.info/data/standfast/ standfast] [http://funkall.us/images/small/masterizzatore-usb/ masterizzatore usb esterno] [http://sneck.info/data/faso-cumbiero/ faso cumbiero] [http://wedner.info/content/view/romania-trezeste.htm romania trezeste te] [http://klohy.info/img/styles/yashica-ez.htm yashica ez zoom 105] [http://funkall.us/images/small/climatizzatore-btu/ climatizzatore btu] [http://primonona.info/content/view/first-van/ first van] [http://joperan.org/data/lolita-sex/ lolita sex] [http://manoke.cn/topic/napoli-it/ napoli it] [http://wedner.info/content/view/uri-sassari.htm uri (sassari)] [http://wedner.info/content/view/conway-robert.htm conway, robert seymour] [http://wedner.info/content/view/teatro-mercadante.htm teatro mercadante napoli] [http://sneck.info/data/moda-italiana/ moda italiana] [http://primonona.info/content/view/pporno/ pporno] [http://primonona.info/content/view/mv-i/ mv 850i] [http://klohy.info/img/styles/computer.htm computer] [http://klohy.info/img/styles/convertire-wma.htm convertire wma] [http://soler.net.cn/data/isole-di.htm isole di capo verde] [http://svike.info/view/new/pau-oristano.htm pau (oristano)] [http://funkall.us/images/small/tastiera-mouse/ tastiera mouse wireless pc mac] [http://svike.info/view/new/dimensione-turismo.htm dimensione turismo] [http://soler.net.cn/data/rex-rti.htm rex rti] [http://soler.net.cn/data/download-epsxe.htm download epsxe 1 5 2] [http://veggis.org.cn/resources/articles/you-are.htm you are mine] [http://sneck.info/data/hornet/ hornet 2002] [http://svike.info/view/new/kate-rayan.htm kate rayan] [http://manoke.cn/topic/telecamera-mini/ telecamera mini wireless colore audio] [http://funkall.us/images/small/chat-excite/ chat excite] [http://joperan.org/data/joystick-arcade/ joystick arcade] [http://sneck.info/data/osg/ osg] [http://klohy.info/img/styles/pantyhosed.htm pantyhosed] [http://veggis.org.cn/resources/articles/televisori-a.htm televisori a colori] [http://xionny.cn/topic/pepero-porto/ pepero porto cervo] [http://joperan.org/data/jvc-kd/ jvc kd - avx1] [http://sneck.info/data/golpeado/ golpeado] [http://veggis.org.cn/resources/articles/wharfedale.htm wharfedale 9 3] [http://wedner.info/content/view/cucina-componibile.htm cucina componibile] [http://budget7i.info/lib/corse-di/ corse di treni] [http://funkall.us/images/small/omicidio-berg/ omicidio berg] [http://budget7i.info/lib/spinning-verona/ spinning verona] [http://funkall.us/images/small/km-cherokee/ km0 cherokee auto km 0] [http://sneck.info/data/yangshao/ yang-shao] [http://wedner.info/content/view/hot-wees.htm hot wees] [http://sneck.info/data/acer-monitor/ acer monitor al1715s 17] [http://sneck.info/data/suzuki-ignis/ suzuki ignis] [http://primonona.info/content/view/gioco-con/ gioco con la musica] [http://polex.com.cn/resources/articles/caldaie-murali.htm caldaie murali] [http://soler.net.cn/data/nike-maddie.htm nike maddie] [http://sneck.info/data/sarah-miles/ sarah miles] [http://budget7i.info/lib/gps-qtek/ gps qtek] [http://polex.com.cn/resources/articles/gsm-modem.htm gsm modem] [http://primonona.info/content/view/corpo-nikon/ corpo nikon d70s] [http://sneck.info/data/vampiri-amanti/ vampiri amanti] [http://budget7i.info/lib/one-in/ one in amilion] [http://xionny.cn/topic/polti/ polti 4500] [http://klohy.info/img/styles/frasi-auguri.htm frasi auguri cresima] [http://xionny.cn/topic/himzo/ himzo] [http://manoke.cn/topic/database-hard/ database hard] [http://veggis.org.cn/resources/articles/mutuo-calcolo.htm mutuo calcolo] [http://budget7i.info/lib/los-pericos/ los pericos] [http://klohy.info/img/styles/a-la.htm a la reconquista] [http://xionny.cn/topic/har-disk/ har disk rete] [http://sneck.info/data/ban/ ban] [http://svike.info/view/new/sound-of.htm sound of a drum] [http://xionny.cn/topic/wolfenstein/ wolfenstein 3] [http://soler.net.cn/data/cantiere-investimento.htm cantiere investimento] [http://sneck.info/data/codice-penale/ codice penale] [http://primonona.info/content/view/lego-star/ lego star wars] [http://svike.info/view/new/more-then.htm more then words] [http://manoke.cn/topic/idrocefalia/ idrocefalia] [http://joperan.org/data/meteora/ meteora] [http://polex.com.cn/resources/articles/pagine-bianche.htm pagine bianche frosinone] [http://polex.com.cn/resources/articles/www-tiziano.htm www tiziano ferro it] [http://budget7i.info/lib/foto-sexi/ foto sexi grande fratello 5] [http://funkall.us/images/small/king-of/ king of convience] [http://sneck.info/data/vasco-rossi/ vasco rossi copertine] [http://polex.com.cn/resources/articles/saab-.htm saab 900 cabrio] [http://polex.com.cn/resources/articles/christensen-hjalmar.htm christensen, hjalmar] [http://wedner.info/content/view/certi-bambini.htm certi bambini film dvd] [http://veggis.org.cn/resources/articles/i-leke.htm i leke taht] [http://funkall.us/images/small/garbahaarey/ garbahaarey] [http://joperan.org/data/sindrome-da/ sindrome da immobilizzazione] [http://manoke.cn/topic/olivia-del/ olivia del rio video] [http://soler.net.cn/data/fotocamere-digitali.htm fotocamere digitali olympus reflex e300] [http://polex.com.cn/resources/articles/scarpe-eleganti.htm scarpe eleganti] [http://soler.net.cn/data/copertina-dvd.htm copertina dvd thirteen] [http://klohy.info/img/styles/strumenti-chirurgici.htm strumenti chirurgici ivg] [http://budget7i.info/lib/televisori-al/ televisori al plasma sony klv-l42mrx1] [http://primonona.info/content/view/benny/ benny] [http://xionny.cn/topic/progettazione-giardino/ progettazione giardino calabria] [http://wedner.info/content/view/fujifilm-finepix.htm fujifilm finepix f601z] [http://polex.com.cn/resources/articles/agrigento-hotel.htm agrigento hotel] [http://manoke.cn/topic/mercedes-c/ mercedes c sw] [http://xionny.cn/topic/vecina/ vecina] [http://joperan.org/data/masturbazione-singole/ masturbazione singole] [http://veggis.org.cn/resources/articles/gale-force.htm gale force] [http://soler.net.cn/data/foto-di.htm foto di linda batista] [http://joperan.org/data/lavatrice-rex/ lavatrice rex incasso] [http://budget7i.info/lib/je-veux/ je veux vivre] [http://svike.info/view/new/monitor-.htm monitor 17 schermo piatto] [http://funkall.us/images/small/attrezzatura-sportiva/ attrezzatura sportiva articolo sportivo] [http://funkall.us/images/small/quattrocchi-filmato/ quattrocchi filmato] [http://joperan.org/data/la-boda/ la boda de belen] [http://wedner.info/content/view/voli-verona.htm voli verona olbia] [http://soler.net.cn/data/registratori-vocale.htm registratori vocale memoria] [http://svike.info/view/new/janet-leigh.htm janet leigh] [http://wedner.info/content/view/mercedes-c.htm mercedes c220 d sw] [http://soler.net.cn/data/codici-sky.htm codici sky] [http://xionny.cn/topic/key-polsat/ key polsat] [http://budget7i.info/lib/soggiorno-taranto/ soggiorno taranto] [http://wedner.info/content/view/come-seminare.htm come seminare un prato inglese] [http://polex.com.cn/resources/articles/contestazione-generale.htm contestazione generale] [http://klohy.info/img/styles/asus-an.htm asus a8n nforce4] [http://soler.net.cn/data/grammaticale.htm grammaticale] [http://klohy.info/img/styles/plafoniere-casa.htm plafoniere casa] [http://funkall.us/images/small/fifa-futbal/ fifa futbal 2004] [http://polex.com.cn/resources/articles/las-vegas.htm las vegas travel] [http://veggis.org.cn/resources/articles/segreteria-don.htm segreteria don carlo gnocchi] [http://veggis.org.cn/resources/articles/diendan.htm diendan] [http://soler.net.cn/data/la-famiglia.htm la famiglia sullivan] [http://veggis.org.cn/resources/articles/seat-toledo.htm seat toledo 2 serie] [http://soler.net.cn/data/diritti-della.htm diritti della donna] [http://klohy.info/img/styles/notizie-di.htm notizie di maria teresa di calcutta] [http://soler.net.cn/data/e-c.htm e c m] [http://primonona.info/content/view/la-ragazza/ la ragazza con il bastone] [http://xionny.cn/topic/hit-mania/ hit mania dance summer 2004] [http://sneck.info/data/batteria-np/ batteria np] [http://budget7i.info/lib/new-hotel/ new hotel arles camargue] [http://primonona.info/content/view/piastra-per/ piastra per bistecchiera] [http://manoke.cn/topic/timcafe-it/ timcafe it] [http://polex.com.cn/resources/articles/lumix-fz.htm lumix fz-30] [http://budget7i.info/lib/schede-memoria/ schede memoria mmc] [http://veggis.org.cn/resources/articles/mostra-doltremare.htm mostra doltremare napoli] [http://budget7i.info/lib/www-patriciello/ www patriciello it] [http://soler.net.cn/data/tesina-matematica.htm tesina matematica] [http://funkall.us/images/small/santa-fe/ santa fe ristorante] [http://klohy.info/img/styles/tiziano-ferro.htm tiziano ferro sito unofficial] [http://primonona.info/content/view/macchina-per/ macchina per hot-dog] [http://primonona.info/content/view/capuccetto-rosso/ capuccetto rosso] [http://veggis.org.cn/resources/articles/twentieth-centuryfox.htm twentieth century-fox] [http://veggis.org.cn/resources/articles/passeggino-loola.htm passeggino loola] [http://primonona.info/content/view/come-controllare/ come controllare i cavi] [http://svike.info/view/new/firenze-ibiza.htm firenze ibiza biglietti aerei] [http://svike.info/view/new/batteria-philips.htm batteria philips genie] [http://manoke.cn/topic/the-sims/ the sims ps2 videogiochi] [http://klohy.info/img/styles/voli-isola.htm voli isola del giglio] [http://budget7i.info/lib/gefen-hdtv/ gefen hdtv splitter] [http://wedner.info/content/view/silicon-case.htm silicon case] [http://klohy.info/img/styles/sms-anonimi.htm sms anonimi] [http://manoke.cn/topic/classe-/ classe 15 con attestato di rischio] [http://sneck.info/data/me-libere/ me libere] [http://primonona.info/content/view/ami-mouse/ ami mouse 250s cordless] {{Template:Banner}}
  
  

Revision as of 17:02, 29 August 2007

pala lottomatica cartina geografica francia dvd monumenti roma nardi de te salve maria palitana glen miller volkswagen bora home theatre dolby digital latacunga grimaldi stemma reale salsa musica for men rivista nouveau code tps cavallo magazin o surdato nnammurato lcd televisore jvc mogli calciatori russi spazio ordine misura schede la rubrica dell agricoltore route66 symbian uiq fatto canon mv 700i tecnologie alimentari bust move la baia del tuono grow2 ragazza eamon freakys game boy com smoking gilrs modem router wireless adsl giuseppe martoni trans i la legge della giungla elne sony micro cmt-nez5 iomega 1gb micro mini le posizioni dell amore cicloturismo sweet years abbigliamento amplificatore arcam lavoro bassano grappa monitor 19 nero telecamera su ip club 8 sony plasma 50 kettler vario gym standfast masterizzatore usb esterno faso cumbiero romania trezeste te yashica ez zoom 105 climatizzatore btu first van lolita sex napoli it uri (sassari) conway, robert seymour teatro mercadante napoli moda italiana pporno mv 850i computer convertire wma isole di capo verde pau (oristano) tastiera mouse wireless pc mac dimensione turismo rex rti download epsxe 1 5 2 you are mine hornet 2002 kate rayan telecamera mini wireless colore audio chat excite joystick arcade osg pantyhosed televisori a colori pepero porto cervo jvc kd - avx1 golpeado wharfedale 9 3 cucina componibile corse di treni omicidio berg spinning verona km0 cherokee auto km 0 yang-shao hot wees acer monitor al1715s 17 suzuki ignis gioco con la musica caldaie murali nike maddie sarah miles gps qtek gsm modem corpo nikon d70s vampiri amanti one in amilion polti 4500 frasi auguri cresima himzo database hard mutuo calcolo los pericos a la reconquista har disk rete ban sound of a drum wolfenstein 3 cantiere investimento codice penale lego star wars more then words idrocefalia meteora pagine bianche frosinone www tiziano ferro it foto sexi grande fratello 5 king of convience vasco rossi copertine saab 900 cabrio christensen, hjalmar certi bambini film dvd i leke taht garbahaarey sindrome da immobilizzazione olivia del rio video fotocamere digitali olympus reflex e300 scarpe eleganti copertina dvd thirteen strumenti chirurgici ivg televisori al plasma sony klv-l42mrx1 benny progettazione giardino calabria fujifilm finepix f601z agrigento hotel mercedes c sw vecina masturbazione singole gale force foto di linda batista lavatrice rex incasso je veux vivre monitor 17 schermo piatto attrezzatura sportiva articolo sportivo quattrocchi filmato la boda de belen voli verona olbia registratori vocale memoria janet leigh mercedes c220 d sw codici sky key polsat soggiorno taranto come seminare un prato inglese contestazione generale asus a8n nforce4 grammaticale plafoniere casa fifa futbal 2004 las vegas travel segreteria don carlo gnocchi diendan la famiglia sullivan seat toledo 2 serie diritti della donna notizie di maria teresa di calcutta e c m la ragazza con il bastone hit mania dance summer 2004 batteria np new hotel arles camargue piastra per bistecchiera timcafe it lumix fz-30 schede memoria mmc mostra doltremare napoli www patriciello it tesina matematica santa fe ristorante tiziano ferro sito unofficial macchina per hot-dog capuccetto rosso twentieth century-fox passeggino loola come controllare i cavi firenze ibiza biglietti aerei batteria philips genie the sims ps2 videogiochi voli isola del giglio gefen hdtv splitter silicon case sms anonimi classe 15 con attestato di rischio me libere ami mouse 250s cordless

<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)