HOW TO – Back Up and Restore the AppleTV Hard Disk

appletvopened_20070331.jpg
Before you start playing with the software on the AppleTV, it’s prodent to make a bit-level copy of the internal disk. That way, if something goes wrong during your experimentation, you can restore the disk to its original state.

To do this, you’ll be removing the AppleTV’s disk, putting it in another machine (Linux or OS X), and copying the contents to a file on another hard drive. Note that you’ll need a minimum of about 40gig on the other drive to store the disk image. You’ll also need a 2.5inch external drive enclosure, or a 2.5inch to 3.5inch IDE adapter for attaching the drive to your other machine. Finally, there’s a good chance that opening the case will void your warrantee… but it’s for a good cause right?

Back up:

  • First, remove the hard disk from your AppleTV. Check out Makezine’s instructions to dissect your new toy -Link.
  • Connect the drive to your computer as if you were adding a second disk. On Linux, it will be available as /dev/hdb or /dev/hdc depending on whether you slaved it to the first drive or put it on the second channel (we’ll assume hdc). In OS X, use the diskutil list command to list the partition tables on your drives. The AppleTV disk will have HFS partitions named Media and OSBoot. We’ll assume /dev/disk2 for this article.
  • Copy the disk’s entire contents to your hard drive. In Linux, run:

    dd if=/dev/hdc of=/home/[username]/appletvdump.img bs=1024k

    For OS X users, it’s the same thing, just a different device:

    dd if=/dev/disk2 of=/Users/[username]/appletvdump.img bs=1024k

This should take a while, and you’ll see/hear both hard drives being accessed. When it’s finished, you should have a 40gig (approximately) file on your other computer. On a new AppleTV disk, a lot of this is unused, zeroed out space, so you can gzip it to save some space on your backup machine.

How To Restore:
To restore, we just go through the same process as above, but instead of writing the disk’s contents to a file, we write the backup file’s contents back to the disk:

In Linux:
dd if=/home/[username]/appletvdump.img of=/dev/hdc bs=1024k
In OS X:
dd if=/Users/[username]/appletvdump.img of=/dev/disk2 bs=1024k

That’s all there is to it. With your backup in place, you’re now free to monkey around and try some of the other tricks we’re posting on this AppleTV weekend (or concoct a hack or two of your own)!

AVR controlled clock

Avr Clock1
Daqq made a really simple The AVR controlled clock, source and schematic included -

A friend of mine needed a clock into his amplifier as an extra function. So I made him one. It consists only of one AVR processor and one BQ-M512RD (or compatible, with common anodes) LED display.

Daqqs homepage – [via] Link.

Related:

  • Getting started with AVR microprocessors on the cheap – Link.
  • Getting started with 8 bit AVR microcontrollers – Link.
  • Open source Atmel AVR microcontroller kits… – Link.
  • More AVR projects @ MAKE – Link.

HOW TO – Boot AppleTV From USB


The above video describes how to put the AppleTV into recovery mode, where it will boot from an attached USB drive. It’s a matter of attaching a usb drive, holding down the menu and minus buttons to enable recovery mode and rebooting.

The ultimate goal is to be able to get to a point where people can hack their AppleTVs without needing to open the case. To do this, work is being done to prepare a suitable recovery image for the USB drive that will enable SSH on the internal disk -Link.

Lemon-Powered AVR Tiny

Dhananjay V. Gadre wrote in with this awesome project:

We have been itching to try running an AVR micro on fruit power. I do
have the latest Picopower AVR samples, but it was too much of an
effort to solder a 64 pin TQFP and so we decided to give a try with
Tiny13V chip instead. The chip was setup to operate at an internal
clock of 128KHz with a divide by 8 setting. A program to toggle an LED
on pin 3 of the micro was set up with a series resistance of 4.7KOhm.
The fruit cell was made out of a bare PCB partitioned in 4 sections.
The copper of the PCB made up one electrode and for the other we used
zinc strips from new batteries :) Two lemons cut in half were used.

The setup works well and the LED light didnt seem to diminish at all.

MintyBoost! Kit V1.1

Fd0Mqyvew5Ez7Bhe7O.Medium
Here’s another one of our kits with instructions, up on Instructables -

This is an updated version of the detailed instructable by this device’s inventor, Ladyada. The updated version has some extra components. Also if you’re having trouble be sure to read the extra section in step 4 about modifying the MintyBoost to work with some newer MP3 players. (It’s quite simple).

MintyBoost! Kit V1.1 – Link & get on @ the Maker store.

HOW TO – Make a thumb piano

Fsuxqzwz46Excfeyt4.Medium
BobsDogHouseon writes -

I saw one of these somewhere a while back and always thought it would be fun to play with. A quick Google came up with several including the one in this picture. It’s available online for about $33. I’m no kind of musician and I’ve never built a musical instrument before but this looks simple enough. I’d rather just make one.

Thumb Piano – Link.