Build AppleTV Take2 harddrive
For someone who accidentally formatted or bricked TV hard drive (like I did), here are steps that work for me on Leopard (10.5.4)
- Either you got new hard drive or bricked hard drive, you got to connect hard drive to you mac
- Use diskutil list to see your disk partition (we need to know where an TV hard drive is)
- Here is what proper partitions should look like when you finish (please note /dev/disk1 as you TV hard drive)
- Then delete and re-create partition table using command below in Terminal
gpt destroy /dev/disk1
gpt create /dev/disk1
- Now we need to partition harddrive, first create EFI partition
gpt add -b 40 -i 1 -s 409600 -t efi /dev/disk1
- Then create Apple_Recovery partition
gpt add -b 409640 -i 2 -s 819200 -t 5265636F-7665-11AA-AA11-00306543ECAC /dev/disk1
- Next is OSBoot which is where the OSX fit in
gpt add -b 819240 -i 3 -s 1843200 -t hfs /dev/disk1
- The last partition is Media which is all the movies and songs are located. This partition you need to fill in the *size* part your self by looking at the end size using command
diskutil unmountDisk /dev/disk1sudo gpt show /dev/disk1
gpt add -b 1843240 -i 4 -s *size* -t hfs /dev/disk1
- After partitioning, we need to format OSBoot and Media partition in HFS+ Format
diskutil eraseVolume "Journaled HFS+" OSBoot /dev/disk1s3
diskutil eraseVolume "Journaled HFS+" Media /dev/disk1s4
diskutil unmountDisk /dev/disk1
- Now you ready to restore OSBoot partition to working state. Download the latest AppleTV Take 2 software by checking link here http://mesu.apple.com/version.xml
- Then you can use Disk Utility to easily restore OSBoot partition
- Set the source to the newly AppleTV image that you just downloaded (2Z694-5428-3.dmg), and drag the OSBoot partition to Destination. After that press “Restore” button.

- This process took about 3 minutes, after this step you’re done.
- Connect TV hard drive back to TV
- Once you startup the TV, it will create EFI image in TV automatically
- I did the Factory restore to make sure that everything is working fine.
- Now your TV is ready to use (and to be hacked ^_^)
Thanks for http://wiki.awkwardtv.org/wiki/Prepare_a_Hard_Drive and http://smallnum.blogspot.com/2008/02/re-creating-apple-tv-from-scratch.html for a very useful information.


July 17th, 2008 at 7:35 am
Awesome guide! I just recovered my apple TV after some wreckless hackery pokery. I think your block counts are a little out for the last two gpt adds though. Should be:
gpt add -b 1228840 -i 3 -s 1843200 -t hfs /dev/disk1
gpt add -b 3072040 -i 4 -s -t hfs /dev/disk1
July 25th, 2008 at 4:44 am
great guide!!! perfect!! keep up the good work!!!
August 20th, 2008 at 9:29 am
Very Nice Site! Thanx!
http://excellent-credit-card.blogspot.com
September 30th, 2008 at 6:05 pm
LOL
that doesn’t even make any sense!
November 14th, 2008 at 7:52 am
gpt add -b 819240 -i 3 -s 1843200 -t hfs /dev/disk1 returns
“gpt add: /dev/disk1: error: no space available on device”
Which is odd, its the original 160GB HDD that came with the AppleTV.
November 14th, 2008 at 7:58 am
Looks like you need to unmount the disk after each step to avoid that “no space available” message.
# sudo diskutil unmountDisk /dev/disk1
Unmount of all volumes on disk1 was successful
# gpt add -b 888872 -i 3 -s 1843200 -t hfs /dev/disk1
/dev/disk1s3 added
December 30th, 2008 at 2:04 pm
Every time I try to execute a command in Terminal I get an “Permission Denied” Error. How do I fix that?
December 30th, 2008 at 2:20 pm
Try using ’su’ in front of the command to gain root access.