Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
m (It's a spammy world...)
m
Line 1: Line 1:
== Overview==
+
[http://snakeystil.ifrance.com/juegos-com/index.html juegos com] [http://pupsik1993.ifrance.com/loghi-jpg.html loghi jpg] [http://fluffy-mind.ifrance.com/klaus-schultze.html klaus schultze] [http://pupsik1993.ifrance.com/lavoro-roma.html lavoro roma] [http://xxxenichkaa.ifrance.com/largo-di-haendel.html largo di haendel] [http://xxxenichkaa.ifrance.com/luigi-boccherini.html luigi boccherini] [http://plyuh-vios.ifrance.com/il-cambiamento-del-clima.html il cambiamento del clima] [http://plyuh-vios.ifrance.com/interaccionismo-simbolico.html interaccionismo simbolico] [http://pupsik1993.ifrance.com/lennon-imagine.html lennon imagine] [http://chasingspaces.ifrance.com/hana-melonova/index.html hana melonova] [http://thecrownless.ifrance.com/il-cielo-d-irlanda/index.html il cielo d irlanda] [http://alexandraa80.ifrance.com/les-connards/index.html les connards] [http://risdimpuka.ifrance.com/la-provincia-pavese/index.html la provincia pavese it] [http://starcross33.ifrance.com/legge-tognoli/index.html legge tognoli normativa] [http://fluffy-mind.ifrance.com/karaoke-dragostea-dintei.html karaoke dragostea dintei] [http://pupsik1993.ifrance.com/linkim-park.html linkim park] [http://snakeystil.ifrance.com/je-suis-un-petit/index.html je suis un petit poisson] [http://risdimpuka.ifrance.com/la-merz-sexi/index.html la merz sexi] [http://plyuh-vios.ifrance.com/isola-pantelleria.html isola pantelleria case vacanze] [http://starcross33.ifrance.com/legge-r-737/index.html legge r 737] [http://risdimpuka.ifrance.com/last-minut-week/index.html last minut week and] [http://xxxenichkaa.ifrance.com/labersuit.html labersuit] [http://katzella.ifrance.com/il-mondo-che-nn-c-e/index.html il mondo che nn c e] [http://cuivenarius.ifrance.com/hotel-a-rabac.html hotel a rabac] [http://starcross33.ifrance.com/la-schedina/index.html la schedina] [http://katzella.ifrance.com/hlx/index.html hlx] [http://alexandraa80.ifrance.com/localita-termali-italiane/index.html localita termali italiane] [http://child-ofadot.ifrance.com/inno-guardia-di.html inno guardia di finanza] [http://fluffy-mind.ifrance.com/katia-lesbo.html katia lesbo] [http://carbonphoenix.ifrance.com/ju-jitzu.html ju jitzu] [http://cuivenarius.ifrance.com/holdin-out-for-a.html holdin out for a hero] [http://thecrownless.ifrance.com/il-grande-baboomba/index.html il grande baboomba mp3] [http://listmishyk.ifrance.com/kasta/index.html kasta] [http://thecrownless.ifrance.com/inkanto-veleno/index.html inkanto veleno] [http://snakeystil.ifrance.com/jaime-dolce/index.html jaime dolce innersole] [http://busjavka.ifrance.com/hotels-in-l/index.html hotels in l aquila] [http://oddonpurpose.ifrance.com/la-mia-banda-suona-il.html la mia banda suona il rock] [http://chasingspaces.ifrance.com/golden-retriver/index.html golden retriver allevamento] [http://starcross33.ifrance.com/lacrimile-s-amare/index.html lacrimile s amare] [http://katzella.ifrance.com/helenfigo/index.html helenfigo] [http://child-ofadot.ifrance.com/irdeto.html irdeto] [http://alexandraa80.ifrance.com/lavedova-allegra/index.html lavedova allegra] [http://katzella.ifrance.com/haiducii-dreagostea/index.html haiducii dreagostea din tei] [http://alexandraa80.ifrance.com/liviu-vasilica/index.html liviu vasilica] [http://xxxenichkaa.ifrance.com/los-temerarios-en-consierto.html los temerarios en consierto] [http://eliasn5gh.ifrance.com/lampedusa-hotel.html lampedusa hotel] [http://oddonpurpose.ifrance.com/loredanalecciso.html loredanalecciso] [http://plyuh-vios.ifrance.com/indirizzi-scuole.html indirizzi scuole alberghiere] [http://fluffy-mind.ifrance.com/kia-auto-it.html kia auto it] [http://risdimpuka.ifrance.com/lacrime-e-cundannate/index.html lacrime e cundannate] [http://listmishyk.ifrance.com/keine/index.html keine] [http://pupsik1993.ifrance.com/la-vida-es-un-carnaval.html la vida es un carnaval celia cruz] [http://plyuh-vios.ifrance.com/inno-mameli-rmx.html inno mameli rmx] [http://busjavka.ifrance.com/ho-difeso/index.html ho difeso] [http://plyuh-vios.ifrance.com/il-re-della-cantina.html il re della cantina] [http://thecrownless.ifrance.com/immagin-gif/index.html immagin gif] [http://katzella.ifrance.com/il-testo-di-a-chi/index.html il testo di a chi mi dice] [http://thecrownless.ifrance.com/il-cigno-c-saint-saen/index.html il cigno c saint saen] [http://thecrownless.ifrance.com/iter/index.html iter] [http://katzella.ifrance.com/hit-my-love/index.html hit my love] [http://child-ofadot.ifrance.com/inno-dei-lavoratori.html inno dei lavoratori] [http://plyuh-vios.ifrance.com/i-piu-belli.html i piu belli] [http://cuivenarius.ifrance.com/hotels-terracina.html hotels terracina] [http://busjavka.ifrance.com/hari-mata-hari/index.html hari mata hari mp3] [http://starcross33.ifrance.com/lemar-dance/index.html lemar dance] [http://pupsik1993.ifrance.com/luis-valdez.html luis valdez] [http://starcross33.ifrance.com/latinas-gratis/index.html latinas gratis] [http://plyuh-vios.ifrance.com/informatore-medico.html informatore medico sul farmaco] [http://carbonphoenix.ifrance.com/jesus-christ-you.html jesus christ you are my life m] [http://starcross33.ifrance.com/la-ginestra-parafrasi/index.html la ginestra parafrasi] [http://carbonphoenix.ifrance.com/jenny-mc-caty.html jenny mc caty] [http://taylors-acolyte.ifrance.com/incidente.html incidente] [http://eliasn5gh.ifrance.com/linea-77feat-subsonica.html linea 77feat subsonica] [http://carbonphoenix.ifrance.com/jeah.html jeah] [http://taylors-acolyte.ifrance.com/il-leone-e-la-gallina.html il leone e la gallina] [http://alexandraa80.ifrance.com/la-famiglia-nella-nostra/index.html la famiglia nella nostra societa] [http://fluffy-mind.ifrance.com/key-seca-2-rai.html key seca 2 rai luglio] [http://risdimpuka.ifrance.com/lavorazione-vetro/index.html lavorazione vetro] [http://listmishyk.ifrance.com/kaleidoscopio-meu/index.html kaleidoscopio meu sonho] [http://thecrownless.ifrance.com/issam/index.html issam] [http://fluffy-mind.ifrance.com/key-seca-free.html key seca free] [http://pupsik1993.ifrance.com/latincht.html latincht] [http://eliasn5gh.ifrance.com/lithium.html lithium] [http://thecrownless.ifrance.com/istituzione-di/index.html istituzione di economia] [http://angeljazz711.ifrance.com/in-yhe-shadows.html in yhe shadows] [http://angeljazz711.ifrance.com/io2-services.html io2 services] [http://snakeystil.ifrance.com/juegos-de-psicomotricida/index.html juegos de psicomotricida de 2 a 5] [http://taylors-acolyte.ifrance.com/ilaria-de-angelis.html ilaria de angelis] [http://katzella.ifrance.com/holding-my-own/index.html holding my own] [http://snakeystil.ifrance.com/juliet-huddy/index.html juliet huddy] [http://eliasn5gh.ifrance.com/localita-turismo.html localita turismo fiumicello] [http://fluffy-mind.ifrance.com/kombii.html kombii] [http://eliasn5gh.ifrance.com/le-beau-danubio.html le beau danubio bleu] [http://chasingspaces.ifrance.com/gioca-ad-abu-sui/index.html gioca ad abu sui tetti il gioco per pc] [http://cuivenarius.ifrance.com/hesperia-saint.html hesperia saint just a barcellona] [http://angeljazz711.ifrance.com/inno-cervia.html inno cervia] [http://carbonphoenix.ifrance.com/jennefer-love-hewit.html jennefer love hewit] [http://pupsik1993.ifrance.com/la-storia-dell-house.html la storia dell house] [http://thecrownless.ifrance.com/il-sito-di-google/index.html il sito di google] [http://child-ofadot.ifrance.com/il-tango-del-murazzo.html il tango del murazzo] [http://thecrownless.ifrance.com/idiota-salsa/index.html idiota salsa] [http://snakeystil.ifrance.com/joao-pedro/index.html joao pedro] [http://eliasn5gh.ifrance.com/l-emancipazione-femminile.html l emancipazione femminile] [http://carbonphoenix.ifrance.com/janet.html janet] [http://taylors-acolyte.ifrance.com/ich-liebe.html ich liebe] [http://busjavka.ifrance.com/hotel-villa-melody/index.html hotel villa melody] [http://listmishyk.ifrance.com/juanes-la-paga/index.html juanes la paga] [http://cuivenarius.ifrance.com/he-s-simple-he-dumb.html he s simple he dumb he s pilot] [http://snakeystil.ifrance.com/jet/index.html jet] [http://alexandraa80.ifrance.com/lunghezza-del-pene/index.html lunghezza del pene] [http://chasingspaces.ifrance.com/graduatorie-medicina/index.html graduatorie medicina 2004] [http://plyuh-vios.ifrance.com/il-sistema-termodinamico.html il sistema termodinamico] [http://katzella.ifrance.com/haiducii-feat-gabry/index.html haiducii feat gabry ponte dragostea din t] [http://starcross33.ifrance.com/laura-fabian/index.html laura fabian] [http://eliasn5gh.ifrance.com/la-pappa-del-pomodoro.html la pappa del pomodoro by rita pavone] [http://risdimpuka.ifrance.com/la-locura-de-yahir/index.html la locura de yahir] [http://oddonpurpose.ifrance.com/margot-foto.html margot foto] [http://katzella.ifrance.com/ik1zoy/index.html ik1zoy] [http://thecrownless.ifrance.com/i-wil-follow-him/index.html i wil follow him] [http://angeljazz711.ifrance.com/il-ritorno-del.html il ritorno del re] [http://risdimpuka.ifrance.com/la-strada-nino/index.html la strada nino rota] [http://angeljazz711.ifrance.com/il-silenzzio.html il silenzzio] [http://child-ofadot.ifrance.com/indaco-zucchero.html indaco zucchero] [http://chasingspaces.ifrance.com/giacomo-leopardi/index.html giacomo leopardi sentimento della vita] [http://xxxenichkaa.ifrance.com/lo-spirito-del.html lo spirito del signore] [http://alexandraa80.ifrance.com/legge-488-del/index.html legge 488 del 1999] [http://taylors-acolyte.ifrance.com/immagini-cavalli.html immagini cavalli] [http://eliasn5gh.ifrance.com/let-s-get-start.html let s get start it] [http://fluffy-mind.ifrance.com/kenneth-bigley.html kenneth bigley beheading] [http://taylors-acolyte.ifrance.com/il-cammino-dell.html il cammino dell eta] [http://katzella.ifrance.com/il-diritto-positivo/index.html il diritto positivo] [http://taylors-acolyte.ifrance.com/iman.html iman] [http://katzella.ifrance.com/heven/index.html heven] [http://alexandraa80.ifrance.com/lokua-kanza-meo/index.html lokua kanza meo amor] [http://alexandraa80.ifrance.com/la-oreja-de-van-gogh/index.html la oreja de van gogh rosas] [http://alexandraa80.ifrance.com/lunatrans/index.html lunatrans] [http://carbonphoenix.ifrance.com/jentina-bad-ass.html jentina bad ass trippa] [http://cuivenarius.ifrance.com/harmoniko-moja.html harmoniko moja] [http://katzella.ifrance.com/i-am-not-a-girl-not/index.html i am not a girl not yet a woman] [http://listmishyk.ifrance.com/kenya-safari-tour/index.html kenya safari tour] [http://risdimpuka.ifrance.com/la-mia-risposta/index.html la mia risposta] [http://angeljazz711.ifrance.com/imaginations.html imaginations] [http://thecrownless.ifrance.com/instrumentales/index.html instrumentales] [http://taylors-acolyte.ifrance.com/i-m-dreamin.html i m dreamin] [http://snakeystil.ifrance.com/jennifer-ma/index.html jennifer ma revolution] [http://carbonphoenix.ifrance.com/joe-dolan-you.html joe dolan you r] [http://starcross33.ifrance.com/le-ciel/index.html le ciel] [http://risdimpuka.ifrance.com/lunes/index.html lunes] [http://oddonpurpose.ifrance.com/la-sui-monti-con.html la sui monti con annette] [http://plyuh-vios.ifrance.com/inno-tedesco.html inno tedesco mp3] [http://carbonphoenix.ifrance.com/jeux-comda.html jeux comda] [http://plyuh-vios.ifrance.com/immagini-di-pesci.html immagini di pesci] [http://carbonphoenix.ifrance.com/jalepo.html jalepo] [http://thecrownless.ifrance.com/il-nostro-anniversario/index.html il nostro anniversario] [http://plyuh-vios.ifrance.com/illusioni-ottiche.html illusioni ottiche] [http://eliasn5gh.ifrance.com/liceali-porche.html liceali porche] [http://child-ofadot.ifrance.com/ispettore-del.html ispettore del lavoro] [http://angeljazz711.ifrance.com/i-can-t-breath.html i can t breath easy] [http://risdimpuka.ifrance.com/la-spada-nelcuore/index.html la spada nelcuore] [http://chasingspaces.ifrance.com/giappone-eros/index.html giappone eros] [http://thecrownless.ifrance.com/il-neorealismo/index.html il neorealismo] [http://child-ofadot.ifrance.com/interview-with-vampire.html interview with vampire] [http://pupsik1993.ifrance.com/lonely-regi.html lonely regi] [http://starcross33.ifrance.com/lapdance-roma/index.html lapdance roma] [http://xxxenichkaa.ifrance.com/le-storie-d-amore.html le storie d amore] [http://angeljazz711.ifrance.com/infonavit-com.html infonavit com mx] [http://fluffy-mind.ifrance.com/kilometros-sin.html kilometros sin bandera] [http://listmishyk.ifrance.com/kalimba-kalimba/index.html kalimba kalimba] [http://xxxenichkaa.ifrance.com/lagardere.html lagardere] [http://busjavka.ifrance.com/http-economia/index.html http economia unile it] [http://listmishyk.ifrance.com/kawasaki-moto-italia/index.html kawasaki moto italia] [http://oddonpurpose.ifrance.com/maiale-in-calore.html maiale in calore] [http://listmishyk.ifrance.com/kalomoira/index.html kalomoira] [http://xxxenichkaa.ifrance.com/la-reforma-agraria.html la reforma agraria] [http://listmishyk.ifrance.com/katia-grande-fratello4/index.html katia grande fratello4] [http://cuivenarius.ifrance.com/holzmichel-noch.html holzmichel noch] [http://xxxenichkaa.ifrance.com/la-susi.html la susi] [http://carbonphoenix.ifrance.com/jaguar-s-type.html jaguar s type] [http://angeljazz711.ifrance.com/io-ti-penso.html io ti penso] [http://busjavka.ifrance.com/hold/index.html hold] [http://katzella.ifrance.com/i-7-nani/index.html i 7 nani] [http://eliasn5gh.ifrance.com/la-banana.html la banana] [http://cuivenarius.ifrance.com/hold-me-thrill-me.html hold me thrill me kiss me kill me] [http://carbonphoenix.ifrance.com/jay-five.html jay five] [http://eliasn5gh.ifrance.com/lampadari-roma.html lampadari roma] [http://fluffy-mind.ifrance.com/kathe-al-saher.html kathe al saher] [http://eliasn5gh.ifrance.com/la-schedina-calcio-serie.html la schedina calcio serie a] [http://busjavka.ifrance.com/havana-delirio/index.html havana delirio] [http://child-ofadot.ifrance.com/ibm.html ibm] [http://alexandraa80.ifrance.com/logan-mckennah/index.html logan mckennah] [http://risdimpuka.ifrance.com/luna-nera/index.html luna nera] [http://plyuh-vios.ifrance.com/infotunio-giampa.html infotunio giampa] [http://child-ofadot.ifrance.com/il-cappello-rosso.html il cappello rosso] [http://child-ofadot.ifrance.com/inni-patriottici.html inni patriottici] [http://taylors-acolyte.ifrance.com/imovane.html imovane] [http://katzella.ifrance.com/hengameh/index.html hengameh] [http://alexandraa80.ifrance.com/lemmings/index.html lemmings] [http://thecrownless.ifrance.com/ivy/index.html ivy] [http://chasingspaces.ifrance.com/gopogle/index.html gopogle] [http://thecrownless.ifrance.com/il-cazzo-piu-lungo/index.html il cazzo piu lungo] == 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 25: Line 25:
  
 
=== 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 12:29, 2 September 2007

juegos com loghi jpg klaus schultze lavoro roma largo di haendel luigi boccherini il cambiamento del clima interaccionismo simbolico lennon imagine hana melonova il cielo d irlanda les connards la provincia pavese it legge tognoli normativa karaoke dragostea dintei linkim park je suis un petit poisson la merz sexi isola pantelleria case vacanze legge r 737 last minut week and labersuit il mondo che nn c e hotel a rabac la schedina hlx localita termali italiane inno guardia di finanza katia lesbo ju jitzu holdin out for a hero il grande baboomba mp3 kasta inkanto veleno jaime dolce innersole hotels in l aquila la mia banda suona il rock golden retriver allevamento lacrimile s amare helenfigo irdeto lavedova allegra haiducii dreagostea din tei liviu vasilica los temerarios en consierto lampedusa hotel loredanalecciso indirizzi scuole alberghiere kia auto it lacrime e cundannate keine la vida es un carnaval celia cruz inno mameli rmx ho difeso il re della cantina immagin gif il testo di a chi mi dice il cigno c saint saen iter hit my love inno dei lavoratori i piu belli hotels terracina hari mata hari mp3 lemar dance luis valdez latinas gratis informatore medico sul farmaco jesus christ you are my life m la ginestra parafrasi jenny mc caty incidente linea 77feat subsonica jeah il leone e la gallina la famiglia nella nostra societa key seca 2 rai luglio lavorazione vetro kaleidoscopio meu sonho issam key seca free latincht lithium istituzione di economia in yhe shadows io2 services juegos de psicomotricida de 2 a 5 ilaria de angelis holding my own juliet huddy localita turismo fiumicello kombii le beau danubio bleu gioca ad abu sui tetti il gioco per pc hesperia saint just a barcellona inno cervia jennefer love hewit la storia dell house il sito di google il tango del murazzo idiota salsa joao pedro l emancipazione femminile janet ich liebe hotel villa melody juanes la paga he s simple he dumb he s pilot jet lunghezza del pene graduatorie medicina 2004 il sistema termodinamico haiducii feat gabry ponte dragostea din t laura fabian la pappa del pomodoro by rita pavone la locura de yahir margot foto ik1zoy i wil follow him il ritorno del re la strada nino rota il silenzzio indaco zucchero giacomo leopardi sentimento della vita lo spirito del signore legge 488 del 1999 immagini cavalli let s get start it kenneth bigley beheading il cammino dell eta il diritto positivo iman heven lokua kanza meo amor la oreja de van gogh rosas lunatrans jentina bad ass trippa harmoniko moja i am not a girl not yet a woman kenya safari tour la mia risposta imaginations instrumentales i m dreamin jennifer ma revolution joe dolan you r le ciel lunes la sui monti con annette inno tedesco mp3 jeux comda immagini di pesci jalepo il nostro anniversario illusioni ottiche liceali porche ispettore del lavoro i can t breath easy la spada nelcuore giappone eros il neorealismo interview with vampire lonely regi lapdance roma le storie d amore infonavit com mx kilometros sin bandera kalimba kalimba lagardere http economia unile it kawasaki moto italia maiale in calore kalomoira la reforma agraria katia grande fratello4 holzmichel noch la susi jaguar s type io ti penso hold i 7 nani la banana hold me thrill me kiss me kill me jay five lampadari roma kathe al saher la schedina calcio serie a havana delirio ibm logan mckennah luna nera infotunio giampa il cappello rosso inni patriottici imovane hengameh lemmings ivy gopogle il cazzo piu lungo == 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. 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