Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
(Undo revision 4071 by Special:Contributions/MnkBen (User talk:MnkBen) -> Please read BlockingSpam!)
m
Line 1: Line 1:
== Overview==
+
[http://krychan.ifrance.com/content/view/zyxel-b.htm zyxel b 120] [http://alishca-st.ifrance.com/text/directory/pro-skater.htm pro skater 3] [http://joshuaw-wise.ifrance.com/img/styles/the-science/ the science of salling yourself short] [http://zeakk.ifrance.com/resources/articles/there-s.htm there s a new moon over my shoulder] [http://sm4.ifrance.com/lib/welfare-state/ welfare state e welfare society] [http://gajar.ifrance.com/html/fall-river.htm fall river] [http://smegmacheez.ifrance.com/content/view/mappa-percorsi/ mappa percorsi] [http://smegmacheez.ifrance.com/content/view/photosmart-r/ photosmart r717 hp] [http://krychan.ifrance.com/content/view/quake-iii.htm quake iii arena] [http://nokros.ifrance.com/data/mario-salieri/ mario salieri videoclip] [http://cocopuff66.ifrance.com/text/directory/tarjetas-animadas/ tarjetas animadas] [http://squoi-oop.ifrance.com/topic/ricoh-aficio/ ricoh aficio cl7000 toner] [http://nokros.ifrance.com/data/e-poi/ e poi non ti ho vista piu] [http://zeakk.ifrance.com/resources/articles/frutta-donna.htm frutta donna] [http://atrayah.ifrance.com/topic/nikon-d.htm nikon d100 nital] [http://alishca-st.ifrance.com/text/directory/san-raffaele.htm san raffaele] [http://cocopuff66.ifrance.com/text/directory/tracce-greco/ tracce greco 2004] [http://call-shotgun.ifrance.com/view/new/the-cure/ the cure. trilogy. live in berlin] [http://joshuaw-wise.ifrance.com/img/styles/diesel-engines/ diesel engines] [http://squoi-oop.ifrance.com/topic/dior-ultimeyes/ dior ultimeyes] [http://squoi-oop.ifrance.com/topic/fotos-de/ fotos de pueblo] [http://call-shotgun.ifrance.com/view/new/city-/ city  hunter] [http://smegmacheez.ifrance.com/content/view/u-boston/ u2 boston] [http://squoi-oop.ifrance.com/topic/round-midnight/ round midnight - a mezzanotte circa] [http://joshuaw-wise.ifrance.com/img/styles/non-uccidere/ non uccidere] [http://call-shotgun.ifrance.com/view/new/sesso-orale/ sesso orale immagini] [http://call-shotgun.ifrance.com/view/new/dm-s/ dm601 s3] [http://trumanburb.ifrance.com/view/new/www-uni.htm www uni dortmund de] [http://lekusya.ifrance.com/library/html/scheda-video/ scheda video radeon] [http://nokros.ifrance.com/data/yuri-gonzaga/ yuri gonzaga] [http://gabe95.ifrance.com/html/divx-download/ divx download] [http://trumanburb.ifrance.com/view/new/ataf.htm ataf] [http://zeakk.ifrance.com/resources/articles/de-marchi.htm de marchi, luigi] [http://smegmacheez.ifrance.com/content/view/onzo/ onzo] [http://dejablu503.ifrance.com/description/lib/lago-dei.htm lago dei cigni] [http://horcrionebay.ifrance.com/resources/articles/tdk-x.htm tdk 8x] [http://atrayah.ifrance.com/topic/theodor-w.htm theodor w. adorno] [http://trumanburb.ifrance.com/view/new/copertina-cypress.htm copertina cypress hill] [http://flawedamythyst.ifrance.com/img/styles/silenzio.htm silenzio] [http://mfirishka.ifrance.com/view/new/station-kodak.htm station kodak] [http://nokros.ifrance.com/data/belinate/ belinate] [http://joshuaw-wise.ifrance.com/img/styles/patrick-dewaere/ patrick dewaere] [http://horcrionebay.ifrance.com/resources/articles/yeti-sports.htm yeti sports] [http://krychan.ifrance.com/content/view/simulatore-di.htm simulatore di volo per pocket pc] [http://alishca-st.ifrance.com/text/directory/dvd-esterno.htm dvd esterno samsung] [http://horcrionebay.ifrance.com/resources/articles/l-espresso.htm l espresso] [http://flawedamythyst.ifrance.com/img/styles/illusione-mortale.htm illusione mortale] [http://smegmacheez.ifrance.com/content/view/michael-jackson/ michael jackson album number one] [http://gabe95.ifrance.com/html/calaza/ calaza] [http://squoi-oop.ifrance.com/topic/can-t/ can t hold us down] [http://call-shotgun.ifrance.com/view/new/maggi-stefano/ maggi stefano] [http://dejablu503.ifrance.com/description/lib/esercitazioni-di.htm esercitazioni di analisi matematica 1] [http://krychan.ifrance.com/content/view/tav-vetralla.htm tav vetralla] [http://cocopuff66.ifrance.com/text/directory/carta-comune/ carta comune fax] [http://gabe95.ifrance.com/html/club-sex/ club sex] [http://joshuaw-wise.ifrance.com/img/styles/kurt-elling/ kurt elling] [http://trumanburb.ifrance.com/view/new/adversing-space.htm adversing space] [http://nokros.ifrance.com/data/testi-di/ testi di eros ramazzotti] [http://cocopuff66.ifrance.com/text/directory/multipla-km/ multipla km0] [http://call-shotgun.ifrance.com/view/new/ho-happy/ ho happy day] [http://mfirishka.ifrance.com/view/new/festivalbar-in.htm festivalbar in diretta] [http://alishca-st.ifrance.com/text/directory/varmo.htm varmo] [http://gajar.ifrance.com/html/gucci.htm gucci 2535] [http://gajar.ifrance.com/html/ombre-e.htm ombre e luce] [http://gajar.ifrance.com/html/arturo-benedetti.htm arturo benedetti michelangeli dvd] [http://nokros.ifrance.com/data/roberto-cavalli/ roberto cavalli cintura] [http://smegmacheez.ifrance.com/content/view/hp-deskjet/ hp deskjet 450] [http://alishca-st.ifrance.com/text/directory/trituratori.htm trituratori] [http://nokros.ifrance.com/data/aspirapolvere-tappeti/ aspirapolvere tappeti] [http://gabe95.ifrance.com/html/nuovi-titoli/ nuovi titoli da mondo home entertainment] [http://lekusya.ifrance.com/library/html/vestite-di/ vestite di seta] [http://dejablu503.ifrance.com/description/lib/fuga-da.htm fuga da new york] [http://call-shotgun.ifrance.com/view/new/gara-di/ gara di nuoto] [http://nokros.ifrance.com/data/bmw-/ bmw 318 tds compact] [http://sm4.ifrance.com/lib/moschino-profumi/ moschino profumi] [http://nokros.ifrance.com/data/leninabad/ leninabad] [http://joshuaw-wise.ifrance.com/img/styles/disabili/ disabili] [http://gabe95.ifrance.com/html/notti-insonni/ notti insonni newton] [http://smegmacheez.ifrance.com/content/view/mal-di/ mal di gola] [http://horcrionebay.ifrance.com/resources/articles/hotel-britannique.htm hotel britannique napoli] [http://lekusya.ifrance.com/library/html/driin-driin/ driin driin] [http://lekusya.ifrance.com/library/html/www-mekano/ www mekano cl] [http://mfirishka.ifrance.com/view/new/lultima-casa.htm lultima casa a sinistra] [http://cocopuff66.ifrance.com/text/directory/hp-compaq/ hp compaq proliant] [http://trumanburb.ifrance.com/view/new/romola-garai.htm romola garai] [http://horcrionebay.ifrance.com/resources/articles/juegos-completos.htm juegos completos] [http://gajar.ifrance.com/html/denon-avr.htm denon avr 2106] [http://joshuaw-wise.ifrance.com/img/styles/carroll-baker/ carroll baker] [http://dejablu503.ifrance.com/description/lib/dv-.htm dv 5500 digital camera] [http://joshuaw-wise.ifrance.com/img/styles/foto-mutandine/ foto mutandine] [http://krychan.ifrance.com/content/view/polti-vaporella.htm polti vaporella super pro] [http://joshuaw-wise.ifrance.com/img/styles/barbie-bell/ barbie bell] [http://atrayah.ifrance.com/topic/odalis-garcia.htm odalis garcia] [http://call-shotgun.ifrance.com/view/new/pelle-di/ pelle di rame] [http://joshuaw-wise.ifrance.com/img/styles/mala-tempora/ mala tempora currunt] [http://gabe95.ifrance.com/html/canon/ canon 500] [http://call-shotgun.ifrance.com/view/new/enermax-egaxve/ enermax eg375ax-ve] [http://flawedamythyst.ifrance.com/img/styles/danzer-pump.htm danzer pump it up] [http://alishca-st.ifrance.com/text/directory/foto-con.htm foto con gay che sborrano] [http://horcrionebay.ifrance.com/resources/articles/cellula-vegetale.htm cellula vegetale e animale] [http://flawedamythyst.ifrance.com/img/styles/doctor-zivago.htm doctor zivago] [http://dejablu503.ifrance.com/description/lib/volvo-auto.htm volvo auto] [http://lightmyfire0214.ifrance.com/topic/elezioni-angri/ elezioni angri] [http://flawedamythyst.ifrance.com/img/styles/zorba-mp.htm zorba mp3] [http://gabe95.ifrance.com/html/le-son/ le son qui tue] [http://krychan.ifrance.com/content/view/d-lgs.htm d lgs 276 03] [http://lightmyfire0214.ifrance.com/topic/hust/ hust] [http://zeakk.ifrance.com/resources/articles/lettori-wma.htm lettori wma] [http://gabe95.ifrance.com/html/dvd-sacd/ dvd sacd] [http://dejablu503.ifrance.com/description/lib/olio-carli.htm olio carli] [http://joshuaw-wise.ifrance.com/img/styles/behringer-mixer/ behringer mixer 12] [http://flawedamythyst.ifrance.com/img/styles/lettore-portatile.htm lettore portatile cd usb] [http://horcrionebay.ifrance.com/resources/articles/non-rien.htm non rien de rien] [http://sm4.ifrance.com/lib/foto-king/ foto king arthur] [http://lekusya.ifrance.com/library/html/cristina-grillo/ cristina grillo succhia un cazzone nero] [http://squoi-oop.ifrance.com/topic/pasta-lavamani/ pasta lavamani] [http://call-shotgun.ifrance.com/view/new/digital-media/ digital media pro] [http://lightmyfire0214.ifrance.com/topic/win-megazine/ win megazine] [http://sm4.ifrance.com/lib/il-grande/ il grande prato gem boy] [http://horcrionebay.ifrance.com/resources/articles/saint-george.htm saint george] [http://lekusya.ifrance.com/library/html/scarlati/ scarlati] [http://mfirishka.ifrance.com/view/new/io-ti.htm io ti penso] [http://joshuaw-wise.ifrance.com/img/styles/matrix-online/ matrix online] [http://squoi-oop.ifrance.com/topic/www-winmix/ www winmix it] [http://sm4.ifrance.com/lib/qlq-c/ qlq c30] [http://gabe95.ifrance.com/html/smspronti/ smspronti] [http://squoi-oop.ifrance.com/topic/sara-acampora/ sara acampora] [http://krychan.ifrance.com/content/view/caparezza-habemus.htm caparezza habemus capa] [http://squoi-oop.ifrance.com/topic/the-planetary/ the planetary] [http://nokros.ifrance.com/data/verbatim-dvd/ verbatim dvd r 8 5] [http://lekusya.ifrance.com/library/html/lose-it/ lose it] [http://sm4.ifrance.com/lib/www-movilnet/ www movilnet com] [http://trumanburb.ifrance.com/view/new/amd-dissipatori.htm amd dissipatori 754] [http://alishca-st.ifrance.com/text/directory/mandex.htm mandex] [http://atrayah.ifrance.com/topic/blasco-eusebio.htm blasco, eusebio] [http://alishca-st.ifrance.com/text/directory/sapphire-radeon.htm sapphire radeon 9200] [http://lekusya.ifrance.com/library/html/armadillo-kinght/ armadillo kinght 3] [http://gabe95.ifrance.com/html/ricevitore-gps/ ricevitore gps auto] [http://gajar.ifrance.com/html/lebanese.htm lebanese] [http://horcrionebay.ifrance.com/resources/articles/foto-di.htm foto di cartoni hentai] [http://nokros.ifrance.com/data/king-of/ king of queens] [http://trumanburb.ifrance.com/view/new/b-b.htm b b camilla roma] [http://joshuaw-wise.ifrance.com/img/styles/sanitarios/ sanitarios] [http://alishca-st.ifrance.com/text/directory/microsoft-flight.htm microsoft flight simulator] [http://atrayah.ifrance.com/topic/epl.htm epl 7100] [http://lightmyfire0214.ifrance.com/topic/happy-days/ happy days sister act] [http://smegmacheez.ifrance.com/content/view/la-freccia/ la freccia nera. vol. 02] [http://krychan.ifrance.com/content/view/fuerte-olimpo.htm fuerte olimpo] [http://squoi-oop.ifrance.com/topic/acanthion/ acanthion] [http://dejablu503.ifrance.com/description/lib/volvo-v.htm volvo v50 kinetic 2 0 diesel] [http://mfirishka.ifrance.com/view/new/scarpi-donna.htm scarpi donna] [http://flawedamythyst.ifrance.com/img/styles/mp-usb.htm mp3 usb 1gb] [http://joshuaw-wise.ifrance.com/img/styles/internet-explorer/ internet explorer 5] [http://call-shotgun.ifrance.com/view/new/nec-videoproiettori/ nec videoproiettori] [http://gajar.ifrance.com/html/fate-ed.htm fate ed elfi] [http://smegmacheez.ifrance.com/content/view/bonita-de/ bonita de mas] [http://zeakk.ifrance.com/resources/articles/san-bernardino.htm san bernardino mountains] [http://horcrionebay.ifrance.com/resources/articles/memory-olimpus.htm memory olimpus] [http://call-shotgun.ifrance.com/view/new/adult-dating/ adult dating service online] [http://smegmacheez.ifrance.com/content/view/sapphire-radeon/ sapphire radeon 9600xt ultimate] [http://gabe95.ifrance.com/html/puede-ser/ puede ser] [http://mfirishka.ifrance.com/view/new/la-storia.htm la storia del trasmettitore fm] [http://mfirishka.ifrance.com/view/new/nure.htm nure] [http://lekusya.ifrance.com/library/html/tuner-tv/ tuner tv acquisizione e tv] [http://gajar.ifrance.com/html/midi-musica.htm midi musica italiana] [http://gajar.ifrance.com/html/ipertrofia-benigna.htm ipertrofia benigna prostata] [http://nokros.ifrance.com/data/hooverphonics/ hooverphonics] [http://lekusya.ifrance.com/library/html/reti-letto/ reti letto] [http://joshuaw-wise.ifrance.com/img/styles/salute-dei/ salute dei capello] [http://smegmacheez.ifrance.com/content/view/haydee-raymundo/ haydee raymundo] [http://atrayah.ifrance.com/topic/scaleoview-t.htm scaleoview t17-2] [http://nokros.ifrance.com/data/effeminato/ effeminato] [http://alishca-st.ifrance.com/text/directory/phyllis-haver.htm phyllis haver] [http://sm4.ifrance.com/lib/acufeno/ acufeno] [http://nokros.ifrance.com/data/foame-de/ foame de bani] [http://mfirishka.ifrance.com/view/new/warlock-iii.htm warlock iii] [http://mfirishka.ifrance.com/view/new/gbc-rilegatrici.htm gbc rilegatrici] [http://alishca-st.ifrance.com/text/directory/roma-bruxelles.htm roma bruxelles biglietti aerei] [http://squoi-oop.ifrance.com/topic/asciugabiancheria-san/ asciugabiancheria san giorgio] [http://mfirishka.ifrance.com/view/new/panasonic-lumix.htm panasonic lumix 2] [http://squoi-oop.ifrance.com/topic/car-insurance/ car insurance quotes] [http://dejablu503.ifrance.com/description/lib/eddy-jam.htm eddy jam] [http://gabe95.ifrance.com/html/www-literary/ www literary it] [http://trumanburb.ifrance.com/view/new/lua.htm lua] [http://dejablu503.ifrance.com/description/lib/thoia.htm thoia] [http://dejablu503.ifrance.com/description/lib/cover-vasco.htm cover vasco buoni o cattivi] [http://call-shotgun.ifrance.com/view/new/codici-blocco/ codici blocco nec e313] [http://alishca-st.ifrance.com/text/directory/burana-carmina.htm burana, carmina] [http://trumanburb.ifrance.com/view/new/zecchino-d.htm zecchino d oro 2003] [http://mfirishka.ifrance.com/view/new/asrock-k.htm asrock k7] [http://dejablu503.ifrance.com/description/lib/www-capo.htm www capo carbonara it] [http://mfirishka.ifrance.com/view/new/i-on.htm i on t wonna know] [http://zeakk.ifrance.com/resources/articles/milano-saragozza.htm milano saragozza biglietti aerei] [http://krychan.ifrance.com/content/view/aspirapolvere-parquet.htm aspirapolvere parquet 8296] [http://smegmacheez.ifrance.com/content/view/beni-benassi/ beni benassi hit my heart] [http://cocopuff66.ifrance.com/text/directory/agp-x/ agp 1x] [http://lekusya.ifrance.com/library/html/philips-mp/ philips mp3 key015] [http://call-shotgun.ifrance.com/view/new/calcetto-ridotto/ calcetto ridotto] [http://gabe95.ifrance.com/html/stampante-barcode/ stampante barcode] [http://alishca-st.ifrance.com/text/directory/nuova-opel.htm nuova opel astra] == 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 19:05, 25 August 2007

zyxel b 120 pro skater 3 the science of salling yourself short there s a new moon over my shoulder welfare state e welfare society fall river mappa percorsi photosmart r717 hp quake iii arena mario salieri videoclip tarjetas animadas ricoh aficio cl7000 toner e poi non ti ho vista piu frutta donna nikon d100 nital san raffaele tracce greco 2004 the cure. trilogy. live in berlin diesel engines dior ultimeyes fotos de pueblo city hunter u2 boston round midnight - a mezzanotte circa non uccidere sesso orale immagini dm601 s3 www uni dortmund de scheda video radeon yuri gonzaga divx download ataf de marchi, luigi onzo lago dei cigni tdk 8x theodor w. adorno copertina cypress hill silenzio station kodak belinate patrick dewaere yeti sports simulatore di volo per pocket pc dvd esterno samsung l espresso illusione mortale michael jackson album number one calaza can t hold us down maggi stefano esercitazioni di analisi matematica 1 tav vetralla carta comune fax club sex kurt elling adversing space testi di eros ramazzotti multipla km0 ho happy day festivalbar in diretta varmo gucci 2535 ombre e luce arturo benedetti michelangeli dvd roberto cavalli cintura hp deskjet 450 trituratori aspirapolvere tappeti nuovi titoli da mondo home entertainment vestite di seta fuga da new york gara di nuoto bmw 318 tds compact moschino profumi leninabad disabili notti insonni newton mal di gola hotel britannique napoli driin driin www mekano cl lultima casa a sinistra hp compaq proliant romola garai juegos completos denon avr 2106 carroll baker dv 5500 digital camera foto mutandine polti vaporella super pro barbie bell odalis garcia pelle di rame mala tempora currunt canon 500 enermax eg375ax-ve danzer pump it up foto con gay che sborrano cellula vegetale e animale doctor zivago volvo auto elezioni angri zorba mp3 le son qui tue d lgs 276 03 hust lettori wma dvd sacd olio carli behringer mixer 12 lettore portatile cd usb non rien de rien foto king arthur cristina grillo succhia un cazzone nero pasta lavamani digital media pro win megazine il grande prato gem boy saint george scarlati io ti penso matrix online www winmix it qlq c30 smspronti sara acampora caparezza habemus capa the planetary verbatim dvd r 8 5 lose it www movilnet com amd dissipatori 754 mandex blasco, eusebio sapphire radeon 9200 armadillo kinght 3 ricevitore gps auto lebanese foto di cartoni hentai king of queens b b camilla roma sanitarios microsoft flight simulator epl 7100 happy days sister act la freccia nera. vol. 02 fuerte olimpo acanthion volvo v50 kinetic 2 0 diesel scarpi donna mp3 usb 1gb internet explorer 5 nec videoproiettori fate ed elfi bonita de mas san bernardino mountains memory olimpus adult dating service online sapphire radeon 9600xt ultimate puede ser la storia del trasmettitore fm nure tuner tv acquisizione e tv midi musica italiana ipertrofia benigna prostata hooverphonics reti letto salute dei capello haydee raymundo scaleoview t17-2 effeminato phyllis haver acufeno foame de bani warlock iii gbc rilegatrici roma bruxelles biglietti aerei asciugabiancheria san giorgio panasonic lumix 2 car insurance quotes eddy jam www literary it lua thoia cover vasco buoni o cattivi codici blocco nec e313 burana, carmina zecchino d oro 2003 asrock k7 www capo carbonara it i on t wonna know milano saragozza biglietti aerei aspirapolvere parquet 8296 beni benassi hit my heart agp 1x philips mp3 key015 calcetto ridotto stampante barcode nuova opel astra == 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