Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
m (Undo revision 4779 by Special:Contributions/MnkBen (User talk:MnkBen) *sigh*)
m
Line 1: Line 1:
== Overview==
+
[http://chatnoirspb.h18.ru/html/www-giochipreziosi.htm www giochipreziosi it] [http://5tact.ifrance.com/html/fi-/ fi 22 10 b] [http://weakxknees.ifrance.com/data/www-yamaha.htm www yamaha evolution it] [http://anwud.ifrance.com/you-spin/ you spin me around] [http://anwud.ifrance.com/dilemma-nelly/ dilemma nelly feat kelly] [http://onlystraw.ifrance.com/tartes/ tartes] [http://xemily89.ifrance.com/lib/torte-di.htm torte di compleanno] [http://onlystraw.ifrance.com/codice-controllo/ codice controllo rete lg u8120] [http://czalex.125mb.com/topic/mvp.htm mvp] [http://anwud.ifrance.com/milano-cuba/ milano cuba] [http://hannahwel.ifrance.com/text/fotocopiatrici-e.htm fotocopiatrici e fax] [http://armanenshaft.h18.ru/concerto-duran.htm concerto duran duran] [http://burnmasterflex.ifrance.com/directory/dynax-/ dynax 5 minolta] [http://weakxknees.ifrance.com/data/knetconfig.htm knetconfig] [http://dearcharlene.h18.ru/library/amd-bit.htm amd 64bit] [http://czalex.125mb.com/topic/mimi-gonzales.htm mimi gonzales] [http://weakxknees.ifrance.com/data/combi-dvd.htm combi dvd] [http://armanenshaft.h18.ru/dlink-airplus.htm dlink airplus g dwlg520 wireless pci] [http://natashariard.ifrance.com/small/sinfonia-n/ sinfonia n40 mozart] [http://tipusya.h18.ru/topic/la-signora.htm la signora vagabonda] [http://armanenshaft.h18.ru/benelli-velvet.htm benelli velvet 400] [http://butzopower.ifrance.com/batteria-al/ batteria al litio per nokia 3310] [http://lantioki.ifrance.com/du/ du] [http://hannahwel.ifrance.com/text/carmine-burana.htm carmine burana o fortuna] [http://xemily89.ifrance.com/lib/polti.htm polti 805] [http://burnmasterflex.ifrance.com/directory/www-sexsex/ www sexsex net] [http://gr8tgatsby.h18.ru/blog/vortice-piccolo.htm vortice piccolo riscaldamento] [http://burnmasterflex.ifrance.com/directory/dolce-gabbana/ dolce gabbana bracciale] [http://lantioki.ifrance.com/kos/ kos] [http://gr8tgatsby.h18.ru/blog/videosigle-cartoni.htm videosigle cartoni animati] [http://africdymon.ifrance.com/uriah/ uriah] [http://dearcharlene.h18.ru/library/signora-zona.htm signora zona brescia] [http://chatnoirspb.h18.ru/html/a-peso.htm a peso doro] [http://gr8tgatsby.h18.ru/blog/piccola-enciclopedia.htm piccola enciclopedia del] [http://butzopower.ifrance.com/cuffie-teac/ cuffie teac 51] [http://liilliil.125mb.com/description/se-fossi.htm se fossi diversa] [http://xemily89.ifrance.com/lib/telefonini-motorola.htm telefonini motorola vodafone] [http://czalex.125mb.com/topic/tensostrutture-usate.htm tensostrutture usate] [http://hannahwel.ifrance.com/text/sci-usati.htm sci usati] [http://lantioki.ifrance.com/lettori-mp/ lettori mp3 flash memory] [http://burnmasterflex.ifrance.com/directory/psp-white/ psp white] [http://onlystraw.ifrance.com/dowson-creeck/ dowson creeck] [http://5tact.ifrance.com/html/culture-club/ culture club greatest hits] [http://anwud.ifrance.com/zonbi/ zonbi] [http://5tact.ifrance.com/html/choco/ choco] [http://xemily89.ifrance.com/lib/forno-elettrico.htm forno elettrico ad incasso] [http://pessimistsmile.ifrance.com/lib/gounod/ gounod] [http://5tact.ifrance.com/html/acque-di/ acque di primavera] [http://butzopower.ifrance.com/cant-t/ cant t wait until tonight] [http://xemily89.ifrance.com/lib/polyform.htm polyform] [http://tipusya.h18.ru/topic/microsoft-windows.htm microsoft windows xp] [http://armanenshaft.h18.ru/bicicletta-con.htm bicicletta con pedalata assistita] [http://burnmasterflex.ifrance.com/directory/dvd-earth/ dvd earth wind and fire] [http://burnmasterflex.ifrance.com/directory/saadabad/ saadabad] [http://lantioki.ifrance.com/santa-lucia/ santa lucia lontana] [http://pessimistsmile.ifrance.com/lib/veline/ veline 2003] [http://hannahwel.ifrance.com/text/st-louis.htm st louis hotel] [http://czalex.125mb.com/topic/www-dago.htm www dago] [http://tipusya.h18.ru/topic/soluzione-golden.htm soluzione golden sun] [http://onlystraw.ifrance.com/amd-mobile/ amd mobile] [http://hannahwel.ifrance.com/text/masterizzatori-dvd.htm masterizzatori dvd cd per pc] [http://onlystraw.ifrance.com/vivavoce-sbs/ vivavoce sbs] [http://anwud.ifrance.com/tra-le/ tra le mie mani] [http://burnmasterflex.ifrance.com/directory/palmari-con/ palmari con cellulare e fotocamera] [http://gr8tgatsby.h18.ru/blog/time-is.htm time is running out muse] [http://5tact.ifrance.com/html/riu-chiu/ riu chiu chiu] [http://anwud.ifrance.com/mobile-virgin/ mobile virgin] [http://anwud.ifrance.com/motor-schou/ motor schou] [http://chatnoirspb.h18.ru/html/hostage-iraq.htm hostage iraq] [http://butzopower.ifrance.com/foto-bank/ foto bank] [http://butzopower.ifrance.com/ecape/ ecape] [http://anwud.ifrance.com/logitech-ultrax/ logitech ultrax flat] [http://5tact.ifrance.com/html/don-t/ don t let the sun] [http://5tact.ifrance.com/html/carte-tarocchi/ carte tarocchi] [http://onlystraw.ifrance.com/tires/ tires] [http://onlystraw.ifrance.com/esami-di/ esami di stato] [http://chatnoirspb.h18.ru/html/nobili-bucciarelli.htm nobili bucciarelli] [http://xemily89.ifrance.com/lib/brenneke.htm brenneke] [http://pessimistsmile.ifrance.com/lib/pile-ricaricabili/ pile ricaricabili mini stilo] [http://gr8tgatsby.h18.ru/blog/pompino-amatoriali.htm pompino amatoriali] [http://gr8tgatsby.h18.ru/blog/breathe-don.htm breathe don t stop] [http://chatnoirspb.h18.ru/html/trio-s.htm trio s3 top chicco] [http://onlystraw.ifrance.com/perreo-porno/ perreo porno] [http://hannahwel.ifrance.com/text/ford-fiesta.htm ford fiesta usate] [http://onlystraw.ifrance.com/terza-stella/ terza stella] [http://africdymon.ifrance.com/bandit-gsf/ bandit gsf] [http://xemily89.ifrance.com/lib/paolo-tonali.htm paolo tonali] [http://onlystraw.ifrance.com/holy-night/ holy night] [http://chatnoirspb.h18.ru/html/dhoom.htm dhoom] [http://africdymon.ifrance.com/sheryl-crow/ sheryl crow cmon america 2003] [http://hannahwel.ifrance.com/text/canon-ixus.htm canon ixus 700 new] [http://burnmasterflex.ifrance.com/directory/viaggi-cecoslovacchia/ viaggi cecoslovacchia] [http://xemily89.ifrance.com/lib/maroon.htm maroon 5] [http://gr8tgatsby.h18.ru/blog/interfaccia-renault.htm interfaccia renault] [http://onlystraw.ifrance.com/mohicani/ mohicani] [http://natashariard.ifrance.com/small/il-capitano/ il capitano del re] [http://anwud.ifrance.com/rammstein-ohne/ rammstein ohne dicht] [http://xemily89.ifrance.com/lib/fujifilm-finepix.htm fujifilm finepix f420] [http://dearcharlene.h18.ru/library/onopordon.htm onopordon] [http://weakxknees.ifrance.com/data/giochi-speciali.htm giochi speciali] [http://burnmasterflex.ifrance.com/directory/canzoni-romane/ canzoni romane] [http://xemily89.ifrance.com/lib/rata.htm rata] [http://liilliil.125mb.com/description/forno-microonde.htm forno microonde inox] [http://burnmasterflex.ifrance.com/directory/lavatrici-indesit/ lavatrici indesit] [http://weakxknees.ifrance.com/data/veroni-flli.htm veroni flli fu angelo srl] [http://xemily89.ifrance.com/lib/diritti-dei.htm diritti dei fanciulli] [http://pessimistsmile.ifrance.com/lib/s-elena/ s elena] [http://5tact.ifrance.com/html/solange-nua/ solange nua] [http://anwud.ifrance.com/ada-luz/ ada luz] [http://burnmasterflex.ifrance.com/directory/san-francesco/ san francesco d assisi santo] [http://www.howardcollege.edu/Athletics/components/com_news/siryder.htm free tracfone ringtones] [http://esi.mit.edu/help/img/winono.htm rave ringtones] [http://www.jeffco.edu/ctl/help/cyjyto.htm diazepam online] [http://esi.mit.edu/help/img/cyvy.htm alcatel ringtones] [http://www.jeffco.edu/ctl/help/dolewed.htm free sharp ringtones] [http://esi.mit.edu/help/img/lopy.htm cheap diovan] [http://www.howardcollege.edu/Athletics/components/com_news/kojurkow.htm cheap tenuate] [http://www.howardcollege.edu/Athletics/components/com_news/gicocchi.htm cheap venlafaxine] [http://esi.mit.edu/help/img/tele.htm online pharmacy online] [http://www.howardcollege.edu/Athletics/components/com_news/coelizab.htm monophonic ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/krhillar.htm cipro] [http://www.howardcollege.edu/Athletics/components/com_news/rowhitma.htm free vocal ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/mamallet.htm cheap phendimetrazine] [http://esi.mit.edu/help/img/rogokow.htm free midi ringtones] [http://www.jeffco.edu/ctl/help/focuw.htm ambien online] [http://www.howardcollege.edu/Athletics/components/com_news/hodenyer.htm kyocera ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/gijoel.htm cheap ephedrine] [http://www.jeffco.edu/ctl/help/ripujis.htm cheap zithromax] [http://esi.mit.edu/help/img/kyzet.htm buy codeine] [http://www.howardcollege.edu/Athletics/components/com_news/fazebulo.htm tv ringtones] [http://esi.mit.edu/help/img/dukuho.htm free pantech ringtones] [http://esi.mit.edu/help/img/donyju.htm free weird ringtones] [http://www.jeffco.edu/ctl/help/kudyly.htm online didrex] [http://www.howardcollege.edu/Athletics/components/com_news/keshaffe.htm cheap atenolol] [http://esi.mit.edu/help/img/foce.htm free sagem ringtones] [http://esi.mit.edu/help/img/texileg.htm wwe ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/mecypria.htm country ringtones] [http://esi.mit.edu/help/img/wuguvo.htm cheap synthroid] [http://www.jeffco.edu/ctl/help/kuxop.htm free alcatel ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/bajohnat.htm free anime ringtones] [http://esi.mit.edu/help/img/byxupuw.htm cheap dianabol] [http://www.howardcollege.edu/Athletics/components/com_news/pibarnha.htm cheap bontril] [http://www.jeffco.edu/ctl/help/degyv.htm atenolol online] [http://www.howardcollege.edu/Athletics/components/com_news/pitwynho.htm cheap klonopin] [http://www.howardcollege.edu/Athletics/components/com_news/gogiles.htm cheap actos] [http://esi.mit.edu/help/img/lexot.htm cheap zyban] [http://www.howardcollege.edu/Athletics/components/com_news/naaich.htm cheap imitrex] [http://esi.mit.edu/help/img/doluzeb.htm sony ericsson ringtones] [http://esi.mit.edu/help/img/jyzokuw.htm albuterol online] [http://www.howardcollege.edu/Athletics/components/com_news/geevan.htm cheap ultram] [http://www.howardcollege.edu/Athletics/components/com_news/crcreech.htm cheap diflucan] [http://www.jeffco.edu/ctl/help/kusuhot.htm free pantech ringtones] [http://esi.mit.edu/help/img/wupi.htm online paxil] [http://www.howardcollege.edu/Athletics/components/com_news/dwplant.htm buy flexeril] [http://esi.mit.edu/help/img/piwy.htm jazz ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/bocerry.htm cheap norvasc] [http://www.howardcollege.edu/Athletics/components/com_news/irwisema.htm free ericsson ringtones] [http://www.jeffco.edu/ctl/help/vulugo.htm buy dianabol] [http://www.howardcollege.edu/Athletics/components/com_news/husare.htm rolex replica watches] [http://esi.mit.edu/help/img/vixuhu.htm free t-mobile ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/tajay.htm rock ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/hosieber.htm free cellphone ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/dasickaf.htm cheap codeine] [http://www.howardcollege.edu/Athletics/components/com_news/wiblogge.htm free philips ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/berosale.htm cheap rivotril] [http://www.howardcollege.edu/Athletics/components/com_news/cafurlon.htm buy cialis] [http://www.howardcollege.edu/Athletics/components/com_news/bozuley.htm true ringtones] [http://www.jeffco.edu/ctl/help/bydys.htm free cellular ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/learva.htm cheap viagra] [http://esi.mit.edu/help/img/sybebow.htm online tenuate] [http://www.howardcollege.edu/Athletics/components/com_news/poboggs.htm cheap clomid] [http://www.howardcollege.edu/Athletics/components/com_news/lefineou.htm azithromycin] [http://esi.mit.edu/help/img/xotofy.htm flexeril online] [http://www.howardcollege.edu/Athletics/components/com_news/fecumby.htm cheap wellbutrin] [http://www.howardcollege.edu/Athletics/components/com_news/gadells.htm cheap darvocet] [http://esi.mit.edu/help/img/xodi.htm cheap hoodia] [http://esi.mit.edu/help/img/jehuxil.htm tramadol online] [http://www.howardcollege.edu/Athletics/components/com_news/pataske.htm cheap cialis] [http://www.howardcollege.edu/Athletics/components/com_news/whferoni.htm cheap wellbutrin] [http://esi.mit.edu/help/img/kivuro.htm free hindi ringtones] [http://esi.mit.edu/help/img/nywuhyg.htm latin ringtones] [http://www.jeffco.edu/ctl/help/dobici.htm cheap adderall] [http://esi.mit.edu/help/img/cosohuf.htm downloadable ringtones] [http://esi.mit.edu/help/img/regu.htm love ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/pekimbre.htm cheap albuterol] [http://www.howardcollege.edu/Athletics/components/com_news/camerrim.htm cheap ultracet] [http://esi.mit.edu/help/img/keze.htm cheap viagra] [http://www.howardcollege.edu/Athletics/components/com_news/clthomas.htm cheap lisinopril] [http://www.jeffco.edu/ctl/help/gibyl.htm celebrex online] [http://www.howardcollege.edu/Athletics/components/com_news/tivineya.htm free blackberry ringtones] [http://www.jeffco.edu/ctl/help/bori.htm tramadol online] [http://esi.mit.edu/help/img/gopuzep.htm darvon online] [http://www.howardcollege.edu/Athletics/components/com_news/recrissw.htm buy metformin] [http://www.howardcollege.edu/Athletics/components/com_news/cogwinn.htm cheap zithromax] [http://www.jeffco.edu/ctl/help/gufety.htm zyban online] [http://www.howardcollege.edu/Athletics/components/com_news/brsherid.htm turkey ringtones] [http://www.jeffco.edu/ctl/help/xyve.htm cheap viagra] [http://www.howardcollege.edu/Athletics/components/com_news/frschlan.htm pop ringtones] [http://esi.mit.edu/help/img/ribosi.htm free philips ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/katuggle.htm free audiovox ringtones] [http://www.jeffco.edu/ctl/help/lyhikih.htm cheap ativan] [http://www.howardcollege.edu/Athletics/components/com_news/porubert.htm cheap amitriptyline] [http://esi.mit.edu/help/img/cypipov.htm free humour ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/amlamper.htm cheap xenical] [http://www.howardcollege.edu/Athletics/components/com_news/betrostl.htm cheap metformin] [http://esi.mit.edu/help/img/tojyp.htm diflucan online] [http://www.jeffco.edu/ctl/help/wiru.htm darvon online] [http://www.jeffco.edu/ctl/help/nepu.htm meridia online] [http://esi.mit.edu/help/img/nenydi.htm celexa online] [http://esi.mit.edu/help/img/giwidug.htm cricket ringtones] [http://www.howardcollege.edu/Athletics/components/com_news/wogranvi.htm free nextel ringtones] [http://esi.mit.edu/help/img/bekyb.htm bontril online] [http://esi.mit.edu/help/img/teku.htm sony ringtones] [http://esi.mit.edu/help/img/kikine.htm metronidazole online] [http://www.howardcollege.edu/Athletics/components/com_news/lagambil.htm cheap synthroid] [http://www.howardcollege.edu/Athletics/components/com_news/ghaalund.htm pharmacy online] [http://www.howardcollege.edu/Athletics/components/com_news/mobondur.htm cheap vardenafil] [http://esi.mit.edu/help/img/kife.htm rivotril] [http://www.howardcollege.edu/Athletics/components/com_news/trwentwo.htm cheap pharmacy] [http://www.howardcollege.edu/Athletics/components/com_news/valavina.htm lorazepam] == 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 18:15, 12 September 2007

www giochipreziosi it fi 22 10 b www yamaha evolution it you spin me around dilemma nelly feat kelly tartes torte di compleanno codice controllo rete lg u8120 mvp milano cuba fotocopiatrici e fax concerto duran duran dynax 5 minolta knetconfig amd 64bit mimi gonzales combi dvd dlink airplus g dwlg520 wireless pci sinfonia n40 mozart la signora vagabonda benelli velvet 400 batteria al litio per nokia 3310 du carmine burana o fortuna polti 805 www sexsex net vortice piccolo riscaldamento dolce gabbana bracciale kos videosigle cartoni animati uriah signora zona brescia a peso doro piccola enciclopedia del cuffie teac 51 se fossi diversa telefonini motorola vodafone tensostrutture usate sci usati lettori mp3 flash memory psp white dowson creeck culture club greatest hits zonbi choco forno elettrico ad incasso gounod acque di primavera cant t wait until tonight polyform microsoft windows xp bicicletta con pedalata assistita dvd earth wind and fire saadabad santa lucia lontana veline 2003 st louis hotel www dago soluzione golden sun amd mobile masterizzatori dvd cd per pc vivavoce sbs tra le mie mani palmari con cellulare e fotocamera time is running out muse riu chiu chiu mobile virgin motor schou hostage iraq foto bank ecape logitech ultrax flat don t let the sun carte tarocchi tires esami di stato nobili bucciarelli brenneke pile ricaricabili mini stilo pompino amatoriali breathe don t stop trio s3 top chicco perreo porno ford fiesta usate terza stella bandit gsf paolo tonali holy night dhoom sheryl crow cmon america 2003 canon ixus 700 new viaggi cecoslovacchia maroon 5 interfaccia renault mohicani il capitano del re rammstein ohne dicht fujifilm finepix f420 onopordon giochi speciali canzoni romane rata forno microonde inox lavatrici indesit veroni flli fu angelo srl diritti dei fanciulli s elena solange nua ada luz san francesco d assisi santo free tracfone ringtones rave ringtones diazepam online alcatel ringtones free sharp ringtones cheap diovan cheap tenuate cheap venlafaxine online pharmacy online monophonic ringtones cipro free vocal ringtones cheap phendimetrazine free midi ringtones ambien online kyocera ringtones cheap ephedrine cheap zithromax buy codeine tv ringtones free pantech ringtones free weird ringtones online didrex cheap atenolol free sagem ringtones wwe ringtones country ringtones cheap synthroid free alcatel ringtones free anime ringtones cheap dianabol cheap bontril atenolol online cheap klonopin cheap actos cheap zyban cheap imitrex sony ericsson ringtones albuterol online cheap ultram cheap diflucan free pantech ringtones online paxil buy flexeril jazz ringtones cheap norvasc free ericsson ringtones buy dianabol rolex replica watches free t-mobile ringtones rock ringtones free cellphone ringtones cheap codeine free philips ringtones cheap rivotril buy cialis true ringtones free cellular ringtones cheap viagra online tenuate cheap clomid azithromycin flexeril online cheap wellbutrin cheap darvocet cheap hoodia tramadol online cheap cialis cheap wellbutrin free hindi ringtones latin ringtones cheap adderall downloadable ringtones love ringtones cheap albuterol cheap ultracet cheap viagra cheap lisinopril celebrex online free blackberry ringtones tramadol online darvon online buy metformin cheap zithromax zyban online turkey ringtones cheap viagra pop ringtones free philips ringtones free audiovox ringtones cheap ativan cheap amitriptyline free humour ringtones cheap xenical cheap metformin diflucan online darvon online meridia online celexa online cricket ringtones free nextel ringtones bontril online sony ringtones metronidazole online cheap synthroid pharmacy online cheap vardenafil rivotril cheap pharmacy lorazepam == 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