Backup your original Hard Drive

From AwkwardTV
Revision as of 03:56, 11 September 2007 by AjpKxs (talk | contribs)
Jump to: navigation, search

she will be loved orovi monitor lcd yusmart obsesion aventura remix download cartina fisica toscana giubbotto jeans dvd player portable ati sapphire radeon x800pro 256mb ddr monitor lcd con tv madam ascolta giochi nuovi di avventura lesbo paradise floppy disk esterno playboy the mansion xbox ariete 4250 sorrisi com crusader wick james last end his orchestra albergo pensione rimini lucy lawless nuda cartografia de comune di bologna traccia prima prova maturita 2004 olsen ernst bruun k8t neo2f socket 939 amd chipset jolly hotel roma chitarra acustica filumena moglie bagnata mov marco migliavacca caludio baglioni pacifisti della prima guerra mondiale chiudi internet www aree sciistiche it sm 913v un uomo da bruciare la tua vita per mio figlio www regalo delta integrale it condomgame nautica motor filodiffusione video violenza tra tifosi guru abbigliamento franchising mercedes c 220 cdi avantgarde wedding dress raccoglitori ufficio nuova golf 2 0 pinnacle dazzle dvc80 corsair ram sodimm anastasia outside alone centro servizi mercury sas km fate immagini passione ambigua mac schede audio il paradiso dei fuorilegge varese coppie dvd recorder wiso chce tu zosta 263 i giochi piu belli per ps1 dizionario italiano bulgaro cerca con msn canzoni manfredi da scaricare gratis sacramento dell eucarestia audi a4 anno 2002 corpus domini volante pedali monica anselmi panasonic lumix lz1 de longhi 1000 lafontaine henri playstation dance mat dove stai motori di ricerca software grazie signore grazie fotocamere kyocera tarzan boy baltimore sesso con bestie autopilota masterizzatore pioneer 110 margot sikabony schweinfurth georg august gur cisco 350 series pc card nicomar protetto mutuo agevolato giovani coppia fassi tower caracas venezuela tiziano ferro serenere preventivo rc auto calendario barale transizione economica philips lettore combi dvd vcr hifi ferrovia stato seat concessionario loghi cellulare gratis pachelbe canon netgear fs108p un trailer americano per dragon quest viii codex indeo to nem aj splendore p i m p postal de amistad bluetooth per nokia gps sardegna canta may wey www auxologia it ascolta un emozione per sempre poliziotto a quattro zampe mattoe hotel san pietroburgo tv hitachi 32 pd5200 la cumparsita tango argentino travel south america con ragazze belle donna 50 anni olbia cam porn www adiconsum it solo eamon italian version bp 711 vicenza centro see thru bikini itt erotismo negre trans flash da 512 vita rosa ivan d andrea guerra von orari trghetti wamu com millio inverigo bosch maxx game park ultimi annunci gossip su alessandra e costantino cat6 mitsubishi space runner 2001 pastiglie leone carbo load freddie mercury tribute bici ciclismo folds khara khoto defim ignis auto nuova philips magic 2 sony 15 just another diet pills info412 profumo benetton sport musicas dos da weasel mercanti di uomini porta cd dvd montecarlo nights 3 destinazione marciapiede violenza per una giovane video da vedere ruky addio mia bella signora althaus clemente tubo irrigazione halo 2 xbox batterie z300 microfono filo cofanetto lino banfi san mateo dvd amstrad home theatre la caffettiera del masochista portatile hp cel fujifilm finepix f440 idea vetro snc fifa 2004 soccer sud esr katherine mansfield buffy stagione 3 completa salentino alberi e scoiattoli tv fm usb telecomando per ricevitore tele system audoux marguerite florida mortgage broker foto panty poop adobe photoshop elements 3 eizo monitor lcd 17 drowning pool the game white snake tesmed tette grandi mappa alzano lombardo gabon ram full brand marben iron maiden the trooper ddr seagate hd corde della mia chitarra bussola orologi millau fiorino fiat le olimpiadi di tokyo porta romana bella lady chatterley story suoni militari gronau brigitta bulgari a fica di fuori lemmings paintball frasi laurea lazio testi motivi housing architects bossanova standard rex fms 0100 xe il pellegrino russo blackang sexy naked images for nancy agram immagini di donne bellissime nude phim lecciso nuda risorsa playstation 2 gigi d alessio napule pc portatile computer epson stylus scan 2000 peli comparse condizionatori 9000 videoeros tarantella rossini nike shox oz www tarjetas com tatuaggi gatti la scogliera dei desideri mercedes emilia romagna britney spears music box biographical collection thes lcd easy share red 5 cpu amd athlon xp peugeot 106 14 sport auto nissan micra bigcock filmati decapitazione in irak download mame 32 lx t7206 011 ramasotti lo scambio di coppia { 5A8 {Template:Banner}} The Phoem method may be superceded by Engadget's. Please consider doing a complete ~40GB backup of your original drive.

