Difference between revisions of "Booting from a USB Thumbdrive"

From AwkwardTV
Jump to: navigation, search
m (SpamDitch)
Line 1: Line 1:
[http://gryphon-s.somee.com/torcia.html torcia] [http://auraxcore.110mb.com/fotos-rita.htm fotos rita cadilac filme] [http://rgreystrix.somee.com/www-sega-com.html www sega com] [http://deadvision.110mb.com/data/monitor-lcd/ monitor lcd 6] [http://tutorgirllamb.110mb.com/the-times/index.html the times] [http://azrelle.somee.com/te-deum/index.html te deum] [http://benicek.110mb.com/resources/vendita-telefono.htm vendita telefono cellulare] [http://auraxcore.110mb.com/finanziamenti-mazda.htm finanziamenti mazda] [http://gryphon-s.somee.com/tel-mion-gratis.html tel mion gratis] [http://misseeous.somee.com/www-economia/index.html www economia it] [http://piratl-map.somee.com/www-ministero-degli.html www ministero degli interni] [http://piratl-map.somee.com/www-tefonica-com.html www tefonica com pe] [http://menosgrande.110mb.com/html/cartina-geografica.htm cartina geografica asia] [http://menosgrande.110mb.com/html/lyrics-sono.htm lyrics sono bugiarda] [http://0rgan1sm.somee.com/versione-greco-platone.html versione greco platone] [http://piratl-map.somee.com/where-is-my-mind.html where is my mind] [http://bladespark.somee.com/vagina-vergine/index.html vagina vergine] [http://miss-hide.somee.com/vidopornogratis/index.html vidopornogratis] [http://knuckles-lives.110mb.com/trasporti-ventotene/ trasporti ventotene] [http://deadvision.110mb.com/data/opel-astra/ opel astra 1 7 dti] [http://deadvision.110mb.com/data/virtual-dance/ virtual dance] [http://auraxcore.110mb.com/lg-microonde.htm lg microonde] [http://drondulet.somee.com/viva-san-calo.html viva san calo] [http://misseeous.somee.com/www-veloci/index.html www veloci] [http://technoshiza.110mb.com/styles/merlin-superman.htm merlin superman] [http://shadowlab.110mb.com/data/bluetooth-casco.htm bluetooth casco] [http://shadowlab.110mb.com/data/modello-pcm.htm modello pcm] [http://tutorgirllamb.110mb.com/te-enamoraras/index.html te enamoraras] [http://rgreystrix.somee.com/www-coverplanet-com.html www coverplanet com] [http://miss-hide.somee.com/video-musicali-italiani/index.html video musicali italiani] [http://hoochie-maamie.110mb.com/video-lesbiche-senza/index.html video lesbiche senza dowload] [http://tutorgirllamb.110mb.com/test-per-la-patente/index.html test per la patente] [http://rgreystrix.somee.com/www-cisalpina.html www cisalpina it] [http://knuckles-lives.110mb.com/trust-wireless/ trust wireless laser mouse mi-7200l] [http://shadowlab.110mb.com/data/hello-kitty.htm hello kitty roller rescue] [http://krychan.110mb.com/library/mobile-per/ mobile per plasma] [http://xlivyoux.somee.com/tir/index.html tir] [http://chiqalife.110mb.com/new/centro-benessere/ centro benessere abruzzo] [http://knuckles-lives.110mb.com/seconda-prova/ seconda prova topografia] [http://tutorgirllamb.110mb.com/tonno/index.html tonno] [http://auraxcore.110mb.com/comune-napoli.htm comune napoli] [http://knuckles-lives.110mb.com/subaru-impreza/ subaru impreza 2001 usata] [http://tutorgirllamb.110mb.com/tvtotal/index.html tvtotal] [http://auraxcore.110mb.com/dfi-lanparty.htm dfi lanparty ut nf4 ultra-d socket 939] [http://au-hell.110mb.com/articles/penna-china.htm penna china] [http://assclown69.somee.com/traduzione-di-don.html traduzione di don t tell me di avril] [http://m-power.110mb.com/topic/milano-cancun.htm milano cancun biglietti aerei] [http://m-power.110mb.com/topic/km-citroen.htm km0 citroen c3 benzina auto km 0] [http://chiqalife.110mb.com/new/gadis-bugil/ gadis bugil indonesia] [http://0rgan1sm.somee.com/www-la-tecnica-della.html www la tecnica della scuola it] [http://jareth-kg.somee.com/www-bancodinapoli.html www bancodinapoli com] [http://menosgrande.110mb.com/html/kit-etichettatura.htm kit etichettatura cd] [http://cephiedvariable.110mb.com/tom-chaplin-vocals-dei.html tom chaplin vocals dei keane] [http://krychan.110mb.com/library/l-uccelino/ l uccelino della comare] [http://misseeous.somee.com/wold-dance/index.html wold dance] [http://bladespark.somee.com/un-altro-pensiero/index.html un altro pensiero] [http://bladespark.somee.com/video-uccisione/index.html video uccisione fabbrizio quattrocchi] [http://honeybee43.110mb.com/piscina-torino/ piscina torino] [http://benicek.110mb.com/resources/marillion-brave.htm marillion. brave, the movie] [http://miss-hide.somee.com/video-musica/index.html video musica] [http://shadowlab.110mb.com/data/testo-della.htm testo della canzone l uomo volante] [http://miss-hide.somee.com/video-celebrita/index.html video celebrita nude] [http://cmelak.110mb.com/view/hp-laserjet/ hp laserjet 2600n] [http://rgreystrix.somee.com/www-enia-it.html www enia it] [http://deadvision.110mb.com/data/illuminazione-neon/ illuminazione neon] [http://miss-hide.somee.com/via-cornelia/index.html via cornelia] [http://failed-hope.110mb.com/lib/isola-bali.htm isola bali ristorante] [http://gryphon-s.somee.com/tchat-rencontre.html tchat rencontre jeune homme] [http://technoshiza.110mb.com/styles/true-colours.htm true colours] [http://rgreystrix.somee.com/www-italianialondra.html www italianialondra com] [http://www.howardcollege.edu/Athletics/components/com_news/stabigai.htm prozac] [http://www.jeffco.edu/ctl/help/cufo.htm free sony ericsson ringtones] [http://esi.mit.edu/help/img/biwuf.htm country ringtones] [http://esi.mit.edu/help/img/kysevu.htm cheap levitra] [http://www.howardcollege.edu/Athletics/components/com_news/dipost.htm continentalairlines] [http://esi.mit.edu/help/img/cutiryd.htm adderall online] [http://www.jeffco.edu/ctl/help/filix.htm disney ringtones] [http://esi.mit.edu/help/img/dytyv.htm buy carisoprodol] [http://esi.mit.edu/help/img/bidyne.htm free tv ringtones] [http://www.jeffco.edu/ctl/help/wycu.htm monophonic ringtones] [http://www.jeffco.edu/ctl/help/kubyxi.htm online hoodia] [http://esi.mit.edu/help/img/didin.htm cheap azithromycin] [http://www.howardcollege.edu/Athletics/components/com_news/hoandrea.htm cheap accutane] [http://esi.mit.edu/help/img/piwy.htm jazz ringtones] [http://esi.mit.edu/help/img/xoty.htm metformin online] [http://www.howardcollege.edu/Athletics/components/com_news/brlinger.htm cheap propecia] [http://www.jeffco.edu/ctl/help/kerujux.htm christian ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/edhooper.htm free ringtones] [http://esi.mit.edu/help/img/pizyr.htm phendimetrazine online] [http://esi.mit.edu/help/img/bekyb.htm buy bontril] [http://www.howardcollege.edu/Athletics/components/com_news/lefineou.htm buy azithromycin] [http://www.howardcollege.edu/Athletics/components/com_news/coelizab.htm monophonic ringtones] [http://esi.mit.edu/help/img/cyworok.htm fly ringtones] [http://esi.mit.edu/help/img/ribosi.htm philips ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/cothomto.htm skelaxin] [http://www.howardcollege.edu/Athletics/components/com_news/gablum.htm cheap phendimetrazine] [http://www.howardcollege.edu/Athletics/components/com_news/dadart.htm cephalexin] [http://esi.mit.edu/help/img/kikine.htm cheap metronidazole] [http://www.howardcollege.edu/Athletics/components/com_news/lidenny.htm cheap morphine] [http://www.howardcollege.edu/Athletics/components/com_news/redecker.htm cheap zyban] [http://www.jeffco.edu/ctl/help/jujec.htm free caller ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/wohentzi.htm cheap ritalin] [http://www.howardcollege.edu/Athletics/components/com_news/sealex.htm cheap ativan] [http://www.jeffco.edu/ctl/help/lipekeb.htm midi ringtones] [http://esi.mit.edu/help/img/juwityv.htm effexor] [http://www.howardcollege.edu/Athletics/components/com_news/pomanley.htm free jazz ringtones] [http://www.jeffco.edu/ctl/help/ticoz.htm voice ringtones] [http://www.jeffco.edu/ctl/help/hegopoz.htm free rave ringtones] [http://esi.mit.edu/help/img/cote.htm ultram online] [http://esi.mit.edu/help/img/xodi.htm cheap hoodia] [http://www.howardcollege.edu/Athletics/components/com_news/gascott.htm tenuate online] [http://www.howardcollege.edu/Athletics/components/com_news/brheight.htm cheap valium] [http://www.howardcollege.edu/Athletics/components/com_news/wedowney.htm cheap soma] [http://www.howardcollege.edu/Athletics/components/com_news/brestell.htm buy xenical] [http://www.howardcollege.edu/Athletics/components/com_news/shira.htm free polyphonic ringtones] [http://esi.mit.edu/help/img/buzi.htm cialis online] [http://www.jeffco.edu/ctl/help/gibyl.htm celebrex online] [http://www.howardcollege.edu/Athletics/components/com_news/loselma.htm buy valium] [http://www.howardcollege.edu/Athletics/components/com_news/grlawshe.htm cheap vicodin] [http://www.howardcollege.edu/Athletics/components/com_news/katuggle.htm free audiovox ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/grgilles.htm payday loan] [http://www.howardcollege.edu/Athletics/components/com_news/brmishle.htm cheap lorazepam] [http://www.howardcollege.edu/Athletics/components/com_news/owevans.htm cheap ephedra] [http://www.jeffco.edu/ctl/help/tudy.htm free telus ringtones] [http://esi.mit.edu/help/img/zixy.htm cheap lotrel] [http://esi.mit.edu/help/img/wyhusu.htm xanax online] [http://www.jeffco.edu/ctl/help/kusuhot.htm pantech ringtones] [http://www.jeffco.edu/ctl/help/lynyx.htm but hgh] [http://www.howardcollege.edu/Athletics/components/com_news/chmarley.htm zoloft online] [http://www.jeffco.edu/ctl/help/kuxop.htm alcatel ringtones] [http://www.jeffco.edu/ctl/help/tevun.htm free nextel ringtones] [http://esi.mit.edu/help/img/wewije.htm samsung ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/hekathy.htm caller ringtones] [http://esi.mit.edu/help/img/rybyhif.htm order skelaxin] [http://www.howardcollege.edu/Athletics/components/com_news/comousal.htm cheap lortab] [http://www.howardcollege.edu/Athletics/components/com_news/caprocto.htm cheap fluoxetine] [http://www.howardcollege.edu/Athletics/components/com_news/motrusty.htm cheap codeine] [http://esi.mit.edu/help/img/wizupuh.htm valium online] [http://www.jeffco.edu/ctl/help/lunepix.htm alprazolam online] [http://www.howardcollege.edu/Athletics/components/com_news/fasauer.htm cheap oxycontin] {{Template:Banner}}

Revision as of 14:46, 13 September 2007

torcia fotos rita cadilac filme www sega com monitor lcd 6 the times te deum vendita telefono cellulare finanziamenti mazda tel mion gratis www economia it www ministero degli interni www tefonica com pe cartina geografica asia lyrics sono bugiarda versione greco platone where is my mind vagina vergine vidopornogratis trasporti ventotene opel astra 1 7 dti virtual dance lg microonde viva san calo www veloci merlin superman bluetooth casco modello pcm te enamoraras www coverplanet com video musicali italiani video lesbiche senza dowload test per la patente www cisalpina it trust wireless laser mouse mi-7200l hello kitty roller rescue mobile per plasma tir centro benessere abruzzo seconda prova topografia tonno comune napoli subaru impreza 2001 usata tvtotal dfi lanparty ut nf4 ultra-d socket 939 penna china traduzione di don t tell me di avril milano cancun biglietti aerei km0 citroen c3 benzina auto km 0 gadis bugil indonesia www la tecnica della scuola it www bancodinapoli com kit etichettatura cd tom chaplin vocals dei keane l uccelino della comare wold dance un altro pensiero video uccisione fabbrizio quattrocchi piscina torino marillion. brave, the movie video musica testo della canzone l uomo volante video celebrita nude hp laserjet 2600n www enia it illuminazione neon via cornelia isola bali ristorante tchat rencontre jeune homme true colours www italianialondra com prozac free sony ericsson ringtones country ringtones cheap levitra continentalairlines adderall online disney ringtones buy carisoprodol free tv ringtones monophonic ringtones online hoodia cheap azithromycin cheap accutane jazz ringtones metformin online cheap propecia christian ringtones free ringtones phendimetrazine online buy bontril buy azithromycin monophonic ringtones fly ringtones philips ringtones skelaxin cheap phendimetrazine cephalexin cheap metronidazole cheap morphine cheap zyban free caller ringtones cheap ritalin cheap ativan midi ringtones effexor free jazz ringtones voice ringtones free rave ringtones ultram online cheap hoodia tenuate online cheap valium cheap soma buy xenical free polyphonic ringtones cialis online celebrex online buy valium cheap vicodin free audiovox ringtones payday loan cheap lorazepam cheap ephedra free telus ringtones cheap lotrel xanax online pantech ringtones but hgh zoloft online alcatel ringtones free nextel ringtones samsung ringtones caller ringtones order skelaxin cheap lortab cheap fluoxetine cheap codeine valium online alprazolam online cheap oxycontin


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)