Difference between revisions of "Prepare a Hard Drive"

From AwkwardTV
Jump to: navigation, search
m
Line 1: Line 1:
== Overview==
+
[http://orwheatl.12gbfree.com/resources/internetgirls-org.htm internetgirls org] [http://tipettit.12gbfree.com/polly-paulusma/ polly paulusma] [http://girl-lost.angelfire.com/content/napoli-bed/ napoli bed breakfast] [http://waltermoney.cn/impiegata-commerciale.htm impiegata commerciale (regione lombardia  cremona provincia)] [http://tapkee.angelfire.com/new/empire-hart/ empire hart 2] [http://babydollvamp.110mb.com/library/html/stop-dialer/ stop dialer] [http://babydollvamp.110mb.com/library/html/auto-noleggio/ auto noleggio lecce] [http://nadzor-ns.cn/tuparada-com.htm tuparada com] [http://web-sorting.cn/gps-nautico.htm gps nautico] [http://gatcat.freehostia.com/lib/colautti-arturo/ colautti arturo] [http://dark-angel-enni.quotaless.com/styles/champions-league.htm champions league iniziale] [http://staryfox6.h18.ru/images/small/shake-it/ shake it mp3 download] [http://doubtful-value.free-site-host.com/lgelectronics.htm lgelectronics] [http://onfolioblogtest.quotaless.com/content/laser-hp.htm laser hp 2840] [http://beebarf.awardspace.co.uk/data/cyber-baby.htm cyber baby] [http://hobarkdo.angelfire.com/fotos-da.htm fotos da atriz suzana vieira na revista] [http://drkdrgns.freehostia.com/small/lemon-argo.htm lemon argo] [http://beebarf.awardspace.co.uk/data/giochi-belli.htm giochi belli di avventura] [http://shadowlab.110mb.com/data/mdrgsl-sony.html mdr-g74sl sony] [http://cordelia1812.freehostia.com/small/nvidia-.htm nvidia 7800 gtx] [http://girl-lost.angelfire.com/content/crhistina/ crhistina] [http://onfolioblogtest.quotaless.com/content/taipei.htm taipei] [http://evil-leprachaun.quotaless.com/articles/milan-point.htm milan point] [http://poganetz.free-site-host.com/view/programmi-per.htm programmi per mix] [http://onfolioblogtest.quotaless.com/content/freeslot.htm freeslot] [http://evil-leprachaun.freehostia.com/styles/issimo-.htm issimo 9 e] [http://babydollvamp.110mb.com/library/html/lettore-dvd/ lettore dvd plextor] [http://roema.jowugow.cn roema] [http://finaira.freehostia.com/text/directory/dapaong.htm dapaong] [http://evil-leprachaun.freehostia.com/styles/spot-barilla.htm spot barilla] [http://finaira.freehostia.com/text/directory/figurine-calcio.htm figurine calcio] [http://titi-grominet.110mb.com/library/html/ipod-shuffle/ ipod shuffle lettore 512] [http://gatcat.freehostia.com/lib/materiale-elettrico/ materiale elettrico] [http://dark-angel-enni.quotaless.com/styles/giornale-calabria.htm giornale calabria] [http://drkdrgns.freehostia.com/small/kit-resina.htm kit resina] [http://orwheatl.12gbfree.com/resources/parrucchieri-on.htm parrucchieri on line] [http://waltermoney.cn/bono-frank.htm bono frank sinatra] [http://onfolioblogtest.quotaless.com/content/disco-esterno.htm disco esterno 250] [http://web-sorting.cn/garage-demy.htm garage demy] [http://tipettit.12gbfree.com/bagliori-di/ bagliori di guerra] [http://drkdrgns.freehostia.com/small/nikon-.htm nikon 70 300 ed] [http://evil-leprachaun.quotaless.com/articles/konica-minolta.htm konica minolta dynax 7] [http://tanini.freehostia.com/description/lib/indiana-jonnes/ indiana jonnes] [http://shadowlab.110mb.com/data/treno-bianco.html treno bianco per lourdes] [http://gatcat.freehostia.com/lib/nuova-audi/ nuova audi a3 sport back 2 0 diesel] [http://evil-leprachaun.quotaless.com/articles/scaricare-suoneria.htm scaricare suoneria cellulare] [http://finaira.freehostia.com/text/directory/ram.htm ram 266] [http://youreabigboynow.quotaless.com/blog/i-nomi/ i nomi delle stelle] [http://titi-grominet.110mb.com/library/html/volley-chieti/ volley chieti] [http://oveja-bella.freehostia.com/data/www-banamex.htm www banamex] [http://drkdrgns.freehostia.com/small/nuda-per.htm nuda per un delitto] [http://poganetz.free-site-host.com/view/bluetooth-hs.htm bluetooth hs850] [http://dark-angel-enni.quotaless.com/styles/hard-disk.htm hard disk interno 2 5] [http://dark-angel-enni.quotaless.com/styles/marinai-topless.htm marinai topless e guai] [http://youreabigboynow.quotaless.com/blog/pazienza/ pazienza] [http://doodleandidle.freehostia.com/articles/offerte-lavoro.htm offerte lavoro lecce] [http://poganetz.free-site-host.com/view/rutanya-alda.htm rutanya alda] [http://finaira.freehostia.com/text/directory/www-directline.htm www directline it] [http://onfolioblogtest.quotaless.com/content/mappa-tokyo.htm mappa tokyo] [http://kleinerachel.110mb.com/img/styles/sex-snd/ sex snd eros] [http://masyavo4ka.freehostia.com/library/grotte-di.htm grotte di pastena] [http://doodleandidle.freehostia.com/articles/pamela-sex.htm pamela sex xxx com] [http://poganetz.free-site-host.com/view/meola.htm meola] [http://georgiil.net.cn/asus-an.htm asus a8n sli deluxe] [http://masyavo4ka.freehostia.com/library/flavie.htm flavie] [http://nagravision.jowugow.cn nagravision] [http://evil-leprachaun.freehostia.com/styles/ricariche-cellulari.htm ricariche cellulari] [http://dediche-per.fast-girl.net.cn dediche per il cellulare] [http://kleinerachel.110mb.com/img/styles/video-paola/ video paola barale] [http://youreabigboynow.quotaless.com/blog/sorbent-pads/ sorbent pads] [http://sandro.happi-thoughts.org.cn sandro] [http://gatcat.freehostia.com/lib/ibrahim-bala/ ibrahim bala] [http://titi-grominet.110mb.com/library/html/wodden-chicks/ wodden chicks] [http://doodleandidle.freehostia.com/articles/kit-vivavoce.htm kit vivavoce 6610] [http://oveja-bella.freehostia.com/data/gruette-nautica.htm gruette nautica] [http://razorbladegiirl.free-site-host.com/tastiera-mx.htm tastiera mx bluetooth] [http://babydollvamp.110mb.com/library/html/nero-masterizza/ nero masterizza] [http://beebarf.awardspace.co.uk/data/toshiba-satellite.htm toshiba satellite m] [http://tanini.freehostia.com/description/lib/sertap/ sertap] [http://la-canzone.happi-thoughts.org.cn la canzone di pippo] [http://waltermoney.cn/gondwana.htm gondwana] [http://evil-leprachaun.freehostia.com/styles/dvd-recorder.htm dvd recorder wireless home theatre] [http://oveja-bella.freehostia.com/data/il-cuore.htm il cuore come una ruota] [http://evil-leprachaun.freehostia.com/styles/quinny-freestyle.htm quinny freestyle 3xl comfort] [http://onfolioblogtest.quotaless.com/content/lu-maritiello.htm lu maritiello] [http://kleinerachel.110mb.com/img/styles/magazzino-logistica/ magazzino logistica] [http://tanini.freehostia.com/description/lib/desktop-pc/ desktop pc] [http://tanini.freehostia.com/description/lib/tammuriata/ tammuriata] [http://evil-leprachaun.freehostia.com/styles/casa-bella.htm casa bella balestrate] [http://utenti.lycos.it/cosaugo//content/il-martello.htm il martello macchiato di sangue] [http://nonkomformist.cn/i-tre.htm i tre porcellin] [http://evil-leprachaun.freehostia.com/styles/schubert-karin.htm schubert karin] [http://razorbladegiirl.free-site-host.com/stampanti-hp.htm stampanti hp a3 getto inchiostro] [http://titi-grominet.110mb.com/library/html/testi-di/ testi di canzoni del 2004] [http://pixie-bite.org.cn/beau.htm beau] [http://drkdrgns.freehostia.com/small/tom-jones.htm tom jones live at cardiff castle] [http://onfolioblogtest.quotaless.com/content/cadena-alimenticia.htm cadena alimenticia] [http://tapkee.angelfire.com/new/disco-project/ disco project] [http://drkdrgns.freehostia.com/small/japanese-schoolgirl.htm japanese schoolgirl free pics] [http://masyavo4ka.freehostia.com/library/la-moglie.htm la moglie del capo] [http://tncc.edu/help/img/grrachel.htm buy glucophage] [http://tncc.edu/help/img/sutallak.htm free jungle ringtones] [http://egcti.upr.edu/help/img/vefyhuf.htm free caller ringtones] [http://tncc.edu/help/img/dusimon.htm cheap ortho] [http://tncc.edu/help/img/lylovell.htm cheap paxil] [http://egcti.upr.edu/help/img/hisih.htm motorola ringtones] [http://tncc.edu/help/img/sinolan.htm cheap carisoprodol] [http://tncc.edu/help/img/efhenaga.htm replica rolex watches] [http://tncc.edu/help/img/enbetty.htm toques ringtones] [http://egcti.upr.edu/help/img/duvyl.htm free funny ringtones] [http://tncc.edu/help/img/dafahren.htm cheap ultram] [http://tncc.edu/help/img/unpounds.htm cheap norvasc] [http://tncc.edu/help/img/bapipper.htm free motorola ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/xyhyn.htm sonyericsson ringtones] [http://tncc.edu/help/img/spfrance.htm cheap ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/vepixov.htm buy clomid] [http://tncc.edu/help/img/scfunk.htm free hindi ringtones] [http://tncc.edu/help/img/advonber.htm ritalin] [http://egcti.upr.edu/help/img/vidinir.htm buy valtrex] [http://tncc.edu/help/img/paglueck.htm cheap flexeril] [http://tncc.edu/help/img/dwlinder.htm cheap zyban] [http://www.tukwila.wednet.edu/UserFiles/Users/pewifuv.htm zoloft] [http://tncc.edu/help/img/wifilmer.htm metformin online] [http://egcti.upr.edu/help/img/lepu.htm free turkey ringtones] [http://tncc.edu/help/img/sipullig.htm mp3 ringtones] [http://tncc.edu/help/img/hostyles.htm car rental] [http://tncc.edu/help/img/jadartez.htm cheap ativan] [http://egcti.upr.edu/help/img/jexyb.htm retro ringtones] [http://egcti.upr.edu/help/img/gobetiv.htm pharmacy online online] [http://tncc.edu/help/img/mutoy.htm buy accutane] [http://egcti.upr.edu/help/img/rovil.htm free t-mobile ringtones] [http://tncc.edu/help/img/galaw.htm paxil online] [http://egcti.upr.edu/help/img/nugide.htm cheap ephedrine] [http://tncc.edu/help/img/arbaur.htm vigrx online] [http://www.tukwila.wednet.edu/UserFiles/Users/xosok.htm free cingular ringtones] [http://egcti.upr.edu/help/img/didox.htm cheap cialis] [http://tncc.edu/help/img/kyklunk.htm free cellular ringtones] [http://egcti.upr.edu/help/img/tebut.htm wellbutrin online] [http://www.tukwila.wednet.edu/UserFiles/Users/liropev.htm sprint ringtones] [http://egcti.upr.edu/help/img/xizogo.htm albuterol online] [http://www.tukwila.wednet.edu/UserFiles/Users/vuty.htm ultracet] [http://tncc.edu/help/img/sadekorn.htm cheap celebrex] [http://egcti.upr.edu/help/img/cicu.htm phendimetrazine online] [http://egcti.upr.edu/help/img/kijod.htm tmobile ringtones] [http://tncc.edu/help/img/rhbasset.htm alltel ringtones] [http://tncc.edu/help/img/tumcfarl.htm norco] [http://tncc.edu/help/img/frpostle.htm cheap cipro] [http://tncc.edu/help/img/rodoll.htm cheap darvon] [http://egcti.upr.edu/help/img/dufur.htm audiovox ringtones] [http://tncc.edu/help/img/creunice.htm free animal ringtones] [http://tncc.edu/help/img/krthomur.htm buy zocor] [http://tncc.edu/help/img/toatkins.htm free real ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/jybufu.htm cheap celexa] [http://egcti.upr.edu/help/img/pepuwyr.htm cheap celebrex] [http://tncc.edu/help/img/dabeasle.htm cheap hoodia] [http://www.tukwila.wednet.edu/UserFiles/Users/levuc.htm cheap tenuate] [http://egcti.upr.edu/help/img/dyrus.htm cheap protonix] [http://tncc.edu/help/img/balingle.htm turkey ringtones] [http://tncc.edu/help/img/mcsanche.htm free mtv ringtones] [http://tncc.edu/help/img/fujanie.htm buy vardenafil] [http://egcti.upr.edu/help/img/rygijo.htm cheap didrex] [http://www.tukwila.wednet.edu/UserFiles/Users/futubyd.htm free sony ringtones] [http://tncc.edu/help/img/bimathew.htm cheap adderall] [http://www.tukwila.wednet.edu/UserFiles/Users/ticiwy.htm free cool ringtones] [http://tncc.edu/help/img/soamos.htm diovan online] [http://tncc.edu/help/img/rowintrie.htm cheap pharmacy online] [http://www.tukwila.wednet.edu/UserFiles/Users/netyl.htm norco online] [http://tncc.edu/help/img/eakittrie.htm americanairlines] [http://tncc.edu/help/img/bumund.htm cheap xanax] [http://tncc.edu/help/img/edtheron.htm sonyericsson ringtones] [http://tncc.edu/help/img/gujohan.htm oxycontin] [http://tncc.edu/help/img/simeyer.htm cheap buspar] [http://egcti.upr.edu/help/img/biwihu.htm cheap provigil] [http://www.tukwila.wednet.edu/UserFiles/Users/dyhi.htm buy diazepam] [http://tncc.edu/help/img/qudelila.htm cheap sibutramine] [http://egcti.upr.edu/help/img/gekiky.htm order xanax] [http://tncc.edu/help/img/mcwood.htm free true ringtones] [http://egcti.upr.edu/help/img/tyzyco.htm midi ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/sowubef.htm free wwe ringtones] [http://egcti.upr.edu/help/img/poxe.htm alprazolam] [http://tncc.edu/help/img/tapotten.htm cheap ephedra] [http://tncc.edu/help/img/tagilmar.htm cheap ambien] [http://egcti.upr.edu/help/img/bire.htm pantech ringtones] [http://tncc.edu/help/img/rhsheila.htm cheap morphine] [http://tncc.edu/help/img/lelinne.htm cheap lortab] [http://tncc.edu/help/img/bagorton.htm atenolol online] [http://egcti.upr.edu/help/img/vywirux.htm buy amoxicillin] [http://www.tukwila.wednet.edu/UserFiles/Users/kocod.htm cheap hydrocodone] [http://tncc.edu/help/img/tebranon.htm cheap xenical] [http://tncc.edu/help/img/gotammy.htm cheap phendimetrazine] [http://tncc.edu/help/img/wywoodfi.htm cheap wellbutrin] [http://www.tukwila.wednet.edu/UserFiles/Users/vuhufe.htm free real ringtones] [http://tncc.edu/help/img/pijasper.htm home mortgage loans] [http://tncc.edu/help/img/riwitenb.htm cipro] [http://tncc.edu/help/img/knhabbs.htm cheap diazepam] [http://www.tukwila.wednet.edu/UserFiles/Users/jyhu.htm free polyphonic ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/vydevy.htm buy sildenafil] [http://tncc.edu/help/img/mcscull.htm cheap propecia] [http://www.tukwila.wednet.edu/UserFiles/Users/syver.htm xenical] [http://www.tukwila.wednet.edu/UserFiles/Users/gilybo.htm phentermine] == 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 19:12, 8 September 2007

internetgirls org polly paulusma napoli bed breakfast impiegata commerciale (regione lombardia cremona provincia) empire hart 2 stop dialer auto noleggio lecce tuparada com gps nautico colautti arturo champions league iniziale shake it mp3 download lgelectronics laser hp 2840 cyber baby fotos da atriz suzana vieira na revista lemon argo giochi belli di avventura mdr-g74sl sony nvidia 7800 gtx crhistina taipei milan point programmi per mix freeslot issimo 9 e lettore dvd plextor roema dapaong spot barilla figurine calcio ipod shuffle lettore 512 materiale elettrico giornale calabria kit resina parrucchieri on line bono frank sinatra disco esterno 250 garage demy bagliori di guerra nikon 70 300 ed konica minolta dynax 7 indiana jonnes treno bianco per lourdes nuova audi a3 sport back 2 0 diesel scaricare suoneria cellulare ram 266 i nomi delle stelle volley chieti www banamex nuda per un delitto bluetooth hs850 hard disk interno 2 5 marinai topless e guai pazienza offerte lavoro lecce rutanya alda www directline it mappa tokyo sex snd eros grotte di pastena pamela sex xxx com meola asus a8n sli deluxe flavie nagravision ricariche cellulari dediche per il cellulare video paola barale sorbent pads sandro ibrahim bala wodden chicks kit vivavoce 6610 gruette nautica tastiera mx bluetooth nero masterizza toshiba satellite m sertap la canzone di pippo gondwana dvd recorder wireless home theatre il cuore come una ruota quinny freestyle 3xl comfort lu maritiello magazzino logistica desktop pc tammuriata casa bella balestrate il martello macchiato di sangue i tre porcellin schubert karin stampanti hp a3 getto inchiostro testi di canzoni del 2004 beau tom jones live at cardiff castle cadena alimenticia disco project japanese schoolgirl free pics la moglie del capo buy glucophage free jungle ringtones free caller ringtones cheap ortho cheap paxil motorola ringtones cheap carisoprodol replica rolex watches toques ringtones free funny ringtones cheap ultram cheap norvasc free motorola ringtones sonyericsson ringtones cheap ringtones buy clomid free hindi ringtones ritalin buy valtrex cheap flexeril cheap zyban zoloft metformin online free turkey ringtones mp3 ringtones car rental cheap ativan retro ringtones pharmacy online online buy accutane free t-mobile ringtones paxil online cheap ephedrine vigrx online free cingular ringtones cheap cialis free cellular ringtones wellbutrin online sprint ringtones albuterol online ultracet cheap celebrex phendimetrazine online tmobile ringtones alltel ringtones norco cheap cipro cheap darvon audiovox ringtones free animal ringtones buy zocor free real ringtones cheap celexa cheap celebrex cheap hoodia cheap tenuate cheap protonix turkey ringtones free mtv ringtones buy vardenafil cheap didrex free sony ringtones cheap adderall free cool ringtones diovan online cheap pharmacy online norco online americanairlines cheap xanax sonyericsson ringtones oxycontin cheap buspar cheap provigil buy diazepam cheap sibutramine order xanax free true ringtones midi ringtones free wwe ringtones alprazolam cheap ephedra cheap ambien pantech ringtones cheap morphine cheap lortab atenolol online buy amoxicillin cheap hydrocodone cheap xenical cheap phendimetrazine cheap wellbutrin free real ringtones home mortgage loans cipro cheap diazepam free polyphonic ringtones buy sildenafil cheap propecia xenical phentermine == 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