Difference between revisions of "Booting from a USB Thumbdrive"

From AwkwardTV
Jump to: navigation, search
Line 1: Line 1:
[http://nobinters.org/soy-muchacho.htm soy muchacho provinciano] [http://chaba.info/ipood-apple/ ipood apple] [http://amohseni.info/img/styles/testi-canzoni/ testi canzoni gemelli diversi] [http://nobinters.org/roma-s.htm roma s pietroburgo] [http://saibso.org/yamaha-ystsw.htm yamaha yst-sw1500] [http://davte.info/library/html/braun-.htm braun 8500 dlx center] [http://nobinters.org/marianne-faithfull.htm marianne faithfull. dreaming my dream] [http://davte.info/library/html/funk-cops.htm funk cops] [http://kinunia.cn/kersnik-janko.htm kersnik, janko] [http://davte.info/library/html/ati-a.htm ati a9550] [http://kinunia.cn/fisiologia-umana.htm fisiologia umana] [http://chaba.info/un-servizio/ un servizio fotografico per john constantine] [http://psisemiya.com/images/small/lettore-memory/ lettore memory stick sd xd] [http://bloprofeldi.info/lib/seagate-.htm seagate 2 5 80gb] [http://davte.info/library/html/midi-films.htm midi films] [http://saibso.org/voli-last.htm voli last minute madrid] [http://amohseni.info/img/styles/oki-ml/ oki ml 3320] [http://ustall.org/web/canne-daiwa.htm canne daiwa] [http://amohseni.info/img/styles/vita-da/ vita da paperi] [http://davte.info/library/html/cherubini-hi.htm cherubini hi fi] [http://ustall.org/web/acqua-energizer.htm acqua energizer] [http://saibso.org/brother-.htm brother - telefax fax t106] [http://chaba.info/il-piacere/ il piacere e il mistero] [http://ashythro.info/library/html/host-usb/ host usb] [http://nobinters.org/rh.htm rh 510] [http://helmed.info/topic/samsung-hard/ samsung hard disk portatili 2 5] [http://psisemiya.com/images/small/lolo-s/ lolo s theme] [http://kinunia.cn/julio-nava.htm julio nava] [http://ustall.org/web/fetishbank.htm fetishbank] [http://davte.info/library/html/lavoro-biella.htm lavoro biella] [http://davte.info/library/html/istanbul-turchia.htm istanbul turchia] [http://kinunia.cn/filippa-lagerback.htm filippa lagerback] [http://ustall.org/web/yattaman-vol.htm yattaman. vol. 01] [http://kinunia.cn/aio.htm aio] [http://bloprofeldi.info/lib/sono-nato.htm sono nato ma...] [http://kinunia.cn/hodeida.htm hodeida] [http://nobinters.org/la-capra.htm la capra di u saba] [http://bloprofeldi.info/lib/samy-sdx.htm samy sdx] [http://psisemiya.com/images/small/dildo-machine/ dildo machine] [http://davte.info/library/html/adsl-tariffa.htm adsl tariffa] [http://amohseni.info/img/styles/hotel-mare/ hotel mare] [http://amohseni.info/img/styles/l-altra/ l altra africa] [http://bloprofeldi.info/lib/www-sexicasalinghe.htm www sexicasalinghe com] [http://kinunia.cn/diario-segreto.htm diario segreto da un carcere femminile] [http://davte.info/library/html/nec-e.htm nec e 606] [http://psisemiya.com/images/small/pioneer-mp/ pioneer 3730mp] [http://kinunia.cn/reader-writer.htm reader writer card] [http://chaba.info/offerta-regali/ offerta regali verona] [http://davte.info/library/html/ristorazione-bologna.htm ristorazione bologna] [http://amohseni.info/img/styles/de-rosa/ de rosa bici] [http://davte.info/library/html/la-notte.htm la notte delle spie] [http://nobinters.org/iniversita-di.htm iniversita di ancona] [http://bloprofeldi.info/lib/teorema-masterteam.htm teorema masterteam] [http://ustall.org/web/spiderman-gioco.htm spiderman gioco per pc] [http://kinunia.cn/rcmp-ca.htm rcmp ca] [http://saibso.org/kasi-kowalskiej.htm kasi kowalskiej] [http://helmed.info/topic/battery-litio/ battery litio] [http://kinunia.cn/elegia-della.htm elegia della lotta] [http://davte.info/library/html/driver-motorola.htm driver motorola c330 download free] [http://psisemiya.com/images/small/impianti-dvd/ impianti dvd] [http://helmed.info/topic/il-resto/ il resto del carlino] [http://helmed.info/topic/voralpen/ voralpen] [http://ustall.org/web/poggiomarino.htm poggiomarino] [http://helmed.info/topic/praha/ praha] [http://davte.info/library/html/ronan-keating.htm ronan keating testi] [http://davte.info/library/html/lbn.htm lbn 2] [http://davte.info/library/html/valeria-marini.htm valeria marini con le calze] [http://ashythro.info/library/html/piegamenti-sulle/ piegamenti sulle braccia] [http://chaba.info/maroon-/ maroon 5 loved] [http://chaba.info/plotter-hp/ plotter hp 500 c] [http://amohseni.info/img/styles/coen-joel/ coen, joel] [http://chaba.info/what-a/ what a wonderful love] [http://nobinters.org/glem-cucina.htm glem cucina] [http://bloprofeldi.info/lib/florencia.htm florencia] [http://amohseni.info/img/styles/basebol/ basebol] [http://psisemiya.com/images/small/johor-baharu/ johor baharu cose fare] [http://amohseni.info/img/styles/la-settima/ la settima donna] [http://davte.info/library/html/alessandro-e.htm alessandro e il mare] [http://ashythro.info/library/html/iniezioni-letali/ iniezioni letali] [http://psisemiya.com/images/small/case-vacanze/ case vacanze affitto piemonte] [http://helmed.info/topic/chicas-calatas/ chicas calatas y fotos] [http://psisemiya.com/images/small/pagine-bianche/ pagine bianche telecom] [http://psisemiya.com/images/small/foppapedretti-maniglie/ foppapedretti maniglie] [http://nobinters.org/un-monton.htm un monton de estrellas] [http://bloprofeldi.info/lib/dinasty.htm dinasty] [http://saibso.org/sestosangiovanni.htm sestosangiovanni] [http://nobinters.org/doppia-trappola.htm doppia trappola] [http://amohseni.info/img/styles/www-ricoprire/ www ricoprire it] [http://chaba.info/filmati-piedi/ filmati piedi] [http://psisemiya.com/images/small/il-jazz/ il jazz americano] [http://kinunia.cn/acura-nsx.htm acura nsx] [http://ashythro.info/library/html/antonello-de/ antonello de pierro calendari donne] [http://chaba.info/epson-stylus/ epson stylus 7600] [http://saibso.org/macchina-delle.htm macchina delle bolle] [http://chaba.info/rimax-mp/ rimax mp3] [http://nobinters.org/vitaminic-srl.htm vitaminic srl] [http://saibso.org/figaro-le.htm figaro, le-] [http://helmed.info/topic/mp-rio/ mp3 rio karma] [http://psisemiya.com/images/small/da-gennaro/ da gennaro] [http://chaba.info/nuova-yaris/ nuova yaris auto nuove] [http://davte.info/library/html/dennou.htm dennou] [http://helmed.info/topic/mamma-festa/ mamma festa] [http://chaba.info/canoa-legno/ canoa legno] [http://ashythro.info/library/html/salvate-il/ salvate il re] [http://amohseni.info/img/styles/incontro-alba/ incontro alba] [http://amohseni.info/img/styles/bed-e/ bed e breakfast roma] [http://chaba.info/vincitore-amico/ vincitore amico] [http://kinunia.cn/maxtor-yl.htm maxtor 6y060l0] [http://helmed.info/topic/video-duncan/ video duncan james] [http://davte.info/library/html/wasted-time.htm wasted time] [http://nobinters.org/gioco-della.htm gioco della dama] [http://bloprofeldi.info/lib/tengo-un.htm tengo un amor de pablo herrera] [http://davte.info/library/html/batteria-canon.htm batteria canon nb-1lh] [http://bloprofeldi.info/lib/led-zeppelin.htm led zeppelin. led zeppelin] [http://ustall.org/web/canon-selphy.htm canon selphy cp500] [http://davte.info/library/html/tesina-societa.htm tesina societa industriale] [http://psisemiya.com/images/small/midi-come/ midi come stai] [http://saibso.org/largo-di.htm largo di haendel mp3] [http://helmed.info/topic/sesso-bestiale/ sesso bestiale] [http://amohseni.info/img/styles/answer/ answer] [http://chaba.info/home-theatre/ home theatre infinity] [http://helmed.info/topic/clistere-anale/ clistere anale] [http://helmed.info/topic/impianti-termici/ impianti termici negli edifici] [http://ustall.org/web/www-siulp.htm www siulp it] [http://saibso.org/runing.htm runing] [http://saibso.org/history-line.htm history line] [http://davte.info/library/html/spartiti-canzoni.htm spartiti canzoni italiane] [http://kinunia.cn/worms.htm worms2] [http://saibso.org/noleggio-ferrari.htm noleggio ferrari bologna] [http://saibso.org/porno-animali.htm porno animali] [http://davte.info/library/html/bind-guardians.htm bind guardians] [http://psisemiya.com/images/small/ink-film/ ink film telecom leonardo] [http://psisemiya.com/images/small/tombi/ tombi2] [http://amohseni.info/img/styles/volo-low/ volo low cost verona] [http://ustall.org/web/lacie-dvd.htm lacie dvd with lightscribe] [http://davte.info/library/html/dvd-recorder.htm dvd recorder 5 1] [http://nobinters.org/tampacs.htm tampacs] [http://ashythro.info/library/html/death-foto/ death foto] [http://nobinters.org/webcam-celestron.htm webcam celestron] [http://bloprofeldi.info/lib/trules.htm trules] [http://chaba.info/piatti-vasi/ piatti vasi vetro] [http://psisemiya.com/images/small/adsl-router/ adsl router voip] [http://nobinters.org/comune-udine.htm comune udine] [http://saibso.org/orizzonte-perduto.htm orizzonte perduto] [http://psisemiya.com/images/small/the-rokes/ the rokes] [http://davte.info/library/html/gps-blutooth.htm gps blutooth sirfstar] [http://ustall.org/web/staffa-a.htm staffa a muro] [http://ustall.org/web/usb-serial.htm usb serial bus] [http://davte.info/library/html/www-italosvevo.htm www italosvevo] [http://nobinters.org/denver-cose.htm denver cose fare] [http://chaba.info/usb-blutooth/ usb blutooth] [http://psisemiya.com/images/small/phone-effect/ phone effect] [http://ustall.org/web/mageslayer.htm mageslayer] [http://kinunia.cn/fiat-stilo.htm fiat stilo 1 9 mj] [http://kinunia.cn/buzzle.htm buzzle] [http://helmed.info/topic/bloodrayne-nuda/ bloodrayne nuda] [http://bloprofeldi.info/lib/netgear-wpn.htm netgear wpn111] [http://helmed.info/topic/www-hsbc/ www hsbc co uk] [http://kinunia.cn/bitter.htm bitter] [http://kinunia.cn/link-porno.htm link porno cuckold] [http://davte.info/library/html/try-a.htm try a little tenderness harry woods] [http://chaba.info/porta-romana/ porta romana] [http://davte.info/library/html/www-camini.htm www camini it] [http://helmed.info/topic/god-put/ god put a smile upon a smile] [http://saibso.org/emisoras-unidas.htm emisoras unidas com] [http://psisemiya.com/images/small/materie-plastiche/ materie plastiche - rivestimenti e laminati] [http://saibso.org/pime-milano.htm pime milano] [http://ustall.org/web/gianni-tatoo.htm gianni tatoo livorno] [http://nobinters.org/antivir-personal.htm antivir personal edition] [http://chaba.info/il-grande/ il grande valzer] [http://amohseni.info/img/styles/dafa/ dafa] [http://bloprofeldi.info/lib/textile-design.htm textile design studio] [http://ustall.org/web/carte-plastiche.htm carte plastiche] [http://psisemiya.com/images/small/www-/ www 3 2 com] [http://nobinters.org/torneo-pro.htm torneo pro evolution soccer 3 a viterbo] [http://helmed.info/topic/video-san/ video san salvador di moonlight] [http://kinunia.cn/concessionaria-rover.htm concessionaria rover] [http://nobinters.org/jbl-e.htm jbl e subwoofer] [http://helmed.info/topic/nero-recode/ nero recode] [http://kinunia.cn/sandungueo-perreo.htm sandungueo perreo video] [http://ashythro.info/library/html/energizer/ energizer 2500] [http://bloprofeldi.info/lib/vasmer-max.htm vasmer, max] [http://davte.info/library/html/portatile-sintonizzatore.htm portatile sintonizzatore tv] [http://kinunia.cn/vast.htm vast] [http://davte.info/library/html/fac-simile.htm fac simile contratto di fitto d azienda] [http://amohseni.info/img/styles/lettore-mp/ lettore mp3 registratore vocale pen] [http://davte.info/library/html/loghi-calcio.htm loghi calcio] [http://ustall.org/web/campus-live.htm campus live] [http://saibso.org/nicky-yam.htm nicky yam] [http://bloprofeldi.info/lib/illuminazione-a.htm illuminazione a dinamo] [http://helmed.info/topic/canzonette/ canzonette] [http://ustall.org/web/black-knigh.htm black knigh] [http://saibso.org/eagle-eye.htm eagle eye cherry] [http://psisemiya.com/images/small/gratis-p/ gratis p peppese] [http://kinunia.cn/ndamba.htm ndamba] [http://nobinters.org/turner-vegas.htm turner vegas 1200] [http://kinunia.cn/gps-v.htm gps v deluxe - italia] [http://helmed.info/topic/emanuela-falcetti/ emanuela falcetti] [http://helmed.info/topic/wireless-pen/ wireless pen] [http://amohseni.info/img/styles/tastiera-media/ tastiera media center] {{Template:Banner}}

Revision as of 16:10, 18 August 2007

soy muchacho provinciano ipood apple testi canzoni gemelli diversi roma s pietroburgo yamaha yst-sw1500 braun 8500 dlx center marianne faithfull. dreaming my dream funk cops kersnik, janko ati a9550 fisiologia umana un servizio fotografico per john constantine lettore memory stick sd xd seagate 2 5 80gb midi films voli last minute madrid oki ml 3320 canne daiwa vita da paperi cherubini hi fi acqua energizer brother - telefax fax t106 il piacere e il mistero host usb rh 510 samsung hard disk portatili 2 5 lolo s theme julio nava fetishbank lavoro biella istanbul turchia filippa lagerback yattaman. vol. 01 aio sono nato ma... hodeida la capra di u saba samy sdx dildo machine adsl tariffa hotel mare l altra africa www sexicasalinghe com diario segreto da un carcere femminile nec e 606 pioneer 3730mp reader writer card offerta regali verona ristorazione bologna de rosa bici la notte delle spie iniversita di ancona teorema masterteam spiderman gioco per pc rcmp ca kasi kowalskiej battery litio elegia della lotta driver motorola c330 download free impianti dvd il resto del carlino voralpen poggiomarino praha ronan keating testi lbn 2 valeria marini con le calze piegamenti sulle braccia maroon 5 loved plotter hp 500 c coen, joel what a wonderful love glem cucina florencia basebol johor baharu cose fare la settima donna alessandro e il mare iniezioni letali case vacanze affitto piemonte chicas calatas y fotos pagine bianche telecom foppapedretti maniglie un monton de estrellas dinasty sestosangiovanni doppia trappola www ricoprire it filmati piedi il jazz americano acura nsx antonello de pierro calendari donne epson stylus 7600 macchina delle bolle rimax mp3 vitaminic srl figaro, le- mp3 rio karma da gennaro nuova yaris auto nuove dennou mamma festa canoa legno salvate il re incontro alba bed e breakfast roma vincitore amico maxtor 6y060l0 video duncan james wasted time gioco della dama tengo un amor de pablo herrera batteria canon nb-1lh led zeppelin. led zeppelin canon selphy cp500 tesina societa industriale midi come stai largo di haendel mp3 sesso bestiale answer home theatre infinity clistere anale impianti termici negli edifici www siulp it runing history line spartiti canzoni italiane worms2 noleggio ferrari bologna porno animali bind guardians ink film telecom leonardo tombi2 volo low cost verona lacie dvd with lightscribe dvd recorder 5 1 tampacs death foto webcam celestron trules piatti vasi vetro adsl router voip comune udine orizzonte perduto the rokes gps blutooth sirfstar staffa a muro usb serial bus www italosvevo denver cose fare usb blutooth phone effect mageslayer fiat stilo 1 9 mj buzzle bloodrayne nuda netgear wpn111 www hsbc co uk bitter link porno cuckold try a little tenderness harry woods porta romana www camini it god put a smile upon a smile emisoras unidas com materie plastiche - rivestimenti e laminati pime milano gianni tatoo livorno antivir personal edition il grande valzer dafa textile design studio carte plastiche www 3 2 com torneo pro evolution soccer 3 a viterbo video san salvador di moonlight concessionaria rover jbl e subwoofer nero recode sandungueo perreo video energizer 2500 vasmer, max portatile sintonizzatore tv vast fac simile contratto di fitto d azienda lettore mp3 registratore vocale pen loghi calcio campus live nicky yam illuminazione a dinamo canzonette black knigh eagle eye cherry gratis p peppese ndamba turner vegas 1200 gps v deluxe - italia emanuela falcetti wireless pen tastiera media center


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.


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:

 link to \\?\Device\HarddiskVolume1
 fixed media
 Mounted on \\.\c:

 link to \\?\Device\CdRom0 CD-ROM
 Mounted on \\.\r:
 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)