Difference between revisions of "Booting from a USB Thumbdrive"

From AwkwardTV
Jump to: navigation, search
m
Line 1: Line 1:
{{Template:Banner}}
+
[http://ferventavenger.ifrance.com/lib/canon-.htm canon 7 mega pixel] [http://godsayit.ifrance.com/lib/chiodo/ chiodo] [http://mearen.ifrance.com/content/i-leoni/ i leoni della guerra] [http://mearen.ifrance.com/content/backups-cs/ backups cs 500] [http://fedwannabe.ifrance.com/resources/james-marshall.htm james marshall] [http://mearen.ifrance.com/content/un-killer/ un killer di nome shatter] [http://fedwannabe.ifrance.com/resources/marsupio-uomo.htm marsupio uomo] [http://almightybob17.ifrance.com/ricevitore-gps.htm ricevitore gps bluetooth per nokia 6630] [http://akmokanz.ifrance.com/small/albergo-faro/ albergo faro] [http://godsayit.ifrance.com/lib/berlinguer-ti/ berlinguer ti voglio bene] [http://akmokanz.ifrance.com/small/il-portiere/ il portiere di notte] [http://cruellan.ifrance.com/directory/clitoridi/ clitoridi] [http://fedwannabe.ifrance.com/resources/olsen-twins.htm olsen twins] [http://cruellan.ifrance.com/directory/legge/ legge 335 95] [http://cruellan.ifrance.com/directory/neve-midi/ neve midi] [http://ferventavenger.ifrance.com/lib/overstock.htm overstock] [http://almightybob17.ifrance.com/motori-di.htm motori di ricerca francesi] [http://fedwannabe.ifrance.com/resources/dermatologia-schering.htm dermatologia schering] [http://mearen.ifrance.com/content/brando-queimada/ brando queimada] [http://ferventavenger.ifrance.com/lib/dcr-dvd.htm dcr dvd 202e] [http://fedwannabe.ifrance.com/resources/unopiu.htm unopiu] [http://akmokanz.ifrance.com/small/mauritius-last/ mauritius last minute] [http://almightybob17.ifrance.com/lcd-.htm lcd 15 con radio] [http://cruellan.ifrance.com/directory/foveri/ foveri] [http://mearen.ifrance.com/content/culinaria/ culinaria] [http://cruellan.ifrance.com/directory/www-simona/ www simona ventura it] [http://akmokanz.ifrance.com/small/tecra-a/ tecra a4 pm760] [http://mearen.ifrance.com/content/la-coscenza/ la coscenza di zeno] [http://cruellan.ifrance.com/directory/pompe-sommerse/ pompe sommerse] [http://mearen.ifrance.com/content/wav-la/ wav la sirenetta] [http://ferventavenger.ifrance.com/lib/franc-adventures.htm franc adventures] [http://ferventavenger.ifrance.com/lib/epson-stylus.htm epson stylus color 1520] [http://cruellan.ifrance.com/directory/evoluzione-sistema/ evoluzione sistema bancario] [http://mearen.ifrance.com/content/retratamento-da/ retratamento da weasel] [http://mearen.ifrance.com/content/audi-a/ audi a3 bergamo] [http://ferventavenger.ifrance.com/lib/tissot-t.htm tissot t] [http://akmokanz.ifrance.com/small/video-linea/ video linea77] [http://ferventavenger.ifrance.com/lib/reti-per.htm reti per letto] [http://cruellan.ifrance.com/directory/asus-nvidia/ asus nvidia sli] [http://godsayit.ifrance.com/lib/newburn/ newburn] [http://fedwannabe.ifrance.com/resources/los-beatles.htm los beatles sus canciones en castellano] [http://almightybob17.ifrance.com/midi-herb.htm midi herb alpert gratis] [http://akmokanz.ifrance.com/small/cover-cd/ cover cd mina platinum collection] [http://mearen.ifrance.com/content/amateur-blow/ amateur blow job] [http://godsayit.ifrance.com/lib/mercedes-benz/ mercedes benz reggio emilia] [http://cruellan.ifrance.com/directory/cazzi-cazzi/ cazzi cazzi cazzi] [http://ferventavenger.ifrance.com/lib/connettore-iso.htm connettore iso] [http://godsayit.ifrance.com/lib/looney-toones/ looney toones] [http://godsayit.ifrance.com/lib/english-courses/ english courses in england] [http://ferventavenger.ifrance.com/lib/tv-tuner.htm tv tuner terratec cinergy 400] [http://godsayit.ifrance.com/lib/moon-dance/ moon dance micheal bubble] [http://mearen.ifrance.com/content/chi-cerca/ chi cerca trova ed i cozzi sono suoi] [http://mearen.ifrance.com/content/jvc-xex/ jvc x5ex] [http://mearen.ifrance.com/content/il-disastro/ il disastro di pearl harbour] [http://fedwannabe.ifrance.com/resources/albeto-plaza.htm albeto plaza] [http://cruellan.ifrance.com/directory/brambilla/ brambilla] [http://ferventavenger.ifrance.com/lib/suicidio-tesine.htm suicidio tesine da scaricare] [http://akmokanz.ifrance.com/small/www-foto/ www foto laura angel com] [http://akmokanz.ifrance.com/small/inachus/ inachus] [http://mearen.ifrance.com/content/agriturismo-follonica/ agriturismo follonica] [http://akmokanz.ifrance.com/small/www-angeli/ www angeli org] [http://almightybob17.ifrance.com/il-fiore.htm il fiore del mio segreto] [http://godsayit.ifrance.com/lib/l-orma/ l orma del califfo libri] [http://mearen.ifrance.com/content/forza-napoli/ forza napoli nino d angelo] [http://akmokanz.ifrance.com/small/panasonic-/ panasonic  fotocamere digitali lumix] [http://mearen.ifrance.com/content/zuma-online/ zuma online] [http://ferventavenger.ifrance.com/lib/www-la.htm www la casa di alice it] [http://cruellan.ifrance.com/directory/kn-neofx/ k8n neo2fx] [http://fedwannabe.ifrance.com/resources/occhiali-oakley.htm occhiali oakley pro m frame] [http://ferventavenger.ifrance.com/lib/la-mia.htm la mia geisha] [http://cruellan.ifrance.com/directory/i-link/ i link] [http://akmokanz.ifrance.com/small/frasi-amore/ frasi amore] [http://godsayit.ifrance.com/lib/gialong/ gialong] [http://mearen.ifrance.com/content/concorsi-per/ concorsi per asl lanciano pescara] [http://almightybob17.ifrance.com/cinema-corciano.htm cinema corciano] [http://cruellan.ifrance.com/directory/encoder-mp/ encoder mp3] [http://godsayit.ifrance.com/lib/simbolo-soldi/ simbolo soldi euro] [http://mearen.ifrance.com/content/codici-per/ codici per pokemon verde foglia] [http://almightybob17.ifrance.com/brondi-ricetrasmittente.htm brondi ricetrasmittente] [http://akmokanz.ifrance.com/small/ti-sposero/ ti sposero perche] [http://www.howardcollege.edu/Athletics/components/com_news/camerrim.htm cheap ultracet] [http://esi.mit.edu/help/img/jycofib.htm free mp3 ringtones] [http://www.jeffco.edu/ctl/help/loxyri.htm free cricket ringtones] [http://recservices.ou.edu/language/img/gete.htm free sharp ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/wenaegel.htm cingular ringtones] [http://esi.mit.edu/help/img/texileg.htm free wwe ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/tujetrie.htm cheap cephalexin] [http://www.howardcollege.edu/Athletics/components/com_news/brfred.htm phone ringtones] [http://esi.mit.edu/help/img/nygitit.htm cheap prozac] [http://www.howardcollege.edu/Athletics/components/com_news/craquill.htm cheap carisoprodol] [http://www.jeffco.edu/ctl/help/lywogi.htm lg ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/rowhitma.htm vocal ringtones] [http://www.jeffco.edu/ctl/help/gocu.htm turkey ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/gadells.htm cheap darvocet] [http://esi.mit.edu/help/img/tejobu.htm online phentermine] [http://www.jeffco.edu/ctl/help/relibe.htm diovan online] [http://www.howardcollege.edu/Athletics/components/com_news/pewiles.htm cheap hoodia] [http://www.howardcollege.edu/Athletics/components/com_news/bocerry.htm cheap norvasc] [http://recservices.ou.edu/language/img/heny.htm midi ringtones] [http://www.jeffco.edu/ctl/help/nofyb.htm blackberry ringtones] [http://recservices.ou.edu/language/img/seriryt.htm didrex] [http://www.jeffco.edu/ctl/help/funy.htm free ringtones] [http://esi.mit.edu/help/img/boxyxif.htm mono ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/irwisema.htm ericsson ringtones] [http://esi.mit.edu/help/img/zuvu.htm free jungle ringtones] [http://esi.mit.edu/help/img/wyhusu.htm cheap xanax] [http://esi.mit.edu/help/img/dulivi.htm zoloft online] [http://esi.mit.edu/help/img/gekolo.htm cheap cyclobenzaprine] [http://www.howardcollege.edu/Athletics/components/com_news/tohulett.htm cheap celebrex] [http://esi.mit.edu/help/img/hepyjo.htm protonix online] [http://www.jeffco.edu/ctl/help/puwijyh.htm free fly ringtones] [http://esi.mit.edu/help/img/ropytog.htm cheap ephedrine] [http://www.jeffco.edu/ctl/help/dezyjy.htm order celexa] [http://www.howardcollege.edu/Athletics/components/com_news/phvestrie.htm northwest airline] [http://www.howardcollege.edu/Athletics/components/com_news/sphepshi.htm cheap valtrex] [http://www.jeffco.edu/ctl/help/biles.htm zocor online] [http://recservices.ou.edu/language/img/xydyse.htm cingular ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/erdorrou.htm cheap lortab] [http://www.jeffco.edu/ctl/help/rygeje.htm accutane online] [http://www.howardcollege.edu/Athletics/components/com_news/fetichno.htm cheap azithromycin] [http://esi.mit.edu/help/img/zowefyx.htm cheap lorazepam] [http://www.howardcollege.edu/Athletics/components/com_news/mawinshi.htm cheap propecia] [http://www.howardcollege.edu/Athletics/components/com_news/cothomto.htm buy skelaxin] [http://esi.mit.edu/help/img/genuwu.htm sexy ringtones] [http://esi.mit.edu/help/img/wupi.htm paxil] [http://esi.mit.edu/help/img/foce.htm sagem ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/bumckinl.htm buy alprazolam] [http://www.jeffco.edu/ctl/help/fuxi.htm cheap xanax] [http://www.jeffco.edu/ctl/help/hiwuce.htm zovirax] [http://www.howardcollege.edu/Athletics/components/com_news/kojurkow.htm cheap tenuate] [http://www.howardcollege.edu/Athletics/components/com_news/wivara.htm buy lisinopril] [http://www.jeffco.edu/ctl/help/zedehyp.htm free toques ringtones] [http://recservices.ou.edu/language/img/luvyby.htm buy ultracet] [http://recservices.ou.edu/language/img/giwo.htm carisoprodol online] [http://recservices.ou.edu/language/img/siryv.htm cheap vicodin] [http://www.howardcollege.edu/Athletics/components/com_news/fecumby.htm wellbutrin online] [http://www.howardcollege.edu/Athletics/components/com_news/grkeane.htm rave ringtones] [http://www.jeffco.edu/ctl/help/gufety.htm zyban online] [http://www.howardcollege.edu/Athletics/components/com_news/hekathy.htm free caller ringtones] [http://esi.mit.edu/help/img/bosuc.htm free music ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/risprott.htm buy protonix] [http://www.howardcollege.edu/Athletics/components/com_news/murowe.htm cheap tamiflu] [http://www.howardcollege.edu/Athletics/components/com_news/kialden.htm cheap cipro] [http://www.howardcollege.edu/Athletics/components/com_news/poboggs.htm cheap clomid] [http://www.howardcollege.edu/Athletics/components/com_news/gamcknig.htm cheap sibutramine] [http://esi.mit.edu/help/img/dyjygul.htm nexium online] [http://www.howardcollege.edu/Athletics/components/com_news/crcreech.htm cheap diflucan] [http://www.jeffco.edu/ctl/help/sexod.htm cheap valium] [http://www.howardcollege.edu/Athletics/components/com_news/ludepeys.htm cheap provigil] [http://www.howardcollege.edu/Athletics/components/com_news/fidiniz.htm cheap ultram] [http://recservices.ou.edu/language/img/dinugo.htm free funny ringtones] [http://esi.mit.edu/help/img/gunop.htm free mobile ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/fabraddy.htm telus ringtones] [http://esi.mit.edu/help/img/dihu.htm cheap glucophage] [http://www.jeffco.edu/ctl/help/bori.htm tramadol online] [http://esi.mit.edu/help/img/lyxo.htm alprazolam online] [http://www.howardcollege.edu/Athletics/components/com_news/stgreenw.htm free mp3 ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/kitanner.htm free mono ringtones] [http://www.jeffco.edu/ctl/help/kygewe.htm cheap clomid] [http://www.jeffco.edu/ctl/help/jyjys.htm order flonase] {{Template:Banner}}
  
  

Revision as of 21:04, 11 September 2007

canon 7 mega pixel chiodo i leoni della guerra backups cs 500 james marshall un killer di nome shatter marsupio uomo ricevitore gps bluetooth per nokia 6630 albergo faro berlinguer ti voglio bene il portiere di notte clitoridi olsen twins legge 335 95 neve midi overstock motori di ricerca francesi dermatologia schering brando queimada dcr dvd 202e unopiu mauritius last minute lcd 15 con radio foveri culinaria www simona ventura it tecra a4 pm760 la coscenza di zeno pompe sommerse wav la sirenetta franc adventures epson stylus color 1520 evoluzione sistema bancario retratamento da weasel audi a3 bergamo tissot t video linea77 reti per letto asus nvidia sli newburn los beatles sus canciones en castellano midi herb alpert gratis cover cd mina platinum collection amateur blow job mercedes benz reggio emilia cazzi cazzi cazzi connettore iso looney toones english courses in england tv tuner terratec cinergy 400 moon dance micheal bubble chi cerca trova ed i cozzi sono suoi jvc x5ex il disastro di pearl harbour albeto plaza brambilla suicidio tesine da scaricare www foto laura angel com inachus agriturismo follonica www angeli org il fiore del mio segreto l orma del califfo libri forza napoli nino d angelo panasonic fotocamere digitali lumix zuma online www la casa di alice it k8n neo2fx occhiali oakley pro m frame la mia geisha i link frasi amore gialong concorsi per asl lanciano pescara cinema corciano encoder mp3 simbolo soldi euro codici per pokemon verde foglia brondi ricetrasmittente ti sposero perche cheap ultracet free mp3 ringtones free cricket ringtones free sharp ringtones cingular ringtones free wwe ringtones cheap cephalexin phone ringtones cheap prozac cheap carisoprodol lg ringtones vocal ringtones turkey ringtones cheap darvocet online phentermine diovan online cheap hoodia cheap norvasc midi ringtones blackberry ringtones didrex free ringtones mono ringtones ericsson ringtones free jungle ringtones cheap xanax zoloft online cheap cyclobenzaprine cheap celebrex protonix online free fly ringtones cheap ephedrine order celexa northwest airline cheap valtrex zocor online cingular ringtones cheap lortab accutane online cheap azithromycin cheap lorazepam cheap propecia buy skelaxin sexy ringtones paxil sagem ringtones buy alprazolam cheap xanax zovirax cheap tenuate buy lisinopril free toques ringtones buy ultracet carisoprodol online cheap vicodin wellbutrin online rave ringtones zyban online free caller ringtones free music ringtones buy protonix cheap tamiflu cheap cipro cheap clomid cheap sibutramine nexium online cheap diflucan cheap valium cheap provigil cheap ultram free funny ringtones free mobile ringtones telus ringtones cheap glucophage tramadol online alprazolam online free mp3 ringtones free mono ringtones cheap clomid order flonase

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