Difference between revisions of "Booting from a USB Thumbdrive"

From AwkwardTV
Jump to: navigation, search
m
Line 1: Line 1:
[http://goer.freehostia.com/description/ostr.htm ostr 2004] [http://www.devochek.pop3.ru/directory/il-vestito.htm il vestito di dolce gabbana] [http://ohvoice.125mb.com/web/cerco-orientali/ cerco orientali] [http://evbailly.125mb.com/marcus-viana/ marcus viana] [http://cyclique.freehostia.com/content/film-cinema/ film cinema da scaricar gratis] [http://midnightbrave.freehostia.com/abbigliamento-produzione/ abbigliamento produzione] [http://www.wylt.pop3.ru/louis-prima/ louis prima the wildest] [http://chistovskaya.freehostia.com/topic/acer15/ acer 2500] [http://souya.freehostia.com/small/duncan-from.htm duncan from blue] [http://souya.freehostia.com/small/ukrainian.htm ukrainian] [http://limepink.h18.ru/small/olympus-fotocamere.htm olympus fotocamere] [http://www.sunny-may.pop3.ru/resources/calzature-all/ calzature all star] [http://goer.freehostia.com/description/sibari-golf.htm sibari golf village] [http://timo-kiev.freehostia.com/film-pamela.htm film pamela anderson] [http://limepink.h18.ru/small/regione-italia.htm regione italia] [http://keniff.125mb.com/topic/mivar-slim.htm mivar slim] [http://moniqueleigh.freehostia.com/data/cordless-siemens3/ cordless siemens sl 100] [http://timo-kiev.freehostia.com/mini-cabriolet.htm mini cabriolet] [http://bachenau.125mb.com/farcade.htm farcade] [http://www.tjmclean84.pop3.ru/web/diva-everybody/ diva everybody move your body] [http://krazykat1187.freehostia.com/description/risparmio-rca/ risparmio rca auto] [http://cashdolla.h18.ru/resources/lexmark-x.htm lexmark x1170] [http://taedward.125mb.com/description/bill-il/ bill il bandito] [http://hehayfor.125mb.com/styles/tarjetas-shoshan/ tarjetas shoshan] [http://www.wylt.pop3.ru/code-num/ code num] [http://www.sturuntsev.pop3.ru/articles/peugeot-/ peugeot 206 xs 14] [http://ramangel.125mb.com/topic/bellsouth-net.htm bellsouth net] [http://ruwilhel.125mb.com/resources/salvatore-pugliatti.htm salvatore pugliatti] [http://biwittic.125mb.com/sony-dcr/ sony dcr hc20e] [http://hehayfor.125mb.com/styles/houellebcq/ houellebcq] [http://www.rei794.pop3.ru/articles/anzini-monia.htm anzini monia] [http://moniqueleigh.freehostia.com/data/anello-breil/ anello breil] [http://rimarsh.125mb.com/topic/divise-croce/ divise croce rossa militare firenze] [http://midnightbrave.freehostia.com/serenissima-dj/ serenissima dj tommy vee] [http://bachenau.125mb.com/funzionalismo.htm funzionalismo] [http://prihodnaja.pop3.ru/data/hasta-la/ hasta la camisa] [http://maross.125mb.com/library/immaggini-cucinotta.htm immaggini cucinotta] [http://midnightbrave.freehostia.com/fax-samsung2/ fax samsung laser] [http://ohvoice.125mb.com/web/virtualdj/ virtualdj] [http://midnightbrave.freehostia.com/dvd-divx5/ dvd divx xx] [http://krazykat1187.freehostia.com/description/nokia-94/ nokia 7210 batteria bld3] [http://biwittic.125mb.com/masterizzatore-dvd/ masterizzatore dvd prezzo] [http://evbailly.125mb.com/n-c/ n c c p] [http://www.prairiesky.pop3.ru/view/fosfatasi-alcalina/ fosfatasi alcalina] [http://midnightbrave.freehostia.com/splinter-cell5/ splinter cell chaos theory  trailer] [http://ramangel.125mb.com/topic/hp-photo.htm hp photo paper premium plus] [http://bachenau.125mb.com/canaline.htm canaline] [http://midnightbrave.freehostia.com/debi/ debi 88] [http://krazykat1187.freehostia.com/description/testo-italiano11/ testo italiano trick me] [http://gor22011978.pop3.ru/articles/via-condotti/ via condotti] [http://prihodnaja.pop3.ru/data/magnex-hard/ magnex hard disk sd] [http://goer.freehostia.com/description/my-pal1.htm my pal a620] [http://souya.freehostia.com/small/mortgage-loan.htm mortgage loan] [http://biwittic.125mb.com/don-cry/ don cry for me argentina] [http://taedward.125mb.com/description/schrei-nach/ schrei nach] [http://evbailly.125mb.com/inferno-nel/ inferno nel penitenziario] [http://biwittic.125mb.com/the-cult/ the cult music without fear live from the grand olympic auditorium los angeles] [http://www.anafema-device.pop3.ru/view/n-/ n 7001 polsat] [http://svinka.h18.ru/content/fiat-punto.htm fiat punto 90 3p sporting] [http://ramangel.125mb.com/topic/frigorifero.htm frigorifero] [http://goer.freehostia.com/description/frigoriferi-classe2.htm frigoriferi classe a lg] [http://cyclique.freehostia.com/content/video-kevin/ video kevin little] [http://www.wylt.pop3.ru/stampanti-hp/ stampanti hp fax] [http://www.anafema-device.pop3.ru/view/nair-shine/ nair shine on now] [http://suhorne.125mb.com/foto-barche/ foto barche] [http://chistovskaya.freehostia.com/topic/kodak5/ kodak 753] [http://www.sturuntsev.pop3.ru/articles/mintransporte/ mintransporte] [http://kalahiet.125mb.com/articles/de-aloe/ de aloe costruzioni srl] [http://cashdolla.h18.ru/resources/unita-di.htm unita di misura terreni agricoli] [http://cyclique.freehostia.com/content/quando-nel/ quando nel mio juke box] [http://www.shadowthecatslj.pop3.ru/data/dvd-vasco/ dvd vasco] [http://www.kitten130999.pop3.ru/view/satellite-pci.htm satellite pci express] [http://suhorne.125mb.com/dvx-copertine/ dvx copertine] [http://www.aneta-spb.pop3.ru/blog/tesine-per.htm tesine per esami] [http://www.shadowthecatslj.pop3.ru/data/u-rattle/ u2 rattle and hum] [http://cyclique.freehostia.com/content/la-strano/ la strano percorso] [http://souya.freehostia.com/small/la-terra3.htm la terra del desiderio] [http://kalahiet.125mb.com/articles/conformita-magazzino/ conformita magazzino] [http://biwittic.125mb.com/laminate-shelves/ laminate shelves] [http://suhorne.125mb.com/tose-ledena/ tose ledena] [http://biwittic.125mb.com/curtains-fall/ curtains fall blue] [http://cashdolla.h18.ru/resources/fox-calendario.htm fox calendario 2005] [http://ruwilhel.125mb.com/resources/download-video.htm download video maradona] [http://www.kitten130999.pop3.ru/view/pneumatica-.htm pneumatica  impianti e utensili] [http://moniqueleigh.freehostia.com/data/rina-sakamoto/ rina sakamoto] [http://www.terry-a-boot.pop3.ru/content/franck-pourcel/ franck pourcel] [http://prihodnaja.pop3.ru/data/karleusa-za/ karleusa za tvoje oci] [http://moniqueleigh.freehostia.com/data/navigatori-moto/ navigatori moto] [http://moviemania0.h18.ru/techna/ techna 90] [http://moniqueleigh.freehostia.com/data/smart1/ smart 2001] [http://www.sturuntsev.pop3.ru/articles/jetflash-driver/ jetflash driver] [http://moniqueleigh.freehostia.com/data/colorado-charlie/ colorado charlie] [http://biwittic.125mb.com/hp-deskjet/ hp deskjet 6540] [http://cashdolla.h18.ru/resources/zmc.htm zmc] [http://souya.freehostia.com/small/eye-toy2.htm eye toy ps2] [http://www.sunny-may.pop3.ru/resources/il-ponte/ il ponte dei sospiri] [http://chistovskaya.freehostia.com/topic/asus-axpro/ asus ax800pro] [http://ramangel.125mb.com/topic/dnb-mp.htm dnb mp3] [http://moviemania0.h18.ru/haiducii-o/ haiducii o zone] [http://hehayfor.125mb.com/styles/gemelli-diversi/ gemelli diversi tu no] [http://www.startonlineweb.com/help/new/wilgvk.html Capelli fotografie tagli] [http://www.startonlineweb.com/help/new/acgwqq.html Gemma atkinson] [http://www.worthwhilehosting.com/banners/auto/llpske.html Cosmetico on line] [http://www.hiidenkivenpaivakoti.fi/help/new/oatebt.html Piccola stella senza cielo] [http://www.startonlineweb.com/help/new/pomoto.html Tatuaggi indiani] [http://www.hiidenkivenpaivakoti.fi/help/new/hwkvep.html Clubmobile it] [http://www.startonlineweb.com/help/new/gmripu.html Numismatica moneta collezione prestito] [http://www.hiidenkivenpaivakoti.fi/help/new/cwuwdc.html Porno teen] [http://www.hiidenkivenpaivakoti.fi/help/new/vnnomu.html Porno pelose] [http://www.hiidenkivenpaivakoti.fi/help/new/qlcgfd.html Asta online sardegna] [http://www.worthwhilehosting.com/banners/auto/mnfpre.html Marzamemi] [http://www.startonlineweb.com/help/new/cqbljd.html How to make female squirt] [http://www.startonlineweb.com/help/new/wcpiph.html Stanza affitto roma] [http://www.worthwhilehosting.com/banners/auto/iukkbi.html Etnapolis] [http://www.startonlineweb.com/help/new/mvopac.html Centralino isdn] [http://www.hiidenkivenpaivakoti.fi/help/new/mtwqle.html Felixxx imgsrc] [http://www.ccrs.uzh.ch/user/root/omemax.html Batteria panasonic fz5] [http://www.startonlineweb.com/help/new/bubqdh.html Garage flooring] [http://www.worthwhilehosting.com/banners/auto/lofwri.html Helen svedin] [http://www.worthwhilehosting.com/banners/auto/vioomj.html Fantacalcio] [http://www.hiidenkivenpaivakoti.fi/help/new/uqtcer.html Muscle girls porn] [http://www.startonlineweb.com/help/new/ehrekc.html Contatti msn gay] [http://www.ccrs.uzh.ch/user/root/frusrv.html Smalville ita] [http://www.hiidenkivenpaivakoti.fi/help/new/paosbs.html Mare residence] [http://www.startonlineweb.com/help/new/drsrmj.html Hotel almounia casablanca] [http://www.ccrs.uzh.ch/user/root/pxpfax.html Amateur sex anal gratuit] [http://www.startonlineweb.com/help/new/bpkfnv.html Cesare pavese] [http://www.startonlineweb.com/help/new/edbqbf.html Buy lortab] [http://www.startonlineweb.com/help/new/wtpgcs.html Midi vanbasco] [http://www.ccrs.uzh.ch/user/root/ipjmjx.html Zeroassoluto] [http://www.startonlineweb.com/help/new/pwbsci.html Elettrostimolatori tesmed] [http://www.hiidenkivenpaivakoti.fi/help/new/ajduoi.html Tunisia blu vacanza] [http://www.startonlineweb.com/help/new/catciv.html Albergo salerno] [http://www.worthwhilehosting.com/banners/auto/pumuxo.html Asia dargento] [http://www.startonlineweb.com/help/new/evvedv.html Fumetti porno gratis] [http://www.worthwhilehosting.com/banners/auto/dlpmph.html Sabbiatrici] [http://www.worthwhilehosting.com/banners/auto/tndxjh.html Ludovica] [http://www.startonlineweb.com/help/new/bmssde.html Concessionaria fiat in piemonte] [http://www.startonlineweb.com/help/new/ffxlkc.html Ingrosso bigiotteria] [http://www.startonlineweb.com/help/new/sgvupk.html Foto gabriella pession] [http://www.startonlineweb.com/help/new/mvplhx.html Giglian pornostar] [http://www.startonlineweb.com/help/new/rumsjq.html Fotoannunci trans] [http://www.ccrs.uzh.ch/user/root/mvskvm.html Privata property sala midlands] [http://www.worthwhilehosting.com/banners/auto/cqtuvl.html Elettrostimolatore elettrode] [http://www.startonlineweb.com/help/new/mtgagn.html Super tetta gigante mondo] [http://www.ccrs.uzh.ch/user/root/hiuofl.html Pussy org porno] [http://www.hiidenkivenpaivakoti.fi/help/new/ccwwvr.html Angela melillo] [http://www.ccrs.uzh.ch/user/root/sesvai.html Cibo anticellulite] [http://www.startonlineweb.com/help/new/ospcea.html Saldatura gas] [http://www.ccrs.uzh.ch/user/root/homvsj.html leccate lesbiche] [http://www.startonlineweb.com/help/new/prlsku.html Tette e capezzoli] [http://www.hiidenkivenpaivakoti.fi/help/new/ombpus.html Il giornale] [http://www.worthwhilehosting.com/banners/auto/mvextt.html Albergo bristol] [http://www.worthwhilehosting.com/banners/auto/jtmnbm.html Agriturismo mare sicilia] [http://www.worthwhilehosting.com/banners/auto/xekiap.html Prestito san daniele del friuli] [http://www.hiidenkivenpaivakoti.fi/help/new/tqdihu.html Cum shot] [http://www.hiidenkivenpaivakoti.fi/help/new/bttsmg.html Immagini d amore] [http://www.worthwhilehosting.com/banners/auto/sqknrs.html Bungalow conero] [http://www.hiidenkivenpaivakoti.fi/help/new/jcphfr.html Fighe lesbiche] [http://www.startonlineweb.com/help/new/tadohm.html Antipasto] [http://www.startonlineweb.com/help/new/nsesrm.html Italian porno star it] [http://www.startonlineweb.com/help/new/oexmgw.html Piccoli elettrodomestico] [http://www.hiidenkivenpaivakoti.fi/help/new/wvfwvq.html Doujinshi hentai] [http://www.ccrs.uzh.ch/user/root/pmrmtq.html Shemale hardcore movie exclusive] [http://www.ccrs.uzh.ch/user/root/lrsadg.html Fighe giapponesi] [http://www.ccrs.uzh.ch/user/root/opbrws.html Upskirt per strada] [http://www.worthwhilehosting.com/banners/auto/orubtv.html Prurito alle gambe] [http://www.worthwhilehosting.com/banners/auto/uvnnvw.html Aereo volo] [http://www.startonlineweb.com/help/new/xvtfkb.html Inkjet printer] [http://www.ccrs.uzh.ch/user/root/nnkedm.html Vecchie scopate] [http://www.startonlineweb.com/help/new/lvqnhq.html Manpower it] [http://www.ccrs.uzh.ch/user/root/uwmpeo.html Affittacamere ponza] [http://www.startonlineweb.com/help/new/sjfaov.html Wwwamitie fr] [http://www.ccrs.uzh.ch/user/root/pjuqwv.html Immagini glitter] [http://www.ccrs.uzh.ch/user/root/qpqtra.html Penetrazione violente] [http://www.startonlineweb.com/help/new/puavxu.html Skipe telefono usb] [http://www.hiidenkivenpaivakoti.fi/help/new/cbudoo.html Kuoni it] [http://www.ccrs.uzh.ch/user/root/qnxrjq.html stampante epson stylus photo] [http://www.ccrs.uzh.ch/user/root/obnadu.html Supereroe] [http://www.worthwhilehosting.com/banners/auto/rbgjkw.html Vendita tenda campeggio] [http://www.ccrs.uzh.ch/user/root/tpbqfx.html Emoticons sex] [http://www.ccrs.uzh.ch/user/root/ktwsjr.html Lega calcio] [http://www.startonlineweb.com/help/new/vkvxep.html Torino promod] [http://www.ccrs.uzh.ch/user/root/llsemd.html Girls culotte] [http://www.worthwhilehosting.com/banners/auto/ixjntc.html Psice unibo it] [http://www.startonlineweb.com/help/new/isqjui.html Albergo 2 stella lisbona] [http://www.worthwhilehosting.com/banners/auto/bajlrc.html Ninfomani gratis] [http://www.startonlineweb.com/help/new/wmmupt.html Abito comunione] [http://www.worthwhilehosting.com/banners/auto/rscbmc.html Ainett stephens video] [http://www.hiidenkivenpaivakoti.fi/help/new/clnmkh.html Clistere] [http://www.startonlineweb.com/help/new/tgaoqm.html Misha barton porno] [http://www.worthwhilehosting.com/banners/auto/ihdlxb.html Albergo orvieto] [http://www.worthwhilehosting.com/banners/auto/ogcwjk.html Accompagnatrice bologna] [http://www.ccrs.uzh.ch/user/root/xmluqm.html Frasi celebre] [http://www.worthwhilehosting.com/banners/auto/fufovs.html Pressa piegatrice elettrica] [http://www.ccrs.uzh.ch/user/root/gbptgw.html Ronaldigno] [http://www.worthwhilehosting.com/banners/auto/mtgqjp.html Donne vogliose] [http://www.ccrs.uzh.ch/user/root/mhpogq.html Fotomontaggi nude famose] [http://www.worthwhilehosting.com/banners/auto/vjrntj.html Upskirt celebrit] [http://www.worthwhilehosting.com/banners/auto/opcdac.html Eros ramazzotti it] {{Template:Banner}}
+
{{Template:Banner}}
  
  

Revision as of 23:23, 21 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)