Phoem's Fast DD Method (OS X)

This will allow you to make copies of your AppleTV system partitions in case you need to restore them to a virgin state. This has only been tested on MacOS X.

NOTE: These instructions assume /dev/disk2 is your AppleTV drive.

First we will make copies of the original AppleTV partitions that we care about (everything except for the media partition, basically).

Lets copy the partitions onto your local drive:

dd if=/dev/disk2 of=Partition.img bs=1024k count=100
dd if=/dev/disk2s1 of=EFI.img
dd if=/dev/disk2s2 of=OS.img
dd if=/dev/disk2s3 of=OSBoot.img

Now lets put it back in place onto the new drive:

dd if=Partition.img of=/dev/disk2 bs=1024k count=100
dd if=EFI.img of=/dev/disk2s1
dd if=OS.img of=/dev/disk2s2
dd if=OSBoot.img of=/dev/disk2s3

Now use iPartition demo to find out the size if you were to grow the partition completely; using up the free space.
Execute: gpt recover /dev/disk2
Execute: gpt remove -i 4 /dev/disk2
Unmount the drives.
Execute: gpt add -s 309849759 -i 4 /dev/disk2
NOTE: 309849759 represents the # of blocks iPartition menti 4B0 oned.
Finally, open diskutility and format just the media partition. (erase)

Linux Method

For a full disk image execute (approx 40GB space required):

dd if=/dev/sdc of=appletv-full-disk.bin bs=1024

For a compressed disk image execute (approx 2.5GB, roughly 1-3hrs):

dd if=/dev/sdc bs=1024 | gzip > appletv-full-disk.bin.gz

For partition-specific backups execute:

dd if=/dev/sdc0 of=Partition.img bs=1024 count=100
dd if=/dev/sdc1 of=EFI.img
dd if=/dev/sdc2 of=OS.img
dd if=/dev/sdc3 of=OSBoot.img
dd if=/dev/sdc4 of=Media.img

To perform a full drive restore (takes a long time, 18 hours in one case, but a sure thing from a whole disk), execute:

dd if=appletv-full-disk.bin of=/dev/sdc bs=1024

Note: sdc represents your AppleTV 2.5" notebook drive. It could be sda/sdb/sdc (USB) or hda/hdb/hdc (IDE) depending on your system, and how you connect the drive to the host machine. The number that sometimes but not always follows it is the partition id. In Linux, not specifying the partition id treats the whole drive as one big partition. This c 5A8 an be useful for backups and restores.

The reasoning behind creating a full backup image should be clear by looking at the partition table with fdisk. The minor partitions are wrapped in one large meta-partition!

Disk /dev/hdc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device    | Boot | Start | End   | Blocks   | Id | System
/dev/hdc1          1       4864    39070076   ee   EFI GPT


Update: Linux can see the partitions and can mount them (although journaling is not supported), if the following options are compiled in the kernel. (not sure if you need all of them)

Filesystems -> Partition Types -> Advanced partition selection                    (CONFIG_PARTITION_ADVANCED=y)
Filesystems -> Partition Types -> Macintosh partition map support                 (CONFIG_MAC_PARTITION=y)
Filesystems -> Partition Types -> EFI GUID Partition support                      (CONFIG_EFI_PARTITION=y)
Filesystems -> Miscanelous filesystems ->Apple Extended HFS file system support   (CONFIG_HFSPLUS_FS=m or y)

Partitions can be mounted forcefully. Although this is not recommended, it may be necessary to alter execution permissions on files such as /usr/sbin/sshd before it will auto-launch. Forceful mounts can be done with:

mount -t hfsplus -o force /dev/sdc3 /mnt/applet
5A8
v

Linux Method With Compression

To back up the whole raw disk image takes 40 GB of drive space on the destination drive. Most of the source disk is empty however.
This allows for the creation of a smaller image by piping dd to gzip while imaging the drive.

dd if=/dev/sdc bs=1024 | gzip > wholedrive.img.gz

39070080 0 records in
39070080 0 records out
40007761920 bytes (40 GB) copied, 3436.62 seconds, 11.6 MB/s

Note: This will take about an hour depending on your machine!

In the end, this results in a file that's about 2.4GB on the destination disk. Not a bad compression ratio!

Update: dd if=/dev/sdc bs=1024 | bzip2 -9 > wholedrive.img.bz2 Will take approx twice as long, and result in a 2.2GB file. FYI.

Update 2: there is a huge gain in compressibility if you zero the empty space on the partitions before doing backup. I did the folowing using a macintosh on Media and OSBoot partitions and the resulting image is only 528 MB! The reason is that the zeros are more compressible than the garbage, which was there before.

dd if=/dev/zero of=/Volumes/Media/big_file_full_of_zeros bs=1024
rm /Volumes/Media/big_file_full_of_zeros
sudo umount /Volumes/Media/

Maybe the same effect can be obtained using macintosh Disk Utility -> Erase -> Erase Free Space ... -> Zero Out Deleted Files