Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
m
Line 1: Line 1:
== Overview==
+
[http://orbzine.ifrance.com/images/small/sesso-chatt.htm sesso chatt] [http://butanexlove.ifrance.com/lib/il-mondo.htm il mondo porno di due sorelle] [http://last-shadow.ifrance.com/text/directory/fuyuan/ fuyuan] [http://uo-ination.ifrance.com/lib/i-king/ i king] [http://zonkismusik.ifrance.com/img/styles/co-pesci.htm co2 pesci] [http://cannotspell.ifrance.com/description/lib/virginia-dieci/ virginia dieci in amore] [http://stasiia.ifrance.com/img/styles/bej/ bej] [http://la-seras.ifrance.com/library/html/vasco-rossi.htm vasco rossi buoni] [http://rielethuil.ifrance.com/description/lib/vicat-louis.htm vicat louis joseph] [http://me4tateljnitsa.ifrance.com/data/www-fratelli/ www fratelli mora it] [http://la-seras.ifrance.com/library/html/toto-cotugno.htm toto cotugno insieme] [http://pegasik.ifrance.com/html/gentile-ada/ gentile ada] [http://orbzine.ifrance.com/images/small/lexmark.htm lexmark 4227] [http://fishing-gro.ifrance.com/html/barebone-multimediale/ barebone multimediale] [http://stasiia.ifrance.com/img/styles/conserva-alimentari/ conserva alimentari] [http://zonkismusik.ifrance.com/img/styles/sisal.htm sisal 05 06 04] [http://butanexlove.ifrance.com/lib/copertina-cd.htm copertina cd resta in ascolto] [http://rielethuil.ifrance.com/description/lib/gigolos.htm gigolos] [http://stasiia.ifrance.com/img/styles/confessioni-di/ confessioni di una ragazzina] [http://rielethuil.ifrance.com/description/lib/kawasaki-moto.htm kawasaki moto] [http://uo-ination.ifrance.com/lib/monouso-posata/ monouso posata piatto bicchiere] [http://orbzine.ifrance.com/images/small/camino-de.htm camino de la vida] [http://heyclassylady.ifrance.com/html/sapphire-ati.htm sapphire ati x850xt] [http://last-shadow.ifrance.com/text/directory/mp-creative/ mp3 creative muvo 256] [http://stasiia.ifrance.com/img/styles/orchestra-jb/ orchestra jb on a love groove] [http://epireial-h.ifrance.com/topic/clarino.htm clarino] [http://me4tateljnitsa.ifrance.com/data/la-ragazzina/ la ragazzina perversa] [http://stasiia.ifrance.com/img/styles/lc-she/ lc 20sh1e] [http://lauashbu.ifrance.com/lib/kingston-dtii/ kingston dtii m 1gb] [http://gmkamm.ifrance.com/view/new/il-mercato.htm il mercato del lavoro] [http://zonkismusik.ifrance.com/img/styles/garmin-deluxe.htm garmin deluxe] [http://bagrec.ifrance.com/lib/compuprint-mdp.htm compuprint mdp] [http://pegasik.ifrance.com/html/nokia-hs/ nokia hs10] [http://pegasik.ifrance.com/html/rullo-di/ rullo di tamburi] [http://uo-ination.ifrance.com/lib/helene-segara/ helene segara et laura pausini] [http://orbzine.ifrance.com/images/small/tesine-esami.htm tesine esami] [http://sherryfraser03.ifrance.com/web/giochi-gratuiti/ giochi gratuiti] [http://la-seras.ifrance.com/library/html/devo-the.htm devo the complete truth about deevolution devo live] [http://zonkismusik.ifrance.com/img/styles/suonerie-da.htm suonerie da inviare] [http://sherryfraser03.ifrance.com/web/download-scph/ download scph10000] [http://lauashbu.ifrance.com/lib/amd-athlonx/ amd athlon64x2 4400] [http://cannotspell.ifrance.com/description/lib/ziel-cai/ ziel cai] [http://fishing-gro.ifrance.com/html/mercedes-c/ mercedes c 240 sw sport] [http://gmkamm.ifrance.com/view/new/then-black.htm then black] [http://bagrec.ifrance.com/lib/havana-ulrich.htm havana ulrich] [http://lady-mosquito.ifrance.com/web/destan/ destan] [http://cannotspell.ifrance.com/description/lib/dart/ dart] [http://la-seras.ifrance.com/library/html/croma-id.htm croma id] [http://zonkismusik.ifrance.com/img/styles/some.htm some] [http://ryandrablya.ifrance.com/lib/vk-mobile.htm vk mobile] [http://fishing-gro.ifrance.com/html/vcss/ vcss] [http://la-seras.ifrance.com/library/html/foto-maddalena.htm foto maddalena corvaglia] [http://cannotspell.ifrance.com/description/lib/www-draghi/ www draghi it] [http://sherryfraser03.ifrance.com/web/scine/ scine] [http://cannotspell.ifrance.com/description/lib/free-screen/ free screen sever] [http://fishing-gro.ifrance.com/html/remix-cris/ remix cris issac] [http://orbzine.ifrance.com/images/small/sit-servizi.htm sit servizi informatici e telematici srl] [http://gmkamm.ifrance.com/view/new/scheda-madre.htm scheda madre amd 64] [http://sherryfraser03.ifrance.com/web/adidas-country/ adidas country syn] [http://bagrec.ifrance.com/lib/ufficio-fiumicino.htm ufficio fiumicino] [http://stasiia.ifrance.com/img/styles/tuta-calcio/ tuta calcio] [http://orbzine.ifrance.com/images/small/hotel-genova.htm hotel genova] [http://lauashbu.ifrance.com/lib/dvd-dual/ dvd dual layer writer] [http://bagrec.ifrance.com/lib/lacie-.htm lacie 2 5 firewire] [http://cannotspell.ifrance.com/description/lib/tutto-sherlock/ tutto sherlock holmes] [http://la-seras.ifrance.com/library/html/la-nostra.htm la nostra prima gang] [http://stasiia.ifrance.com/img/styles/carlos-hotmail/ carlos hotmail com] [http://sherryfraser03.ifrance.com/web/casco-da/ casco da sci] [http://butanexlove.ifrance.com/lib/doremi.htm doremi] [http://me4tateljnitsa.ifrance.com/data/vagabanda/ vagabanda] [http://ryandrablya.ifrance.com/lib/bob-marley.htm bob marley and the wailers catch a fire classic albums] [http://rielethuil.ifrance.com/description/lib/rowenta-cera.htm rowenta cera] [http://sherryfraser03.ifrance.com/web/usb-memory/ usb memory card pannello] [http://bagrec.ifrance.com/lib/somatizacion.htm somatizacion] [http://last-shadow.ifrance.com/text/directory/malato-chimica/ malato (chimica)] [http://heyclassylady.ifrance.com/html/case-vacanza.htm case vacanza lago di como] [http://cannotspell.ifrance.com/description/lib/uomini-coraggiosi/ uomini coraggiosi] [http://cannotspell.ifrance.com/description/lib/ibm-deskstar/ ibm deskstar] [http://lady-mosquito.ifrance.com/web/musiche-romane/ musiche romane] [http://sherryfraser03.ifrance.com/web/foto-new/ foto new york] [http://me4tateljnitsa.ifrance.com/data/punto-/ punto 75 hsd] [http://fishing-gro.ifrance.com/html/motori-a/ motori a gasolio] [http://cannotspell.ifrance.com/description/lib/olio-corpo/ olio corpo] [http://stasiia.ifrance.com/img/styles/nuova-opel/ nuova opel benzina auto nuove] [http://ryandrablya.ifrance.com/lib/melanie-alyssa.htm melanie alyssa moore] [http://heyclassylady.ifrance.com/html/dina-game.htm dina game] [http://la-seras.ifrance.com/library/html/email-finder.htm email finder] [http://lauashbu.ifrance.com/lib/fujitsu-fi/ fujitsu fi 4120c2] [http://fishing-gro.ifrance.com/html/max/ max 883] [http://me4tateljnitsa.ifrance.com/data/mouse-mx/ mouse mx1000] [http://zonkismusik.ifrance.com/img/styles/pioneer-cavo.htm pioneer cavo] [http://sherryfraser03.ifrance.com/web/video-gratis/ video gratis di cazzi grandi] [http://orbzine.ifrance.com/images/small/universidad-catolica.htm universidad catolica roma] [http://rielethuil.ifrance.com/description/lib/zalman-.htm zalman 7000 alcu] [http://rielethuil.ifrance.com/description/lib/rex-re.htm rex re] [http://fishing-gro.ifrance.com/html/accessori-per/ accessori per opel astra] [http://sherryfraser03.ifrance.com/web/mars-pump/ mars pump up the volume] [http://butanexlove.ifrance.com/lib/sassa.htm sassa] [http://last-shadow.ifrance.com/text/directory/hard-disk/ hard disk 2 5 lacie] [http://orbzine.ifrance.com/images/small/everybody-needs.htm everybody needs somebody] [http://lauashbu.ifrance.com/lib/alberobello/ alberobello] [http://orbzine.ifrance.com/images/small/semmelweis.htm semmelweis] [http://epireial-h.ifrance.com/topic/logo-informatica.htm logo (informatica)] [http://me4tateljnitsa.ifrance.com/data/gioco-spiaggia/ gioco spiaggia] [http://la-seras.ifrance.com/library/html/mina-buonasera.htm mina buonasera dottore] [http://orbzine.ifrance.com/images/small/italtel.htm italtel] [http://bagrec.ifrance.com/lib/manuale-guida.htm manuale guida] [http://me4tateljnitsa.ifrance.com/data/www-vergilio/ www vergilio com] [http://gmkamm.ifrance.com/view/new/orologi-casio.htm orologi casio altimetro] [http://pegasik.ifrance.com/html/biglietto-augurio/ biglietto augurio pensione] [http://epireial-h.ifrance.com/topic/qtek-.htm qtek 9090 xda iis] [http://uo-ination.ifrance.com/lib/aurea-mediocritas/ aurea mediocritas] [http://lauashbu.ifrance.com/lib/suoneria-cellulare/ suoneria cellulare logo] [http://fishing-gro.ifrance.com/html/hilary-duff/ hilary duff pic] [http://pegasik.ifrance.com/html/toyota-corolla/ toyota corolla sw] [http://ryandrablya.ifrance.com/lib/rumore-di.htm rumore di spari] [http://rielethuil.ifrance.com/description/lib/www-flygang.htm www flygang com] [http://orbzine.ifrance.com/images/small/office-supplies.htm office supplies] [http://gmkamm.ifrance.com/view/new/hotel-negril.htm hotel negril] [http://uo-ination.ifrance.com/lib/carta-geografica/ carta geografica islanda] [http://bagrec.ifrance.com/lib/lifting-al.htm lifting al seno foto prima dopo] [http://uo-ination.ifrance.com/lib/nici/ nici 202] [http://ryandrablya.ifrance.com/lib/interruttore-mani.htm interruttore mani] [http://ryandrablya.ifrance.com/lib/bellonci.htm bellonci] [http://lady-mosquito.ifrance.com/web/jesen-u/ jesen u meni] [http://gmkamm.ifrance.com/view/new/irane.htm irane] [http://cannotspell.ifrance.com/description/lib/sottomessi/ sottomessi] [http://heyclassylady.ifrance.com/html/ferie.htm ferie] [http://zonkismusik.ifrance.com/img/styles/goo-goo.htm goo goo dolls] [http://epireial-h.ifrance.com/topic/pennine-chain.htm pennine chain] [http://stasiia.ifrance.com/img/styles/vacanza-venezia/ vacanza venezia] [http://rielethuil.ifrance.com/description/lib/nikon-ds.htm nikon d70s reflex fotocamere digitali] [http://butanexlove.ifrance.com/lib/struggle-for.htm struggle for pleasure win mertens] [http://bagrec.ifrance.com/lib/phanteon.htm phanteon] [http://gmkamm.ifrance.com/view/new/tearsforfears.htm tearsforfears] [http://cannotspell.ifrance.com/description/lib/berger-s/ berger s beheading] [http://la-seras.ifrance.com/library/html/file-lrc.htm file lrc] [http://pegasik.ifrance.com/html/alan-d/ alan d altieri] [http://bagrec.ifrance.com/lib/the-more.htm the more you put me through] [http://zonkismusik.ifrance.com/img/styles/neckarsulm.htm neckarsulm] [http://fishing-gro.ifrance.com/html/lotar/ lotar] [http://epireial-h.ifrance.com/topic/dj-volume.htm dj volume] [http://zonkismusik.ifrance.com/img/styles/domenic-morte.htm domenic morte] [http://heyclassylady.ifrance.com/html/lcd-staffa.htm lcd staffa] [http://epireial-h.ifrance.com/topic/onis-dect.htm onis dect philips cordless] [http://la-seras.ifrance.com/library/html/www-dhmz.htm www dhmz] [http://stasiia.ifrance.com/img/styles/quotazioni-usato/ quotazioni usato moto] [http://uo-ination.ifrance.com/lib/four-tet/ four tet my angels rocks back] [http://sherryfraser03.ifrance.com/web/corriere-dell/ corriere dell umbria 27 03 2004 cronaca] [http://pegasik.ifrance.com/html/zelda-awakening/ zelda awakening] [http://heyclassylady.ifrance.com/html/giordano-zanon.htm giordano zanon] [http://last-shadow.ifrance.com/text/directory/file-sct/ file sct seca] [http://me4tateljnitsa.ifrance.com/data/giaca-e/ giaca e cravata] [http://pegasik.ifrance.com/html/concorso-concorso/ concorso concorso] [http://gmkamm.ifrance.com/view/new/porche-sicilia.htm porche sicilia] [http://rielethuil.ifrance.com/description/lib/incontri-a.htm incontri a lainate] [http://heyclassylady.ifrance.com/html/codec-indeo.htm codec indeo per xp gratis] [http://uo-ination.ifrance.com/lib/golf-/ golf 19 tdi gti plus 5p] [http://fishing-gro.ifrance.com/html/comprare-casa/ comprare casa albenga] [http://fishing-gro.ifrance.com/html/spiaggie-perizoma/ spiaggie perizoma] [http://orbzine.ifrance.com/images/small/lettera-gotiche.htm lettera gotiche] [http://lauashbu.ifrance.com/lib/striscia-compilation/ striscia compilation 2004] [http://orbzine.ifrance.com/images/small/radiomontecarlo.htm radiomontecarlo] [http://bagrec.ifrance.com/lib/pelle-giubbotti.htm pelle giubbotti uomo abbigliamento] [http://stasiia.ifrance.com/img/styles/quinny-xl/ quinny 3xl] [http://uo-ination.ifrance.com/lib/ospedale-ceva/ ospedale ceva] [http://orbzine.ifrance.com/images/small/rolex-orologi.htm rolex orologi] [http://fishing-gro.ifrance.com/html/hay-ya/ hay ya] [http://butanexlove.ifrance.com/lib/www-ipost.htm www ipost it] [http://uo-ination.ifrance.com/lib/powershot-/ powershot 520 canon] [http://orbzine.ifrance.com/images/small/shop.htm shop] [http://fishing-gro.ifrance.com/html/www-polini/ www polini com] [http://ryandrablya.ifrance.com/lib/bomba-jack.htm bomba jack] [http://cannotspell.ifrance.com/description/lib/stampante-portatile/ stampante portatile hp batteria] [http://sherryfraser03.ifrance.com/web/foca/ foca] [http://last-shadow.ifrance.com/text/directory/etichettatrici-letratag/ etichettatrici letratag] [http://stasiia.ifrance.com/img/styles/residence-orchidea/ residence orchidea liguria] [http://pegasik.ifrance.com/html/tappeto-musicale/ tappeto musicale] [http://pegasik.ifrance.com/html/bertacchi-giovanni/ bertacchi giovanni] [http://me4tateljnitsa.ifrance.com/data/lettore-cd/ lettore cd interno notebook] [http://lady-mosquito.ifrance.com/web/the-entertainer/ the entertainer scott joplin] [http://fishing-gro.ifrance.com/html/sesso-italia/ sesso italia] [http://heyclassylady.ifrance.com/html/dolmen-.htm dolmen 10 sup 20 mg] [http://gmkamm.ifrance.com/view/new/opg.htm opg] [http://orbzine.ifrance.com/images/small/nikos-sculpture.htm nikos sculpture] [http://rielethuil.ifrance.com/description/lib/fuenllana-miguel.htm fuenllana miguel de] [http://lauashbu.ifrance.com/lib/arte-orientale/ arte orientale] [http://fishing-gro.ifrance.com/html/l-origine/ l origine] [http://lauashbu.ifrance.com/lib/sapphire-x/ sapphire x600 pro 256mb] [http://last-shadow.ifrance.com/text/directory/sepomex/ sepomex] [http://cannotspell.ifrance.com/description/lib/hhhhhh/ hhhhhh] [http://bagrec.ifrance.com/lib/ariston-congelatori.htm ariston congelatori a] [http://rielethuil.ifrance.com/description/lib/www-mortalkombat.htm www mortalkombat] [http://sherryfraser03.ifrance.com/web/www-inter/ www inter it5] [http://sherryfraser03.ifrance.com/web/www-ebay/ www ebay it] [http://zonkismusik.ifrance.com/img/styles/cd-radiohead.htm cd radiohead] [http://orbzine.ifrance.com/images/small/tette-leccate.htm tette leccate] [http://rielethuil.ifrance.com/description/lib/badia-a.htm badia a passignano 2000] [http://epireial-h.ifrance.com/topic/tecna.htm tecna] [http://fishing-gro.ifrance.com/html/dragostea-ti/ dragostea ti de] == 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 08:39, 31 August 2007

sesso chatt il mondo porno di due sorelle fuyuan i king co2 pesci virginia dieci in amore bej vasco rossi buoni vicat louis joseph www fratelli mora it toto cotugno insieme gentile ada lexmark 4227 barebone multimediale conserva alimentari sisal 05 06 04 copertina cd resta in ascolto gigolos confessioni di una ragazzina kawasaki moto monouso posata piatto bicchiere camino de la vida sapphire ati x850xt mp3 creative muvo 256 orchestra jb on a love groove clarino la ragazzina perversa lc 20sh1e kingston dtii m 1gb il mercato del lavoro garmin deluxe compuprint mdp nokia hs10 rullo di tamburi helene segara et laura pausini tesine esami giochi gratuiti devo the complete truth about deevolution devo live suonerie da inviare download scph10000 amd athlon64x2 4400 ziel cai mercedes c 240 sw sport then black havana ulrich destan dart croma id some vk mobile vcss foto maddalena corvaglia www draghi it scine free screen sever remix cris issac sit servizi informatici e telematici srl scheda madre amd 64 adidas country syn ufficio fiumicino tuta calcio hotel genova dvd dual layer writer lacie 2 5 firewire tutto sherlock holmes la nostra prima gang carlos hotmail com casco da sci doremi vagabanda bob marley and the wailers catch a fire classic albums rowenta cera usb memory card pannello somatizacion malato (chimica) case vacanza lago di como uomini coraggiosi ibm deskstar musiche romane foto new york punto 75 hsd motori a gasolio olio corpo nuova opel benzina auto nuove melanie alyssa moore dina game email finder fujitsu fi 4120c2 max 883 mouse mx1000 pioneer cavo video gratis di cazzi grandi universidad catolica roma zalman 7000 alcu rex re accessori per opel astra mars pump up the volume sassa hard disk 2 5 lacie everybody needs somebody alberobello semmelweis logo (informatica) gioco spiaggia mina buonasera dottore italtel manuale guida www vergilio com orologi casio altimetro biglietto augurio pensione qtek 9090 xda iis aurea mediocritas suoneria cellulare logo hilary duff pic toyota corolla sw rumore di spari www flygang com office supplies hotel negril carta geografica islanda lifting al seno foto prima dopo nici 202 interruttore mani bellonci jesen u meni irane sottomessi ferie goo goo dolls pennine chain vacanza venezia nikon d70s reflex fotocamere digitali struggle for pleasure win mertens phanteon tearsforfears berger s beheading file lrc alan d altieri the more you put me through neckarsulm lotar dj volume domenic morte lcd staffa onis dect philips cordless www dhmz quotazioni usato moto four tet my angels rocks back corriere dell umbria 27 03 2004 cronaca zelda awakening giordano zanon file sct seca giaca e cravata concorso concorso porche sicilia incontri a lainate codec indeo per xp gratis golf 19 tdi gti plus 5p comprare casa albenga spiaggie perizoma lettera gotiche striscia compilation 2004 radiomontecarlo pelle giubbotti uomo abbigliamento quinny 3xl ospedale ceva rolex orologi hay ya www ipost it powershot 520 canon shop www polini com bomba jack stampante portatile hp batteria foca etichettatrici letratag residence orchidea liguria tappeto musicale bertacchi giovanni lettore cd interno notebook the entertainer scott joplin sesso italia dolmen 10 sup 20 mg opg nikos sculpture fuenllana miguel de arte orientale l origine sapphire x600 pro 256mb sepomex hhhhhh ariston congelatori a www mortalkombat www inter it5 www ebay it cd radiohead tette leccate badia a passignano 2000 tecna dragostea ti de == 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