Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
m (Spam-A-Licious)
m
Line 1: Line 1:
== Overview==
+
[http://oiyaoi.ifrance.com/images/small/hard-disk/ hard disk esterno sitecom 200] [http://voltia.ifrance.com/content/view/soluzioni-per.htm soluzioni per giochi per playstation1] [http://tizolaa.ifrance.com/web/kebnekaise/ kebnekaise] [http://oiyaoi.ifrance.com/images/small/chicas-orno/ chicas orno] [http://broadwaylili.ifrance.com/content/view/smeg-frigoriferi.htm smeg frigoriferi anni 50] [http://toofarfrommaybe.ifrance.com/view/new/nero-mpeg/ nero mpeg2 plugins] [http://demurediablo.ifrance.com/library/html/gay-friuli/ gay friuli venezia giulia] [http://tat-ooin.ifrance.com/resources/articles/donna-arrapata.htm donna arrapata] [http://voltia.ifrance.com/content/view/mina-sorvino.htm mina sorvino] [http://lovereceier.ifrance.com/lib/www-scandicci.htm www scandicci it] [http://lovereceier.ifrance.com/lib/zecchino.htm zecchino 41] [http://oiyaoi.ifrance.com/images/small/testo-pussycat/ testo pussycat dolls] [http://kalian42.ifrance.com/text/directory/anime-nella/ anime nella tormenta] [http://lordsander.ifrance.com/topic/cardenal-ernesto.htm cardenal, ernesto] [http://kalian42.ifrance.com/text/directory/televisori-al/ televisori al plasma phocus 42] [http://kalian42.ifrance.com/text/directory/roma-boa/ roma boa vista (capo verde) biglietti] [http://broadwaylili.ifrance.com/content/view/telesystem-parabola.htm telesystem parabola parabole] [http://igaros.ifrance.com/lib/portland/ portland] [http://igaros.ifrance.com/lib/vasco-rossi/ vasco rossi un senso mp3 da scaricare] [http://jdawsona.ifrance.com/data/udine-maglieria/ udine maglieria] [http://jdawsona.ifrance.com/data/telefoni-tre/ telefoni tre band] [http://oiyaoi.ifrance.com/images/small/le-due/ le due torri] [http://yeeden.ifrance.com/img/styles/moto-mondiale/ moto mondiale gp] [http://tizolaa.ifrance.com/web/composito-monitor/ composito monitor] [http://noxuhax.ifrance.com/content/view/caravan-rock.htm caravan rock band] [http://tat-ooin.ifrance.com/resources/articles/poljubac.htm poljubac] [http://yeeden.ifrance.com/img/styles/ruff-riders/ ruff riders anthem] [http://lovereceier.ifrance.com/lib/memoria-acer.htm memoria acer travelmate] [http://demurediablo.ifrance.com/library/html/calatrava-architetto/ calatrava architetto] [http://demurediablo.ifrance.com/library/html/lavastoviglia-rex/ lavastoviglia rex] [http://oiyaoi.ifrance.com/images/small/stampanti-laser/ stampanti laser colore epson c1100] [http://girlwho-is.ifrance.com/img/styles/maron-monika.htm maron, monika] [http://demurediablo.ifrance.com/library/html/ruslana-ladosi/ ruslana ladosi] [http://voltia.ifrance.com/content/view/happy-hentai.htm happy hentai] [http://jdawsona.ifrance.com/data/no-mercenaria/ no mercenaria] [http://jdawsona.ifrance.com/data/www-ministero/ www ministero istruzione padova] [http://oiyaoi.ifrance.com/images/small/profiteroles-ricetta/ profiteroles ricetta] [http://tat-ooin.ifrance.com/resources/articles/cyp.htm cyp] [http://oiyaoi.ifrance.com/images/small/planeta/ planeta] [http://toofarfrommaybe.ifrance.com/view/new/v-ideo/ v ideo] [http://igaros.ifrance.com/lib/tolentino-trattato/ tolentino, trattato di] [http://girlwho-is.ifrance.com/img/styles/roberto-cavalli.htm roberto cavalli orologi] [http://deviantrus.ifrance.com/topic/vigile-fuoco/ vigile fuoco it] [http://demurediablo.ifrance.com/library/html/ipod-mini/ i-pod mini 4 gb] [http://oiyaoi.ifrance.com/images/small/il-decalogo/ il decalogo dieci] [http://singaporepets.ifrance.com/library/html/lacie-usb.htm lacie usb firewire] [http://yeeden.ifrance.com/img/styles/epson/ epson 74] [http://lordsander.ifrance.com/topic/toyota-rav.htm toyota rav 4 1996] [http://deviantrus.ifrance.com/topic/de-cine/ de cine mi e dor] [http://tat-ooin.ifrance.com/resources/articles/inoki-stili.htm inoki stili di joe] [http://oiyaoi.ifrance.com/images/small/ricevitore-tomtom/ ricevitore tomtom] [http://yeeden.ifrance.com/img/styles/www-bellsouth/ www bellsouth com au] [http://singaporepets.ifrance.com/library/html/immagini-bob.htm immagini bob marley] [http://broadwaylili.ifrance.com/content/view/rush-chronicles.htm rush. chronicles. the video collection] [http://tat-ooin.ifrance.com/resources/articles/chat-de.htm chat de parejas web] [http://jdawsona.ifrance.com/data/big-kahuna/ big kahuna reef] [http://demurediablo.ifrance.com/library/html/tornero/ tornero] [http://voltia.ifrance.com/content/view/alfa-romeo.htm alfa romeo 147 anno 2002] [http://oiyaoi.ifrance.com/images/small/video-da/ video da vedere] [http://demurediablo.ifrance.com/library/html/agenzia-immobiliare/ agenzia immobiliare a marina di massa] [http://deviantrus.ifrance.com/topic/mom-e/ mom e boy] [http://tizolaa.ifrance.com/web/windows-xp/ windows xp mediacenter oem] [http://girlwho-is.ifrance.com/img/styles/il-cacciatore.htm il cacciatore solitario] [http://toofarfrommaybe.ifrance.com/view/new/sederi-famosi/ sederi famosi] [http://jdawsona.ifrance.com/data/bd-company/ bd company] [http://voltia.ifrance.com/content/view/generatore-portatile.htm generatore portatile] [http://yeeden.ifrance.com/img/styles/digul/ digul] [http://akmokanzen.ifrance.com/images/small/computer-game.htm computer game online] [http://broadwaylili.ifrance.com/content/view/foto-ragazze.htm foto ragazze giovani] [http://singaporepets.ifrance.com/library/html/macroprotodon.htm macroprotodon] [http://broadwaylili.ifrance.com/content/view/samsung-premium.htm samsung premium multi] [http://lovereceier.ifrance.com/lib/i-bar.htm i bar] [http://speedofsoun.ifrance.com/text/directory/video-musical.htm video musical de chayanne] [http://lordsander.ifrance.com/topic/skapi.htm skapi] [http://highbulp.ifrance.com/images/small/nuovo-filmato/ nuovo filmato per imperial glory] [http://kalian42.ifrance.com/text/directory/poliziamunicipale-catania/ poliziamunicipale catania] [http://yeeden.ifrance.com/img/styles/kobra-di/ kobra di donatella rettore] [http://deviantrus.ifrance.com/topic/la-vera/ la vera storia di rosemarie] [http://toofarfrommaybe.ifrance.com/view/new/nike-/ nike - triax swift] [http://kalian42.ifrance.com/text/directory/rendi-ingerman/ rendi ingerman] [http://lovereceier.ifrance.com/lib/spidi.htm spidi] [http://broadwaylili.ifrance.com/content/view/un-matto.htm un matto, due matti, tutti matti] [http://highbulp.ifrance.com/images/small/lealy-nahary/ lealy nahary] [http://yeeden.ifrance.com/img/styles/jaguar-xtype/ jaguar x-type executive] [http://toofarfrommaybe.ifrance.com/view/new/eco-unicas/ eco unicas] [http://jdawsona.ifrance.com/data/crudele/ crudele] [http://broadwaylili.ifrance.com/content/view/sms-frase.htm sms frase] [http://tizolaa.ifrance.com/web/film-documentario/ film documentario pianeta blu barriere] [http://lordsander.ifrance.com/topic/she-is.htm she is so pretty] [http://girlwho-is.ifrance.com/img/styles/samsung-ml.htm samsung ml-2250] [http://deviantrus.ifrance.com/topic/lo-strano/ lo strano destino] [http://lovereceier.ifrance.com/lib/love-me.htm love me with all your heart] [http://oiyaoi.ifrance.com/images/small/affinita-zodiacale/ affinita zodiacale] [http://yeeden.ifrance.com/img/styles/langelo-del/ langelo del focolare] [http://deviantrus.ifrance.com/topic/sex-woman/ sex woman] [http://demurediablo.ifrance.com/library/html/immagini-egitto/ immagini egitto] [http://jdawsona.ifrance.com/data/vidio-musicali/ vidio musicali da scaricare] [http://yeeden.ifrance.com/img/styles/mano-armata/ mano armata] [http://lordsander.ifrance.com/topic/il-superuomo.htm il superuomo dannunziano] [http://oiyaoi.ifrance.com/images/small/telecomando-mivar/ telecomando mivar] [http://akmokanzen.ifrance.com/images/small/print-server.htm print server usb netgear] [http://igaros.ifrance.com/lib/hotel-viennese/ hotel viennese] [http://highbulp.ifrance.com/images/small/folletti-foto/ folletti foto disegni] [http://broadwaylili.ifrance.com/content/view/hotels-.htm hotels - italia] [http://jdawsona.ifrance.com/data/testina-canon/ testina canon s400 nero] [http://yeeden.ifrance.com/img/styles/el-grafico/ el grafico it] [http://highbulp.ifrance.com/images/small/o-mese/ o mese d e rrose] [http://noxuhax.ifrance.com/content/view/xstreamsat-tv.htm xstreamsat tv] [http://oiyaoi.ifrance.com/images/small/gestione-di/ gestione di rete] [http://voltia.ifrance.com/content/view/holliwood.htm holliwood] [http://lordsander.ifrance.com/topic/abbigliamento-rimini.htm abbigliamento rimini] [http://lovereceier.ifrance.com/lib/la-lega.htm la lega calcio in winning eleven 8] [http://speedofsoun.ifrance.com/text/directory/mercedes-classe.htm mercedes classe a 170] [http://speedofsoun.ifrance.com/text/directory/violencia-familiar.htm violencia familiar] [http://highbulp.ifrance.com/images/small/usb-/ usb 2 0 scheda pci] [http://toofarfrommaybe.ifrance.com/view/new/ventilatore-da/ ventilatore da soffitto vortice] [http://akmokanzen.ifrance.com/images/small/bel-danubio.htm bel danubio] [http://jdawsona.ifrance.com/data/caradura/ caradura] [http://speedofsoun.ifrance.com/text/directory/lettore-portatile.htm lettore portatile amstrad] [http://oiyaoi.ifrance.com/images/small/lara-tempestini/ lara tempestini] [http://yeeden.ifrance.com/img/styles/buste-vinili/ buste vinili] [http://lordsander.ifrance.com/topic/ska-p.htm ska p el gato] [http://lovereceier.ifrance.com/lib/infinity-classical.htm infinity classical] [http://toofarfrommaybe.ifrance.com/view/new/cartina-geografica/ cartina geografica] [http://voltia.ifrance.com/content/view/piatti-bicchieri.htm piatti bicchieri] [http://oiyaoi.ifrance.com/images/small/sofia-vicoveanca/ sofia vicoveanca] [http://lordsander.ifrance.com/topic/raw-punk.htm raw punk. vol. 02. even more bollocks] [http://girlwho-is.ifrance.com/img/styles/gf-annalisa.htm gf5 annalisa] [http://akmokanzen.ifrance.com/images/small/sigma-mm.htm sigma 105mm f 2 8 ex dg macro] [http://akmokanzen.ifrance.com/images/small/bamboo-bamboo.htm bamboo bamboo] [http://singaporepets.ifrance.com/library/html/netcrunch-premium.htm netcrunch premium] [http://oiyaoi.ifrance.com/images/small/ali-che/ ali che non tornano] [http://girlwho-is.ifrance.com/img/styles/michel-vieth.htm michel vieth porno] [http://deviantrus.ifrance.com/topic/we-re/ we re at the top of the world the juliana] [http://voltia.ifrance.com/content/view/mercedes-clk.htm mercedes clk 240] [http://singaporepets.ifrance.com/library/html/massaggiatore-collo.htm massaggiatore collo] [http://noxuhax.ifrance.com/content/view/ford-padova.htm ford padova] [http://jdawsona.ifrance.com/data/tawhid-wal/ tawhid wal jihad] [http://tizolaa.ifrance.com/web/mp-archos/ mp3 archos av120] [http://kalian42.ifrance.com/text/directory/gioco-della/ gioco della dama italiana] [http://broadwaylili.ifrance.com/content/view/www-google.htm www google es] [http://voltia.ifrance.com/content/view/palestra-doccia.htm palestra doccia] [http://jdawsona.ifrance.com/data/sospero/ sospero] [http://girlwho-is.ifrance.com/img/styles/ceolin-group.htm ceolin group] [http://toofarfrommaybe.ifrance.com/view/new/letras-musicales/ letras musicales] [http://lordsander.ifrance.com/topic/mita.htm mita 90] [http://deviantrus.ifrance.com/topic/mobile-giardino/ mobile giardino teak] [http://girlwho-is.ifrance.com/img/styles/rossignol.htm rossignol] [http://kalian42.ifrance.com/text/directory/aspire-wlmi/ aspire 3023wlmi] [http://kalian42.ifrance.com/text/directory/lettura-veloce/ lettura veloce] [http://tat-ooin.ifrance.com/resources/articles/eticheta.htm eticheta] [http://demurediablo.ifrance.com/library/html/ragazza-assago/ ragazza assago] [http://igaros.ifrance.com/lib/sapphire-x/ sapphire x800 agp] [http://yeeden.ifrance.com/img/styles/due-pantofole/ due pantofole e una ragazza] [http://voltia.ifrance.com/content/view/jeunes-minets.htm jeunes minets] [http://noxuhax.ifrance.com/content/view/asrock-kupgradevm.htm asrock k8upgrade-vm800 all] [http://kalian42.ifrance.com/text/directory/uomini-nudi/ uomini nudi con uomini nudi] [http://toofarfrommaybe.ifrance.com/view/new/valez/ valez] [http://igaros.ifrance.com/lib/krzysztof-zalewski/ krzysztof zalewski] [http://kalian42.ifrance.com/text/directory/scarpe-donna/ scarpe donna con tacco alto] [http://speedofsoun.ifrance.com/text/directory/ufficio-gubbio.htm ufficio gubbio] [http://demurediablo.ifrance.com/library/html/mp-accessori/ mp3 accessori per autoradio] [http://speedofsoun.ifrance.com/text/directory/jeans-bambino.htm jeans bambino] [http://akmokanzen.ifrance.com/images/small/racconti-dal.htm racconti dal ginecologo] [http://voltia.ifrance.com/content/view/porque-te.htm porque te vas jeanette] [http://lovereceier.ifrance.com/lib/panasonic-condizionatori.htm panasonic condizionatori e ventilatori] [http://tizolaa.ifrance.com/web/cocorito/ cocorito] [http://lordsander.ifrance.com/topic/whirlpool-.htm whirlpool - lavastoviglie] [http://broadwaylili.ifrance.com/content/view/cavo-adattatore.htm cavo adattatore audio rca jack] [http://toofarfrommaybe.ifrance.com/view/new/libreria-in/ libreria in ciliegio] [http://lordsander.ifrance.com/topic/rock-me.htm rock me amadeus] [http://demurediablo.ifrance.com/library/html/ati-/ ati 9550 schede video] [http://jdawsona.ifrance.com/data/scuole-marsala/ scuole marsala] [http://speedofsoun.ifrance.com/text/directory/acer-aspire.htm acer aspire 1801wsmi] [http://akmokanzen.ifrance.com/images/small/ragazzo-massa.htm ragazzo massa] [http://noxuhax.ifrance.com/content/view/stay-with.htm stay with me goran] [http://speedofsoun.ifrance.com/text/directory/moser-rex.htm moser rex] [http://lovereceier.ifrance.com/lib/www-pepsi.htm www pepsi com] [http://igaros.ifrance.com/lib/ponteggio-prefabbricato/ ponteggio prefabbricato telaio] [http://tat-ooin.ifrance.com/resources/articles/marina-del.htm marina del convento tropea] [http://igaros.ifrance.com/lib/musella/ musella] [http://oiyaoi.ifrance.com/images/small/grembiule-accessori/ grembiule accessori per la cucina] [http://lordsander.ifrance.com/topic/nikon-.htm nikon - coolpix 5200] [http://demurediablo.ifrance.com/library/html/webcam-logitech/ webcam logitech pro] [http://singaporepets.ifrance.com/library/html/www-sabervivir.htm www sabervivir es] [http://yeeden.ifrance.com/img/styles/ryanair-edimburgo/ ryanair edimburgo] [http://jdawsona.ifrance.com/data/router-ethernet/ router ethernet 4 porte adsl printserver] [http://tizolaa.ifrance.com/web/mario-bros/ mario bros e la spada magica] [http://noxuhax.ifrance.com/content/view/troppo-per.htm troppo per vivere, poco per morire] [http://tizolaa.ifrance.com/web/gioco-pc/ gioco pc videogames] [http://toofarfrommaybe.ifrance.com/view/new/lampadine-led/ lampadine led] [http://demurediablo.ifrance.com/library/html/herbal/ herbal] [http://tat-ooin.ifrance.com/resources/articles/assicurazione-auto.htm assicurazione auto economica] [http://girlwho-is.ifrance.com/img/styles/olympus-.htm olympus 6 1 megapixel] [http://yeeden.ifrance.com/img/styles/fuji-a/ fuji a330] [http://broadwaylili.ifrance.com/content/view/telefonini-alcatel.htm telefonini alcatel] [http://tat-ooin.ifrance.com/resources/articles/vendetta-sarda.htm vendetta sarda] [http://toofarfrommaybe.ifrance.com/view/new/eleco-telefonico/ eleco telefonico francia] [http://oiyaoi.ifrance.com/images/small/d-mustek/ d30 mustek] [http://girlwho-is.ifrance.com/img/styles/mouchette-.htm mouchette - tutta la vita in una notte] == Overview==
  
 
These instructions will guide you through the preparation of a new hard disk to replace the factory disk in the Apple TV.  When complete, the newly prepared disk will be identical to a factory disk but with a larger Media partition.  Please refer to other articles for other hacks.
 
These instructions will guide you through the preparation of a new hard disk to replace the factory disk in the Apple TV.  When complete, the newly prepared disk will be identical to a factory disk but with a larger Media partition.  Please refer to other articles for other hacks.
Line 18: Line 18:
 
== Requirements ==
 
== Requirements ==
  
The instructions have only been tested on an Intel-based Macintosh under Mac OS X.  They could work on a PowerPC-based machine, with OS X 10.4.6 or higher where "gpt," the GUID Partition Table tools can be found. Other BSD-like operating systems might also be used, but the ingredients will have to be suitably modified.  This article assumes that you have successfully removed the factory disk from the Apple TV and that you have the necessary hardware, e.g. a 2.5" ATA to USB or FireWire adapter, for connecting the disk to your Intel-based Macintosh.
+
The instructions have only been tested on an Intel-based Macintosh under Mac OS X.  They could work on a PowerPC-based machine, with OS X 10.4.6 or higher where "gpt," the GUID Partition Table tools can be found
 +
5A8
 +
. Other BSD-like operating systems might also be used, but the ingredients will have to be suitably modified.  This article assumes that you have successfully removed the factory disk from the Apple TV and that you have the necessary hardware, e.g. a 2.5" ATA to USB or FireWire adapter, for connecting the disk to your Intel-based Macintosh.
  
 
'''We will assume that when the disk is connected to your computer, it is associated with device node: /dev/disk2.  Remeber to replace /dev/disk2 with the appropariate device node!'''
 
'''We will assume that when the disk is connected to your computer, it is associated with device node: /dev/disk2.  Remeber to replace /dev/disk2 with the appropariate device node!'''
Line 25: Line 27:
  
 
=== Compatible Drives ===
 
=== Compatible Drives ===
The orginal Apple TV drive is a [http://www.fel.fujitsu.com/home/v3__product.asp?pid=531&inf=fsp&wg=13 FUJITSU MHW2040AT]
+
The orginal Apple TV drive is a [http://www.fel.fujitsu.com/home/v3__product.asp?pid=531
, a parallel ATA (PATA) drive. The highest capacity PATA currently on the market is 160GB.
 
 
 
Your Options:
 
{| class="wikitable"
 
|-
 
! Name !! Works
 
|-
 
||160 GB Samsung Harddrive (Samsung SpinPoint HM160JC)||Yes
 
|-
 
||Hitachi [[http://www.hitachigst.com/hdd/support/5k160/5k160.htm HTS541616J9AT00]]|| Yes
 
|-
 
||Hitachi Travelstar 4K120||??
 
|-
 
||Seagate ST9160821A||??
 
|}
 
 
 
Note by mail-now for Samsung 160GB drive: You will need to create the partitions on the new drive and then use Mac OS 10.4.6 or later to resize the Media partition (shows up as only 70 GB) to maximum size and THEN dd the image files. The rest works perfectly. Finally, you will get 144GB of Media.
 
 
 
== Acquiring the necessary images ==
 
The factory disk should be connected to your computer and located at device node <tt>/dev/disk2</tt>.  You will need a copy of the EFI image and the recovery partition from the factory disk.  They are located on partitions 1 and 2 of the factory disk, respectively.  You can copy them with <tt>dd</tt> by entering these commands into the command prompt:
 
 
 
<pre>
 
diskutil unmountDisk /dev/disk2
 
dd if=/dev/disk2s1 of=efi.dmg bs=1m
 
dd if=/dev/disk2s2 of=recovery.dmg bs=1m
 
</pre>
 
 
 
The unmount is there to make sure that the HFS+ partitions on the factory disk are not mounted.  These commands may take a few minutes to complete.  You can check on the status of <tt>dd</tt> while it is running by pressing Ctrl-T.  The <tt>bs=1m</tt> option is not strictly necessary, but it helps speed things up. 
 
 
 
When the commands have completed, the resulting files should be 35651584 bytes (about 34MB) and 419430400 bytes (about 400MB).  You may now disconnect the factory disk.
 
 
 
== Optional: Acquiring EFI and Recovery images without removing the hard drive ==
 
 
 
If you have the ability to <tt>ssh</tt> into the ATV, the EFI and Recovery images may be generated entirely within the ATV, then copied to your desktop computer.  This allows the new hard drive to be prepared in advance so that the hard drive upgrade process becomes a simple swap out.  To get started, first <tt>ssh</tt> into the ATV, then type <tt>diskutil list</tt>.  This is not strictly necessary but does help ensure a uniform starting point.  You should get the following results:
 
 
 
<pre>
 
/dev/disk0
 
  #:                  type name              size      identifier
 
  0:  GUID_partition_scheme                    *37.3 GB  disk0
 
  1:                    EFI                    34.0 MB  disk0s1
 
  2:        Apple_Recovery                    400.0 MB  disk0s2
 
  3:              Apple_HFS OSBoot            900.0 MB  disk0s3
 
  4:              Apple_HFS Media              35.8 GB  disk0s4
 
</pre>
 
 
 
Then type the following commands to generate the disk images in your <tt>/Users/frontrow/Documents</tt> directory.  It is not necessary to unmount the drive since the two partitions you are copying have never been mounted to begin with.
 
 
 
<pre>
 
dd if=/dev/disk0s1 of=/Users/frontrow/Documents/efi.dmg bs=1m
 
dd if=/dev/disk0s2 of=/Users/frontrow/Documents/recovery.dmg bs=1m
 
</pre>
 
 
 
Finally, copy the two images to your desktop computer with the following commands and proceed as below.
 
 
 
<pre>
 
scp /Users/frontrow/Documents/efi.dmg yourusername@youraddress:/efi.dmg
 
scp /Users/frontrow/Documents/recovery.dmg yourusername@youraddress:/recovery.dmg
 
</pre>
 
 
 
== Optional: Hacking the Recovery Image ==
 
 
 
The recovery.img file can be mounted like any other disk image.  Inside, you will find OS.dmg.  This is the factory image of the OSBoot partition.  Eventually, this image will be written to your new disk.  You can modify it at this point if you'd like.
 
 
 
== Preparing the partition table ==
 
Connect the new disk.  Again, the instructions assume that it is associated with device node: <tt>/dev/disk2</tt>.  If this disk was previously non-empty, make sure that no volumes on the disk are mounted.
 
 
 
We will now erase any existing partition table on the disk and create a new GUID partition table using the command <tt>gpt</tt>.  The command will fail if any volumes on the disk are mounted, so make sure you unmount them.
 
 
 
<pre>
 
gpt destroy /dev/disk2
 
gpt create /dev/disk2
 
</pre>
 
 
 
=== Adding the OSBoot and Media partitions ===
 
The OSBoot and Media partitions have to be added and formatted first, otherwise diskutil gets confused by the EFI and Recovery partitions.
 
 
 
First add the OSBoot partition.
 
<pre>
 
gpt add -b 888872 -i 3 -s 1843200 -t hfs /dev/disk2
 
</pre>
 
 
 
Now we can determine the size of the Media partition.
 
<pre>
 
gpt show /dev/disk2
 
</pre>
 
 
 
The output of the command should look something like this:
 
<pre>
 
      start      size  index  contents
 
          0          1        PMBR
 
          1          1        Pri GPT header
 
          2        32        Pri GPT table
 
        34    888838       
 
    888872    1843200      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
 
    2732072  153569383       
 
  156301455        32        Sec GPT table
 
  156301487          1        Sec GPT header
 
</pre>
 
 
 
The important part is the line above <tt>Sec GPT table</tt>:
 
<pre>
 
    2732072  153569383       
 
</pre>
 
This is where the Media partition will go.  Create the Media partition with the following command, replacing START and SIZE with the two numbers above:
 
 
 
<pre>
 
gpt add -b START -i 4 -s SIZE -t hfs /dev/disk2
 
</pre>
 
Again, Finder will complain to you that the disk is unitialized.  Ignore the warning.
 
 
 
== Formatting the HFS+ partitions ==
 
We will now format (erase) the HFS+ partitions and then unmount them:
 
 
 
<pre>
 
diskutil eraseVolume "Journaled HFS+" OSBoot /dev/disk2s3
 
diskutil eraseVolume "Journaled HFS+" Media /dev/disk2s4
 
diskutil unmountDisk /dev/disk2
 
</pre>
 
 
 
== Creating and writing the EFI and Recovery partitions ==
 
Now we can add EFI and Recovery partitions.  First, add the EFI partition:
 
<pre>
 
gpt add -b 40 -i 1 -s 69632 -t efi /dev/disk2
 
</pre>
 
After the command completes, Finder will automount the OSBoot and Media partitions.  Unmount them.
 
<pre>
 
diskutil unmountDisk /dev/disk2
 
</pre>
 
 
 
Now add the Recovery partition:
 
<pre>
 
gpt add -b 69672 -i 2 -s 819200 -t 5265636F-7665-11AA-AA11-00306543ECAC /dev/disk2
 
</pre>
 
Again, after Finder automounts the OSBoot and Media partitions, unmount them.
 
<pre>
 
diskutil unmountDisk /dev/disk2
 
</pre>
 
 
 
The final step is to write the EFI and Recovery images that you copied from the factory disk to the new disk.
 
<pre>
 
dd if=efi.dmg of=/dev/disk2s1 bs=1m
 
dd if=recovery.dmg of=/dev/disk2s2 bs=1m
 
</pre>
 
 
 
You may now disconnect the disk (but make sure you have ejected/unmounted it first).
 
 
 
== Apple TV Factory Restore ==
 
Connect the new disk to the Apple TV and power it up.  The Apple TV should now boot up from the new disk.  After a minute or so, you should be asked to choose a language and then presented with the "Apple TV Recovery" screen.  Go ahead and do the factory restore.  This will initialize the OSBoot partition with the original factory image.  Your Apple TV is now identical to the factory version, but with a larger Media partition.
 
 
 
== Simpler Alternative Method ==
 
There is an alternative method where you duplicate the partitions you need with one command and then copy them to the new disk, then complete the preparation with the Apple TV Factory Restore. 
 
To duplicate the factory disk, connect it to your computer and execute:
 
<pre>
 
dd if=/dev/disk2 of=appletv.dmg bs=1m
 
</pre>
 
This command may take several hours to complete, depending on the speed of the interface between your computer and the disk.  Now disconnect the factory disk and connect your new disk.  Write the image of the factory disk:
 
<pre>
 
dd if=appletv.dmg of=/dev/disk2 bs=1m
 
</pre>
 
This command may take several hours to complete, depending on the speed of the interface between your computer and the disk.  Once it completes, disconnect the disk and follow the instructions above under [[#Apple TV Factory Restore]].
 
 
 
== External Links ==
 
GUID Partition Table (GPT) details at Wikipedia
 
[http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs]
 
 
 
[[Category:How-to]]
 

Revision as of 23:43, 20 August 2007

hard disk esterno sitecom 200 soluzioni per giochi per playstation1 kebnekaise chicas orno smeg frigoriferi anni 50 nero mpeg2 plugins gay friuli venezia giulia donna arrapata mina sorvino www scandicci it zecchino 41 testo pussycat dolls anime nella tormenta cardenal, ernesto televisori al plasma phocus 42 roma boa vista (capo verde) biglietti telesystem parabola parabole portland vasco rossi un senso mp3 da scaricare udine maglieria telefoni tre band le due torri moto mondiale gp composito monitor caravan rock band poljubac ruff riders anthem memoria acer travelmate calatrava architetto lavastoviglia rex stampanti laser colore epson c1100 maron, monika ruslana ladosi happy hentai no mercenaria www ministero istruzione padova profiteroles ricetta cyp planeta v ideo tolentino, trattato di roberto cavalli orologi vigile fuoco it i-pod mini 4 gb il decalogo dieci lacie usb firewire epson 74 toyota rav 4 1996 de cine mi e dor inoki stili di joe ricevitore tomtom www bellsouth com au immagini bob marley rush. chronicles. the video collection chat de parejas web big kahuna reef tornero alfa romeo 147 anno 2002 video da vedere agenzia immobiliare a marina di massa mom e boy windows xp mediacenter oem il cacciatore solitario sederi famosi bd company generatore portatile digul computer game online foto ragazze giovani macroprotodon samsung premium multi i bar video musical de chayanne skapi nuovo filmato per imperial glory poliziamunicipale catania kobra di donatella rettore la vera storia di rosemarie nike - triax swift rendi ingerman spidi un matto, due matti, tutti matti lealy nahary jaguar x-type executive eco unicas crudele sms frase film documentario pianeta blu barriere she is so pretty samsung ml-2250 lo strano destino love me with all your heart affinita zodiacale langelo del focolare sex woman immagini egitto vidio musicali da scaricare mano armata il superuomo dannunziano telecomando mivar print server usb netgear hotel viennese folletti foto disegni hotels - italia testina canon s400 nero el grafico it o mese d e rrose xstreamsat tv gestione di rete holliwood abbigliamento rimini la lega calcio in winning eleven 8 mercedes classe a 170 violencia familiar usb 2 0 scheda pci ventilatore da soffitto vortice bel danubio caradura lettore portatile amstrad lara tempestini buste vinili ska p el gato infinity classical cartina geografica piatti bicchieri sofia vicoveanca raw punk. vol. 02. even more bollocks gf5 annalisa sigma 105mm f 2 8 ex dg macro bamboo bamboo netcrunch premium ali che non tornano michel vieth porno we re at the top of the world the juliana mercedes clk 240 massaggiatore collo ford padova tawhid wal jihad mp3 archos av120 gioco della dama italiana www google es palestra doccia sospero ceolin group letras musicales mita 90 mobile giardino teak rossignol aspire 3023wlmi lettura veloce eticheta ragazza assago sapphire x800 agp due pantofole e una ragazza jeunes minets asrock k8upgrade-vm800 all uomini nudi con uomini nudi valez krzysztof zalewski scarpe donna con tacco alto ufficio gubbio mp3 accessori per autoradio jeans bambino racconti dal ginecologo porque te vas jeanette panasonic condizionatori e ventilatori cocorito whirlpool - lavastoviglie cavo adattatore audio rca jack libreria in ciliegio rock me amadeus ati 9550 schede video scuole marsala acer aspire 1801wsmi ragazzo massa stay with me goran moser rex www pepsi com ponteggio prefabbricato telaio marina del convento tropea musella grembiule accessori per la cucina nikon - coolpix 5200 webcam logitech pro www sabervivir es ryanair edimburgo router ethernet 4 porte adsl printserver mario bros e la spada magica troppo per vivere, poco per morire gioco pc videogames lampadine led herbal assicurazione auto economica olympus 6 1 megapixel fuji a330 telefonini alcatel vendetta sarda eleco telefonico francia d30 mustek mouchette - tutta la vita in una notte == Overview==

These instructions will guide you through the preparation of a new hard disk to replace the factory disk in the Apple TV. When complete, the newly prepared disk will be identical to a factory disk but with a larger Media partition. Please refer to other articles for other hacks.

Remark: There are several methods to add a new (larger) hard disk around. Some users found the method described here (doing a factory restore in the end) the only one of the command line based methods to work with large drives (larger than approx. 80 GB). You find out that you have a problem with other methods at the moment when formatting a partition takes longer than minutes ;-)

The Apple TV factory disk consists of four partitions:

  1. EFI
  2. Recovery
  3. OSBoot
  4. Media

There is a little bit of voodoo involved in recreating them on the new disk, because of strange behavior of diskutil. The OSBoot and Media partitions must be created and formatted before the EFI and Recovery partitions are on the disk. Otherwise, diskutil gets confused and does some strange things to the partition table. This method should take less than 10 minutes to complete, because only the EFI and Recovery partition are duplicated from the factory disk. The OSBBoot partition and Media get initialized by the Apple TV Factory Restore procedure.

The #Simple Alternative Method below is indeed simpler, but can take several hours to complete.

Requirements

The instructions have only been tested on an Intel-based Macintosh under Mac OS X. They could work on a PowerPC-based machine, with OS X 10.4.6 or higher where "gpt," the GUID Partition Table tools can be found 5A8 . Other BSD-like operating systems might also be used, but the ingredients will have to be suitably modified. This article assumes that you have successfully removed the factory disk from the Apple TV and that you have the necessary hardware, e.g. a 2.5" ATA to USB or FireWire adapter, for connecting the disk to your Intel-based Macintosh.

We will assume that when the disk is connected to your computer, it is associated with device node: /dev/disk2. Remeber to replace /dev/disk2 with the appropariate device node!

While executing the gpt commands below, OS X may try to mount the volumes on the disk. You can safely click "Ignore" if Finder complains to you about an uninitialized disk. If it is able to mount the volume, make sure to eject it before continuing, otherwise gpt will not be able to access the disk.

Compatible Drives

The orginal Apple TV drive is a [http://www.fel.fujitsu.com/home/v3__product.asp?pid=531