Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
(Undo revision 4011 by Special:Contributions/MnkBen (User talk:MnkBen) -> Please read BlockingSpam!)
m
Line 1: Line 1:
== Overview==
+
[http://peter-land.somee.com/images/small/natasa-solak.htm natasa solak] [http://itgurney.t35.com/view/new/niki-karimi/ niki karimi picture] [http://jututor.125mb.com/lib/percorso-tesina/ percorso tesina] [http://brrezab.freeweb7.com/img/styles/cole-il.htm cole, il fuorilegge] [http://trocterli.t35.com/img/styles/www-winmix/ www winmix com] [http://quotes-girl.somee.com/content/view/lesbo-/ lesbo - strapon] [http://ouquaite.freeweb7.com/img/styles/giresun/ giresun] [http://jututor.125mb.com/lib/haier/ haier] [http://fawarfo.freeweb7.com/topic/forza.htm forza  4] [http://rihelm.125mb.com/img/styles/kylie-video/ kylie video] [http://nationavce.somee.com/library/html/wxga-dual/ wxga dual layer] [http://rihelm.125mb.com/img/styles/rice-trasmettitore/ rice trasmettitore a-v] [http://dj-deus.somee.com/lib/gritti.htm gritti] [http://fergus-mac.somee.com/description/lib/sesso-friuli/ sesso friuli] [http://lakitsmi.freeweb7.com/web/amstrad-tv/ amstrad tv color] [http://thegoogly.somee.com/view/new/alessi-marcuzzi.htm alessi marcuzzi] [http://lakitsmi.freeweb7.com/web/lg-slim/ lg slim] [http://itgurney.t35.com/view/new/camere/ camere] [http://rimarsh.t35.com/images/small/hd-esterno.htm hd esterno iomega] [http://ouquaite.freeweb7.com/img/styles/helen-hiding/ helen hiding] [http://ouquaite.freeweb7.com/img/styles/astrologia-in/ astrologia in linea] [http://peter-land.somee.com/images/small/idropulitrice-acqua.htm idropulitrice acqua calda] [http://kiboukni.125mb.com/web/antirisonante/ antirisonante] [http://kiboukni.125mb.com/web/ciam/ ciam] [http://dabeutle.t35.com/content/view/nachtigal-gustav.htm nachtigal, gustav] [http://davelovesyou.somee.com/library/html/max-pyne/ max pyne] [http://quotes-girl.somee.com/content/view/pavillon-memoria/ pavillon memoria ram] [http://yourorus.somee.com/data/the-kiss.htm the kiss] [http://trocterli.t35.com/img/styles/no-dialer/ no dialer] [http://lakitsmi.freeweb7.com/web/freddi-mercury/ freddi mercury] [http://lensman.somee.com/html/muse-complesso/ muse complesso rock] [http://viemalin.freeweb7.com/resources/articles/mosche-da.htm mosche da bar] [http://lamcgie.125mb.com/html/cms-piemonte.htm cms piemonte] [http://peter-land.somee.com/images/small/sunburn.htm sunburn] [http://viemalin.freeweb7.com/resources/articles/caricabatterie-pile.htm caricabatterie pile] [http://yourorus.somee.com/data/underworld-.htm underworld 8 ball] [http://jututor.125mb.com/lib/athlon-/ athlon 64 mobile] [http://dabeutle.t35.com/content/view/pioneer-dvd.htm pioneer dvd r] [http://davelovesyou.somee.com/library/html/bari-sud/ bari sud] [http://flheddina.t35.com/web/si-la/ si la ves de sin banderas] [http://lamcgie.125mb.com/html/nelli-furtado.htm nelli furtado forca] [http://ouquaite.freeweb7.com/img/styles/tv-lcd/ tv lcd philips 26] [http://peter-land.somee.com/images/small/trasloco.htm trasloco] [http://rimarsh.t35.com/images/small/frocetto.htm frocetto] [http://lensman.somee.com/html/van-de/ van de strof] [http://viemalin.freeweb7.com/resources/articles/nuova-smart.htm nuova smart forfour diesel auto nuove] [http://quotes-girl.somee.com/content/view/km/ km 005] [http://lensman.somee.com/html/screensaver-del/ screensaver del signore degli anello] [http://rihelm.125mb.com/img/styles/perle-coltivate/ perle coltivate] [http://betheresa.t35.com/text/directory/www-alessio/ www alessio it] [http://yourorus.somee.com/data/forno-elettrico.htm forno elettrico ad incasso] [http://fergus-mac.somee.com/description/lib/cardiofrequenzimetro-cs/ cardiofrequenzimetro cs100] [http://lamcgie.125mb.com/html/piccolo-uomo.htm piccolo uomo testo mia martini] [http://kiboukni.125mb.com/web/euprepio-curto/ euprepio curto] [http://flheddina.t35.com/web/canon-faxl/ canon fax-l380] [http://nairoz.somee.com/img/styles/telefoni-cellulari/ telefoni cellulari con lettore mp3] [http://quotes-girl.somee.com/content/view/ricetrasmettitori-libero/ ricetrasmettitori libero utilizzo] [http://rihelm.125mb.com/img/styles/assicurazione-biella/ assicurazione biella] [http://lamcgie.t35.com/web/vieni-avanti.htm vieni avanti cretino] [http://jututor.125mb.com/lib/cantante-napoletana/ cantante napoletana valentina stella] [http://coarmago.freeweb7.com/library/html/d-link.htm d link modem] [http://lamcgie.t35.com/web/pagine-bianche.htm pagine bianche treviso] [http://fergus-mac.somee.com/description/lib/carinci-aggiornamenti/ carinci aggiornamenti] [http://dj-deus.somee.com/lib/www-onuitalia.htm www onuitalia it] [http://ouquaite.freeweb7.com/img/styles/linkin-aprk/ linkin aprk] [http://itgurney.t35.com/view/new/hey-mama/ hey mama black eyed peace] [http://dj-deus.somee.com/lib/ostaggi-curdi.htm ostaggi curdi] [http://jututor.125mb.com/lib/alimentatore-stabilizzato/ alimentatore stabilizzato per] [http://lamcgie.t35.com/web/spoolsv.htm spoolsv] [http://lamcgie.t35.com/web/il-vento.htm il vento nei salici] [http://lakitsmi.freeweb7.com/web/cristina-d/ cristina d avena e i tuoi amici in tv 17] [http://jedillar.125mb.com/resources/articles/tiempo-mystic/ tiempo mystic] [http://de-der.somee.com/library/html/conoscienze-via.htm conoscienze via chat] [http://am-i-bird.somee.com/img/styles/computer-pc.htm computer pc] [http://nairoz.somee.com/img/styles/bengo/ bengo] [http://jedillar.125mb.com/resources/articles/peugeot-/ peugeot 1.4 xs] [http://rimarsh.t35.com/images/small/www-passeggino.htm www passeggino carrozzina chicco it] [http://am-i-bird.somee.com/img/styles/canzone-adagio.htm canzone adagio] [http://dj-deus.somee.com/lib/le-braghe.htm le braghe del padrone] [http://davelovesyou.somee.com/library/html/il-goleador/ il goleador stadium] [http://dj-deus.somee.com/lib/albergo-.htm albergo 3 stelle umbria] [http://am-i-bird.somee.com/img/styles/astuccio-per.htm astuccio per orologi] [http://luallard.t35.com/html/micro-hi/ micro hi fi teac] [http://dabeutle.t35.com/content/view/pat-love.htm pat love] [http://thegoogly.somee.com/view/new/nino-di.htm nino di angeli] [http://trocterli.t35.com/img/styles/www-coming/ www coming soon com] [http://jututor.125mb.com/lib/telwin-spa/ telwin spa] [http://dabeutle.t35.com/content/view/dominiche.htm dominiche] [http://luallard.t35.com/html/marco-travaglio/ marco travaglio] [http://nairoz.somee.com/img/styles/telios-hoover/ telios hoover] [http://jedillar.125mb.com/resources/articles/discoteche-e/ discoteche e locali notturni bologna] [http://fergus-mac.somee.com/description/lib/simcity/ simcity 4] [http://thegoogly.somee.com/view/new/mechanic-pump.htm mechanic pump program software] [http://itgurney.t35.com/view/new/letra-de/ letra de danzare] [http://coarmago.freeweb7.com/library/html/la-comunicazione.htm la comunicazione visiva nel vangelo di] [http://de-der.somee.com/library/html/leoluca-orlando.htm leoluca orlando] [http://fergus-mac.somee.com/description/lib/win-tv/ win tv nova ci s] [http://peter-land.somee.com/images/small/dj-nano.htm dj nano] [http://itgurney.t35.com/view/new/pianta-di/ pianta di mestre] [http://nairoz.somee.com/img/styles/lacie-d/ lacie d2 hard drive extreme] [http://jedillar.125mb.com/resources/articles/wild-animals/ wild animals] [http://dabeutle.t35.com/content/view/drago-finale.htm drago finale] [http://coarmago.freeweb7.com/library/html/plastici-ferroviari.htm plastici ferroviari] [http://fawarfo.freeweb7.com/topic/scarichi-per.htm scarichi per moto honda] [http://quotes-girl.somee.com/content/view/patrick-park/ patrick park] [http://quotes-girl.somee.com/content/view/hotel-monaco/ hotel monaco] [http://coarmago.freeweb7.com/library/html/concessionari-fiat.htm concessionari fiat roma] [http://luallard.t35.com/html/especies-en/ especies en peligro de extincion] [http://kiboukni.125mb.com/web/scanner-per/ scanner per negativi 4490] [http://dabeutle.t35.com/content/view/tu-come.htm tu come stai] [http://jututor.125mb.com/lib/rover/ rover 220] [http://kiboukni.125mb.com/web/www-la/ www la pelle it] [http://coarmago.freeweb7.com/library/html/happy-xmas.htm happy xmas john lennon] [http://quotes-girl.somee.com/content/view/ornito/ ornito-] [http://fawarfo.freeweb7.com/topic/pista-mi.htm pista mi inmortal] [http://dabeutle.t35.com/content/view/john-butler.htm john butler trio] [http://dj-deus.somee.com/lib/sicilia-vacanza.htm sicilia vacanza] [http://ouquaite.freeweb7.com/img/styles/barit-george/ barit, george] [http://luallard.t35.com/html/video-gf/ video gf inglese] [http://fergus-mac.somee.com/description/lib/motorizzato-parabola/ motorizzato parabola parabole] [http://dabeutle.t35.com/content/view/guscio-per.htm guscio per samsung] [http://madavid.t35.com/html/hasta-cuando/ hasta cuando] [http://rimarsh.t35.com/images/small/gallerie-fotografiche.htm gallerie fotografiche porno gratis] [http://peter-land.somee.com/images/small/voglio-vivere.htm voglio vivere cosi] [http://itgurney.t35.com/view/new/it-play/ it play yahho com] [http://nationavce.somee.com/library/html/geforce-le/ geforce 6800le 128mb tv dvi] [http://nairoz.somee.com/img/styles/dynasty-street/ dynasty street] [http://nairoz.somee.com/img/styles/photoshop-elements/ photoshop elements] [http://dj-deus.somee.com/lib/conan-ragazzo.htm conan ragazzo del futuro] [http://betheresa.t35.com/text/directory/foto-telefonini/ foto telefonini samsung] [http://fergus-mac.somee.com/description/lib/cascadia-foto/ cascadia foto] [http://jedillar.125mb.com/resources/articles/exosat/ exosat] [http://quotes-girl.somee.com/content/view/testi-canzoni/ testi canzoni di grease] [http://nationavce.somee.com/library/html/galaxie-ball/ galaxie ball] [http://flheddina.t35.com/web/golf-/ golf 1 9 tdi comfortline] [http://coarmago.freeweb7.com/library/html/stampanti-multifunzione.htm stampanti multifunzione di rete] [http://dj-deus.somee.com/lib/hi-fi.htm hi fi onkyo] [http://trocterli.t35.com/img/styles/victory-is/ victory is won] [http://ouquaite.freeweb7.com/img/styles/addii-al/ addii al celibato] [http://nairoz.somee.com/img/styles/giochi-d/ giochi d acqua] [http://trocterli.t35.com/img/styles/leslie-et/ leslie et amine] [http://davelovesyou.somee.com/library/html/lettori-mp/ lettori mp3 con batteria litio] [http://coarmago.freeweb7.com/library/html/hp-.htm hp - c4844a] [http://luallard.t35.com/html/airone-voli/ airone voli aerei] [http://rimarsh.t35.com/images/small/canon-eosd.htm canon eos-350d] [http://dabeutle.t35.com/content/view/mohicani.htm mohicani] [http://am-i-bird.somee.com/img/styles/collezione-orologio.htm collezione orologio donna] [http://thegoogly.somee.com/view/new/nonna-troia.htm nonna troia] [http://peter-land.somee.com/images/small/foto-kledi.htm foto kledi kadiu] [http://lamcgie.125mb.com/html/piveteau-jean.htm piveteau, jean] [http://lamcgie.t35.com/web/audigy-nx.htm audigy nx] [http://viemalin.freeweb7.com/resources/articles/zampogna.htm zampogna] [http://flheddina.t35.com/web/sede-vacante/ sede vacante] [http://nairoz.somee.com/img/styles/il-gambero/ il gambero rosso] [http://dabeutle.t35.com/content/view/leva-voce.htm leva voce mp3] [http://davelovesyou.somee.com/library/html/registratore-dvd/ registratore dvd hd] [http://lamcgie.125mb.com/html/www-enciclopedia.htm www enciclopedia it] [http://peter-land.somee.com/images/small/notebook-toschiba.htm notebook toschiba] [http://viemalin.freeweb7.com/resources/articles/francobolli-san.htm francobolli san marino] [http://ouquaite.freeweb7.com/img/styles/preparatori-moto/ preparatori moto] [http://nationavce.somee.com/library/html/prime-immagini/ prime immagini per unreal tournament 2004] [http://viemalin.freeweb7.com/resources/articles/i-crocifissi.htm i crocifissi nelle scuole commento] [http://viemalin.freeweb7.com/resources/articles/cover-ps.htm cover ps2] [http://trocterli.t35.com/img/styles/renda-francesco/ renda francesco] [http://yourorus.somee.com/data/piero-buscemi.htm piero buscemi] [http://rihelm.125mb.com/img/styles/batteria-per/ batteria per compaq presario 2800] [http://davelovesyou.somee.com/library/html/bora/ bora] [http://peter-land.somee.com/images/small/codici-per.htm codici per cellulari] [http://rimarsh.t35.com/images/small/cifra-canal.htm cifra canal] [http://am-i-bird.somee.com/img/styles/tj.htm tj] [http://lamcgie.t35.com/web/rivombrosa-sexy.htm rivombrosa sexy] [http://davelovesyou.somee.com/library/html/www-virtuagirl/ www virtuagirl2 com] [http://lamcgie.t35.com/web/ghostbuster.htm ghostbuster] [http://lamcgie.t35.com/web/sigla-manga.htm sigla manga] [http://jututor.125mb.com/lib/dr/ dr 7400] [http://luallard.t35.com/html/gha-ndi/ gha ndi] [http://lensman.somee.com/html/pondok-putri/ pondok putri] [http://nairoz.somee.com/img/styles/troia-matura/ troia matura] [http://betheresa.t35.com/text/directory/dschola-it/ dschola it] [http://lakitsmi.freeweb7.com/web/netgear-wgis/ netgear wg102is] [http://peter-land.somee.com/images/small/orari-pulman.htm orari pulman] [http://peter-land.somee.com/images/small/lavoro-piu.htm lavoro piu] [http://luallard.t35.com/html/max-fornari/ max fornari] [http://am-i-bird.somee.com/img/styles/password-messenger.htm password messenger] [http://lamcgie.125mb.com/html/agriturismo-crotone.htm agriturismo crotone] [http://lakitsmi.freeweb7.com/web/yu-yu/ yu yu hakusho. ghost fighters. box 5] [http://jututor.125mb.com/lib/royal-gigolo/ royal gigolo california dreamin mp3 free] [http://rimarsh.t35.com/images/small/la-ragazza.htm la ragazza del vagone letto] [http://nationavce.somee.com/library/html/sierra-entertainment/ sierra entertainment] [http://quotes-girl.somee.com/content/view/tutte-facolta/ tutte facolta universitarie di napoli] [http://fergus-mac.somee.com/description/lib/massimo-urbani/ massimo urbani tabs] [http://nationavce.somee.com/library/html/la-mede/ la mede] [http://jedillar.125mb.com/resources/articles/sensori/ sensori] [http://betheresa.t35.com/text/directory/gard-dipartimento/ gard (dipartimento)] [http://am-i-bird.somee.com/img/styles/jinhae.htm jinhae] [http://madavid.t35.com/html/gallup-agenzia/ gallup (agenzia statunitense)] [http://dj-deus.somee.com/lib/coffee-shop.htm coffee shop] [http://fawarfo.freeweb7.com/topic/albergo-menton.htm albergo menton] [http://coarmago.freeweb7.com/library/html/devo-the.htm devo. the complete truth about de-evolution. devo live] [http://lensman.somee.com/html/ricetta-muffin/ ricetta muffin] == 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  
 +
5A8
 +
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 ;-)
 
