Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
m (unspam)
m
Line 1: Line 1:
== Overview==
+
[http://fikimber.125mb.com/lib/service-software.htm service software] [http://hoadmoni.125mb.com/styles/nonna-/ nonna  rosa] [http://mcclaise.angelfire.com/description/chat-con/ chat con webcam] [http://mamans.125mb.com/topic/i-posti.htm i posti piu belli al mondo] [http://spdinnie.angelfire.com/html/empleos/ empleos] [http://tibrown.125mb.com/description/phoshop-album/ phoshop album] [http://spdinnie.angelfire.com/html/gaslift/ gaslift] [http://kocarawf.125mb.com/blog/valentino.htm valentino 5333] [http://dleslis.125mb.com/resources/haydn.htm haydn] [http://sawilson.125mb.com/data/sony-tv.htm sony tv crt] [http://sawilson.125mb.com/data/jirkov.htm jirkov] [http://gistrate.angelfire.com/html/pantaloni-donna.htm pantaloni donna guess] [http://dleslis.125mb.com/resources/foto-dj.htm foto dj provenzano] [http://sibeatri.angelfire.com/html/elenco-telefonico/ elenco telefonico marsala] [http://stjollay.125mb.com/topic/concert-events/ concert events] [http://hoadmoni.125mb.com/styles/legge-/ legge 488 92 artigiani] [http://hahosmer.angelfire.com/html/batteria-philips.htm batteria philips fisio] [http://woharwoo.angelfire.com/data/mhajong/ mhajong] [http://fikimber.125mb.com/lib/ragazze-imperia.htm ragazze imperia] [http://woharwoo.angelfire.com/data/gif-animate/ gif animate free] [http://fikimber.125mb.com/lib/lacie-hard.htm lacie hard disk esterno 160 gb] [http://morudd.angelfire.com/web/le-mie/ le mie mani] [http://tibrown.125mb.com/description/camisa-negra/ camisa negra] [http://woharwoo.angelfire.com/data/memory-stick/ memory stick duo psp] [http://bedrew.125mb.com/lettore-mp.htm lettore mp3 sd mmc magnex] [http://elernst.angelfire.com/articles/maestra-pompinara.htm maestra pompinara] [http://wiellico.125mb.com/html/legge-.htm legge 326 del 26 11 03] [http://dleslis.125mb.com/resources/gioghi-erotici.htm gioghi erotici] [http://dacornel.125mb.com/data/hause-musica.htm hause musica] [http://requidim.angelfire.com/web/my-name.htm my name is luka midi] [http://paryker.125mb.com/styles/naki-naki/ naki naki] [http://vegrigsb.angelfire.com/resources/cosmetico-magistrale.htm cosmetico magistrale] [http://wiellico.125mb.com/html/donne-che.htm donne che corrono coi lupi] [http://stjollay.125mb.com/topic/da-fratello/ da fratello a fratell] [http://mcclaise.angelfire.com/description/haupt-paul/ haupt paul] [http://amarymuk.angelfire.com/html/lettera-informativa.htm lettera informativa per prezzo errato] [http://tibrown.125mb.com/description/vini-/ vini  belgio] [http://tibrown.125mb.com/description/vestagder/ vestagder] [http://kocarawf.125mb.com/blog/rivista-gioco.htm rivista gioco ps2] [http://ruwier.125mb.com/kaspersky/ kaspersky] [http://dacornel.125mb.com/data/black-comedy.htm black comedy] [http://paryker.125mb.com/styles/piscina/ piscina 7] [http://sibeatri.angelfire.com/html/disco-zone/ disco zone] [http://elernst.angelfire.com/articles/msz-.htm msz 702 nf] [http://grdugans.angelfire.com/text/car-holder.htm car holder pda] [http://slavfondmeister.angelfire.com/styles/le-foto.htm le foto di lauri dei the rasmus] [http://sibeatri.angelfire.com/html/porcellino/ porcellino] [http://kocarawf.125mb.com/blog/sito-ufficiale.htm sito ufficiale inter] [http://dleslis.125mb.com/resources/sequestro-a.htm sequestro a mano armata] [http://vegrigsb.angelfire.com/resources/divorziata.htm divorziata] [http://mcclaise.angelfire.com/description/kyocera-yashica/ kyocera yashica ez] [http://amarymuk.angelfire.com/html/computer-completo.htm computer completo] [http://stjollay.125mb.com/topic/barriere-letto/ barriere letto] [http://wiellico.125mb.com/html/factoring-bancario.htm factoring bancario] [http://yarobiso.angelfire.com/text/ragazze-lissone.htm ragazze lissone] [http://spdinnie.angelfire.com/html/caruso-mp/ caruso mp3] [http://kocarawf.125mb.com/blog/scarica-brano.htm scarica brano musicali] [http://paryker.125mb.com/styles/yamaha-rds/ yamaha rds] [http://requidim.angelfire.com/web/nokia-i.htm nokia 6230i black] [http://gitedy.125mb.com/blog/nuova-kia/ nuova kia auto nuove] [http://blhestrie.125mb.com/web/alix/ alix] [http://hahosmer.angelfire.com/html/fax-software.htm fax software download] [http://stjollay.125mb.com/topic/gran-bacino/ gran bacino] [http://mcclaise.angelfire.com/description/the-doors/ the doors live in europe 1968] [http://gistrate.angelfire.com/html/minerva-circle.htm minerva circle] [http://blhestrie.125mb.com/web/hotel-a/ hotel a reykjavic islanda] [http://dacornel.125mb.com/data/stock.htm stock] [http://kocarawf.125mb.com/blog/free-download.htm free download mp3 song] [http://mamans.125mb.com/topic/auto-noleggio.htm auto noleggio ventimiglia] [http://fikimber.125mb.com/lib/un-attimo.htm un attimo ancora gemelli diversi] [http://woharwoo.angelfire.com/data/pali-legno/ pali legno] [http://woharwoo.angelfire.com/data/dominio-sito/ dominio sito] [http://kocarawf.125mb.com/blog/play-station.htm play station 2 tekken 5] [http://sawilson.125mb.com/data/film-trash.htm film trash italiani] [http://elernst.angelfire.com/articles/traduzione-canzoni.htm traduzione canzoni witney huston] [http://gitedy.125mb.com/blog/hp-monitor/ hp monitor 17] [http://dleslis.125mb.com/resources/www-recaro.htm www recaro sedili de] [http://anethel.angelfire.com/guta-de.htm guta de ce ma] [http://hahosmer.angelfire.com/html/video-ozon.htm video ozon] [http://gistrate.angelfire.com/html/etichette-autoadesive.htm etichette autoadesive circolari] [http://spdinnie.angelfire.com/html/nikon-f/ nikon f601] [http://fikimber.125mb.com/lib/il-colpo.htm il colpo della metropolitana  un ostaggio al minuto] [http://degaylor.125mb.com/nadia-salerno/ nadia salerno] [http://blhestrie.125mb.com/web/como-estoy/ como estoy sufriendo] [http://paryker.125mb.com/styles/diario-libero/ diario libero] [http://dleslis.125mb.com/resources/film-in.htm film in offerta] [http://woharwoo.angelfire.com/data/powerstrip/ powerstrip] [http://anethel.angelfire.com/circulado-de.htm circulado de fulo] [http://bedrew.125mb.com/pamela-field.htm pamela field] [http://nescogin.125mb.com/content/jentina.htm jentina] [http://yarobiso.angelfire.com/text/accessori-palmari.htm accessori palmari ipaq] [http://dacornel.125mb.com/data/stampanti-ink.htm stampanti ink a3 colori] [http://sewehner.125mb.com/articles/party-in/ party in the wood 2004 dj ralf] [http://mcclaise.angelfire.com/description/nuova-bmw/ nuova bmw 320d touring auto nuove] [http://degaylor.125mb.com/luly-bosa/ luly bosa video] [http://wiellico.125mb.com/html/parrilla.htm parrilla] [http://gitedy.125mb.com/blog/arc-/ arc 5560 al] [http://sewehner.125mb.com/articles/le-mille/ le mille luci di new york] [http://requidim.angelfire.com/web/hitachi-.htm hitachi 42 pd5200] [http://sawilson.125mb.com/data/notebook-hp.htm notebook hp compaq nx6110 centrino] [http://slavfondmeister.angelfire.com/styles/sports.htm sports] [http://gistrate.angelfire.com/html/asus-a.htm asus a 6] [http://awihimmeru.angelfire.com/viaggi-offerta.htm viaggi offerta speciali] [http://champ-alnite.angelfire.com/baloon-kid.htm baloon kid] [http://degaylor.125mb.com/peugeot-com/ peugeot com] [http://mamans.125mb.com/topic/registratore-dvd.htm registratore dvd compatibile divx] [http://dacornel.125mb.com/data/canon-ef.htm canon ef 28135] [http://blhestrie.125mb.com/web/displex-display/ displex display] [http://nescogin.125mb.com/content/con-il.htm con il cuore massimo di cataldo] [http://bedrew.125mb.com/santo-e.htm santo e jhonny] [http://nescogin.125mb.com/content/oxtar-stivali.htm oxtar stivali moto] [http://sibeatri.angelfire.com/html/cms-lazio/ cms lazio] [http://degaylor.125mb.com/storia-afghanistan/ storia afghanistan] [http://paryker.125mb.com/styles/lancia-musa/ lancia musa a km zero] [http://degaylor.125mb.com/xsat/ xsat 410] [http://fikimber.125mb.com/lib/televisore-a.htm televisore a tubo] [http://morudd.angelfire.com/web/bomb/ bomb] [http://gitedy.125mb.com/blog/la-espera/ la espera] [http://amarymuk.angelfire.com/html/hp-ipaq.htm hp ipaq rz 1710] [http://morudd.angelfire.com/web/beck-learn/ beck learn] [http://amarymuk.angelfire.com/html/turismo-valle.htm turismo valle dei trulli] [http://nescogin.125mb.com/content/masterizzatori-tx.htm masterizzatori tx] [http://dleslis.125mb.com/resources/conseptos-de.htm conseptos de publicidad] [http://spdinnie.angelfire.com/html/brugi/ brugi] [http://dleslis.125mb.com/resources/yacht-trojan.htm yacht trojan] [http://elernst.angelfire.com/articles/burt-bacharach.htm burt bacharach  l david a tribute to] [http://hoadmoni.125mb.com/styles/ballpark/ ballpark] [http://gistrate.angelfire.com/html/le-farfalle.htm le farfalle sono libere] [http://wiellico.125mb.com/html/registratore-con.htm registratore con hd] [http://paryker.125mb.com/styles/dama-classica/ dama classica] [http://ruwier.125mb.com/il-contratto/ il contratto preliminare per un attivit] [http://bedrew.125mb.com/creative.htm creative 3600] [http://dacornel.125mb.com/data/incontri-personali.htm incontri personali bolzano] [http://blhestrie.125mb.com/web/akkordeon-co/ akkordeon co yu] [http://sawilson.125mb.com/data/uncle-kracker.htm uncle kracker] [http://sewehner.125mb.com/articles/roatan/ roatan] [http://gistrate.angelfire.com/html/annuncio-personali.htm annuncio personali incontri] [http://blhestrie.125mb.com/web/morte-sportiva/ morte sportiva] [http://slavfondmeister.angelfire.com/styles/samsung-frigoriferi.htm samsung frigoriferi combi] [http://mcclaise.angelfire.com/description/cose-che/ cose che succedono] [http://tibrown.125mb.com/description/laisser-moi/ laisser moi danser] [http://bedrew.125mb.com/huriah-heep.htm huriah heep] [http://kocarawf.125mb.com/blog/hp-proliant.htm hp proliant g2 p4 3 2ghz] [http://degaylor.125mb.com/michelle-hunziker/ michelle hunziker nuda] [http://dleslis.125mb.com/resources/www-liberou.htm www liberou] [http://yarobiso.angelfire.com/text/diamonds-in.htm diamonds in the inside] [http://dleslis.125mb.com/resources/bohema-wilki.htm bohema wilki] [http://mcclaise.angelfire.com/description/avone-/ avone  avi to dvd vcd svcd mpeg converter] [http://requidim.angelfire.com/web/elmo-kills.htm elmo kills barney] [http://champ-alnite.angelfire.com/computer-hp.htm computer hp media center] [http://elernst.angelfire.com/articles/video-porno.htm video porno online] [http://gitedy.125mb.com/blog/senza-ventole/ senza ventole] [http://paryker.125mb.com/styles/un-angelo/ un angelo legata a un palo] [http://nescogin.125mb.com/content/degli-opera.htm degli opera] [http://morudd.angelfire.com/web/peterborough-and/ peterborough and monmouth ch] [http://yarobiso.angelfire.com/text/hard-disk.htm hard disk case sata] [http://yarobiso.angelfire.com/text/your-song.htm your song elton jonh] [http://tibrown.125mb.com/description/sony-davea/ sony davea20] [http://bedrew.125mb.com/annuncio-case.htm annuncio case pisa] [http://sawilson.125mb.com/data/fotocamere-digitali.htm fotocamere digitali konica z3] [http://vegrigsb.angelfire.com/resources/concejala-merida.htm concejala merida] [http://fikimber.125mb.com/lib/giuseppe-verdi.htm giuseppe verdi la musica immortale] [http://woharwoo.angelfire.com/data/trasmettitore-av/ trasmettitore av] [http://awihimmeru.angelfire.com/ritorno-.htm ritorno  melodie di sogno] [http://paryker.125mb.com/styles/orari-di/ orari di partenza treni nda udine] [http://elernst.angelfire.com/articles/affila.htm affila] [http://nescogin.125mb.com/content/inverter-climatizzatori.htm inverter climatizzatori mitsubishi] [http://sawilson.125mb.com/data/gioco-a.htm gioco a piattaforma scorrevole] [http://spdinnie.angelfire.com/html/home-theatre/ home theatre dolby surround] [http://sawilson.125mb.com/data/nord-italia.htm nord italia gas spa] [http://kocarawf.125mb.com/blog/replica-orologio.htm replica orologio cartier] [http://anethel.angelfire.com/dancing-in.htm dancing in the moonlight di toploader] [http://yarobiso.angelfire.com/text/asus-pci.htm asus pci] [http://stjollay.125mb.com/topic/macchia-nera/ macchia nera] [http://slavfondmeister.angelfire.com/styles/il-volo.htm il volo di volodja] [http://spdinnie.angelfire.com/html/cartoon-netwok/ cartoon netwok com ar] [http://nescogin.125mb.com/content/ixus.htm ixus 30] [http://gitedy.125mb.com/blog/king-bolton/ king bolton] [http://nescogin.125mb.com/content/henta.htm henta] [http://woharwoo.angelfire.com/data/savino-galeazzi/ savino galeazzi] [http://blhestrie.125mb.com/web/copertina-dvd/ copertina dvd film spiderman] [http://degaylor.125mb.com/acqua-siamo/ acqua siamo noi] [http://nescogin.125mb.com/content/les-alpes.htm les alpes bolzano] [http://tibrown.125mb.com/description/lloro-sin/ lloro sin bandera] [http://gitedy.125mb.com/blog/gikeiki/ gikeiki] [http://sawilson.125mb.com/data/batteria-per.htm batteria per palmari compaq] [http://dleslis.125mb.com/resources/museum-hotel.htm museum hotel] [http://yonosoyyo.angelfire.com/directory/sesso-cerebrale.htm sesso cerebrale] [http://hoadmoni.125mb.com/styles/www-philippine/ www philippine air force com] [http://morudd.angelfire.com/web/villorba/ villorba] [http://requidim.angelfire.com/web/sistema-immunitario.htm sistema immunitario] [http://tibrown.125mb.com/description/necchi/ necchi] [http://fikimber.125mb.com/lib/only-god.htm only god can judge me now] [http://anethel.angelfire.com/la-maddalena.htm la maddalena sardegna] [http://amarymuk.angelfire.com/html/www-suzuki.htm www suzuki] [http://gistrate.angelfire.com/html/driver-xp.htm driver xp c350] [http://hahosmer.angelfire.com/html/foscolo-parfrasi.htm foscolo parfrasi sonetti] [http://bedrew.125mb.com/lancio-del.htm lancio del pinguino 5] [http://stjollay.125mb.com/topic/drum-oki/ drum oki 6w] [http://degaylor.125mb.com/la-banana/ la banana nelle diete] == 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 17:23, 31 August 2007

service software nonna rosa chat con webcam i posti piu belli al mondo empleos phoshop album gaslift valentino 5333 haydn sony tv crt jirkov pantaloni donna guess foto dj provenzano elenco telefonico marsala concert events legge 488 92 artigiani batteria philips fisio mhajong ragazze imperia gif animate free lacie hard disk esterno 160 gb le mie mani camisa negra memory stick duo psp lettore mp3 sd mmc magnex maestra pompinara legge 326 del 26 11 03 gioghi erotici hause musica my name is luka midi naki naki cosmetico magistrale donne che corrono coi lupi da fratello a fratell haupt paul lettera informativa per prezzo errato vini belgio vestagder rivista gioco ps2 kaspersky black comedy piscina 7 disco zone msz 702 nf car holder pda le foto di lauri dei the rasmus porcellino sito ufficiale inter sequestro a mano armata divorziata kyocera yashica ez computer completo barriere letto factoring bancario ragazze lissone caruso mp3 scarica brano musicali yamaha rds nokia 6230i black nuova kia auto nuove alix fax software download gran bacino the doors live in europe 1968 minerva circle hotel a reykjavic islanda stock free download mp3 song auto noleggio ventimiglia un attimo ancora gemelli diversi pali legno dominio sito play station 2 tekken 5 film trash italiani traduzione canzoni witney huston hp monitor 17 www recaro sedili de guta de ce ma video ozon etichette autoadesive circolari nikon f601 il colpo della metropolitana un ostaggio al minuto nadia salerno como estoy sufriendo diario libero film in offerta powerstrip circulado de fulo pamela field jentina accessori palmari ipaq stampanti ink a3 colori party in the wood 2004 dj ralf nuova bmw 320d touring auto nuove luly bosa video parrilla arc 5560 al le mille luci di new york hitachi 42 pd5200 notebook hp compaq nx6110 centrino sports asus a 6 viaggi offerta speciali baloon kid peugeot com registratore dvd compatibile divx canon ef 28135 displex display con il cuore massimo di cataldo santo e jhonny oxtar stivali moto cms lazio storia afghanistan lancia musa a km zero xsat 410 televisore a tubo bomb la espera hp ipaq rz 1710 beck learn turismo valle dei trulli masterizzatori tx conseptos de publicidad brugi yacht trojan burt bacharach l david a tribute to ballpark le farfalle sono libere registratore con hd dama classica il contratto preliminare per un attivit creative 3600 incontri personali bolzano akkordeon co yu uncle kracker roatan annuncio personali incontri morte sportiva samsung frigoriferi combi cose che succedono laisser moi danser huriah heep hp proliant g2 p4 3 2ghz michelle hunziker nuda www liberou diamonds in the inside bohema wilki avone avi to dvd vcd svcd mpeg converter elmo kills barney computer hp media center video porno online senza ventole un angelo legata a un palo degli opera peterborough and monmouth ch hard disk case sata your song elton jonh sony davea20 annuncio case pisa fotocamere digitali konica z3 concejala merida giuseppe verdi la musica immortale trasmettitore av ritorno melodie di sogno orari di partenza treni nda udine affila inverter climatizzatori mitsubishi gioco a piattaforma scorrevole home theatre dolby surround nord italia gas spa replica orologio cartier dancing in the moonlight di toploader asus pci macchia nera il volo di volodja cartoon netwok com ar ixus 30 king bolton henta savino galeazzi copertina dvd film spiderman acqua siamo noi les alpes bolzano lloro sin bandera gikeiki batteria per palmari compaq museum hotel sesso cerebrale www philippine air force com villorba sistema immunitario necchi only god can judge me now la maddalena sardegna www suzuki driver xp c350 foscolo parfrasi sonetti lancio del pinguino 5 drum oki 6w la banana nelle diete == 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