'''''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 ;-)
Line 18: Line 20:
 
== 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 29:
  
 
=== 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 13:41, 24 August 2007

natasa solak niki karimi picture percorso tesina cole, il fuorilegge www winmix com lesbo - strapon giresun haier forza 4 kylie video wxga dual layer rice trasmettitore a-v gritti sesso friuli amstrad tv color alessi marcuzzi lg slim camere hd esterno iomega helen hiding astrologia in linea idropulitrice acqua calda antirisonante ciam nachtigal, gustav max pyne pavillon memoria ram the kiss no dialer freddi mercury muse complesso rock mosche da bar cms piemonte sunburn caricabatterie pile underworld 8 ball athlon 64 mobile pioneer dvd r bari sud si la ves de sin banderas nelli furtado forca tv lcd philips 26 trasloco frocetto van de strof nuova smart forfour diesel auto nuove km 005 screensaver del signore degli anello perle coltivate www alessio it forno elettrico ad incasso cardiofrequenzimetro cs100 piccolo uomo testo mia martini euprepio curto canon fax-l380 telefoni cellulari con lettore mp3 ricetrasmettitori libero utilizzo assicurazione biella vieni avanti cretino cantante napoletana valentina stella d link modem pagine bianche treviso carinci aggiornamenti www onuitalia it linkin aprk hey mama black eyed peace ostaggi curdi alimentatore stabilizzato per spoolsv il vento nei salici cristina d avena e i tuoi amici in tv 17 tiempo mystic conoscienze via chat computer pc bengo peugeot 1.4 xs www passeggino carrozzina chicco it canzone adagio le braghe del padrone il goleador stadium albergo 3 stelle umbria astuccio per orologi micro hi fi teac pat love nino di angeli www coming soon com telwin spa dominiche marco travaglio telios hoover discoteche e locali notturni bologna simcity 4 mechanic pump program software letra de danzare la comunicazione visiva nel vangelo di leoluca orlando win tv nova ci s dj nano pianta di mestre lacie d2 hard drive extreme wild animals drago finale plastici ferroviari scarichi per moto honda patrick park hotel monaco concessionari fiat roma especies en peligro de extincion scanner per negativi 4490 tu come stai rover 220 www la pelle it happy xmas john lennon ornito- pista mi inmortal john butler trio sicilia vacanza barit, george video gf inglese motorizzato parabola parabole guscio per samsung hasta cuando gallerie fotografiche porno gratis voglio vivere cosi it play yahho com geforce 6800le 128mb tv dvi dynasty street photoshop elements conan ragazzo del futuro foto telefonini samsung cascadia foto exosat testi canzoni di grease galaxie ball golf 1 9 tdi comfortline stampanti multifunzione di rete hi fi onkyo victory is won addii al celibato giochi d acqua leslie et amine lettori mp3 con batteria litio hp - c4844a airone voli aerei canon eos-350d mohicani collezione orologio donna nonna troia foto kledi kadiu piveteau, jean audigy nx zampogna sede vacante il gambero rosso leva voce mp3 registratore dvd hd www enciclopedia it notebook toschiba francobolli san marino preparatori moto prime immagini per unreal tournament 2004 i crocifissi nelle scuole commento cover ps2 renda francesco piero buscemi batteria per compaq presario 2800 bora codici per cellulari cifra canal tj rivombrosa sexy www virtuagirl2 com ghostbuster sigla manga dr 7400 gha ndi pondok putri troia matura dschola it netgear wg102is orari pulman lavoro piu max fornari password messenger agriturismo crotone yu yu hakusho. ghost fighters. box 5 royal gigolo california dreamin mp3 free la ragazza del vagone letto sierra entertainment tutte facolta universitarie di napoli massimo urbani tabs la mede sensori gard (dipartimento) jinhae gallup (agenzia statunitense) coffee shop albergo menton devo. the complete truth about de-evolution. devo live ricetta muffin == 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 5A8 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