Difference between revisions of "Backup your original Hard Drive"

From AwkwardTV
Jump to: navigation, search
m
m (spamday morning)
Line 1: Line 1:
[http://puli.org.cn/web/i-distretti/ i distretti industriali italiani] [http://hangzhau.cn/html/bach/ bach] [http://puli.org.cn/web/spiagge-alghero/ spiagge alghero] [http://italnet.net.cn/img/nella-mia/ nella mia citta] [http://nibko.info/data/sfondi-spiagge.htm sfondi spiagge] [http://italnet.net.cn/img/doppia-coppia/ doppia coppia] [http://hangzhau.cn/html/i-canti/ i canti degli alpini] [http://nibko.info/data/scheda-madre.htm scheda madre athlon] [http://nibko.info/data/stampa-bollettini.htm stampa bollettini ici] [http://hangzhau.cn/html/tefal-kaleo/ tefal kaleo 2] [http://nibko.info/data/la-sottana.htm la sottana di ferro] [http://hangzhau.cn/html/adimari-lodovico/ adimari, lodovico] [http://hangzhau.cn/html/www-tyreclub/ www tyreclub pirelli com] [http://zodip.info/description/tomtom-navigator.htm tom-tom navigator] [http://italnet.net.cn/img/fastov/ fastov] [http://nibko.info/data/pane-fare.htm pane fare] [http://puli.org.cn/web/prime-immagini/ prime immagini per uefa champions league 2004-2005] [http://zodip.info/description/julio-lirycs.htm julio lirycs] [http://zodip.info/description/stampanti-multifunzione.htm stampanti multifunzione per dvd] [http://hangzhau.cn/html/kissing-in/ kissing in the rain] [http://hangzhau.cn/html/sospero/ sospero] [http://nibko.info/data/i-filibustieri.htm i filibustieri] [http://italnet.net.cn/img/notte-dopo/ notte, dopo notte, dopo notte - il mostro delle notti di londra] [http://nibko.info/data/simboli-esoterici.htm simboli esoterici] [http://italnet.net.cn/img/amityville-d/ amityville 3d. the demon] [http://hangzhau.cn/html/lovelace/ lovelace] [http://nibko.info/data/mitsubishi-awv.htm mitsubishi a18wv] [http://hangzhau.cn/html/cd-rom/ cd rom drive] [http://italnet.net.cn/img/doom-e/ doom e quake per os x] [http://puli.org.cn/web/nautica-usato/ nautica usato] [http://italnet.net.cn/img/rain-and/ rain and tear] [http://nibko.info/data/acquisto-auto.htm acquisto auto usata] [http://zodip.info/description/dadi-yanqui.htm dadi yanqui] [http://italnet.net.cn/img/www-marzia/ www marzia stefy] [http://puli.org.cn/web/amo-vampiri/ amo vampiri] [http://puli.org.cn/web/toner-per/ toner per samsung 1520] [http://italnet.net.cn/img/toner-laserjet/ toner laserjet 1100] [http://puli.org.cn/web/hochey/ hochey] [http://puli.org.cn/web/gate-dolce/ gate dolce gabbana orologi] [http://nibko.info/data/cuffie-stereo.htm cuffie stereo auricolare auricolari] [http://hangzhau.cn/html/jarre-jean/ jarre jean michel] [http://puli.org.cn/web/vrally-edition/ v-rally edition 99] [http://italnet.net.cn/img/rita/ rita] [http://hangzhau.cn/html/american-ballet/ american ballet theatre in san francisco] [http://puli.org.cn/web/gamecube-cavo/ gamecube cavo] [http://hangzhau.cn/html/noleggio-dvd/ noleggio dvd trame film] [http://nibko.info/data/verden-an.htm verden an der aller] [http://zodip.info/description/canon-mv.htm canon mv 850i videocamere] [http://zodip.info/description/scuola-di.htm scuola di hostess] [http://zodip.info/description/lavatrice-siltal.htm lavatrice siltal] [http://italnet.net.cn/img/twin-towers/ twin towers] [http://puli.org.cn/web/overture/ overture] [http://nibko.info/data/giochi-online.htm giochi online per ragazzi di 11 anni] [http://hangzhau.cn/html/scarpe-donna/ scarpe donna con tacco alto] [http://italnet.net.cn/img/pny-quadro/ pny quadro 1100] [http://puli.org.cn/web/trans-versal/ trans versal 16 disc. 12 mm] [http://puli.org.cn/web/waterford-contea/ waterford (contea)] [http://zodip.info/description/film-giochi.htm film giochi d estate] [http://nibko.info/data/casio-exilim.htm casio exilim 3 2] [http://nibko.info/data/lutricia.htm lutricia] [http://nibko.info/data/configura-outlook.htm configura outlook i box] [http://nibko.info/data/pasta-frolla.htm pasta frolla] [http://puli.org.cn/web/annunci-lavoro/ annunci lavoro] [http://puli.org.cn/web/asciugamani-casa/ asciugamani casa] [http://hangzhau.cn/html/acoustic-energy/ acoustic energy] [http://hangzhau.cn/html/il-signore/ il signore degli anelli torna su pc e psp] [http://puli.org.cn/web/bonne-nouvelles/ bonne nouvelles] [http://nibko.info/data/p-.htm p4 3 0 intel ht] [http://puli.org.cn/web/lavatrice-/ lavatrice 5 kg] [http://italnet.net.cn/img/amore-donna/ amore donna] [http://nibko.info/data/mooron.htm mooron 5] [http://puli.org.cn/web/battisti-carlo/ battisti, carlo] [http://italnet.net.cn/img/radiosveglia-con/ radiosveglia con rds] [http://zodip.info/description/universita-di.htm universita di parma] [http://hangzhau.cn/html/cera-per/ cera per paviemnti] [http://italnet.net.cn/img/surf-nelle/ surf nelle mie vene] [http://puli.org.cn/web/www-co/ www co google it] [http://hangzhau.cn/html/tutti-tipi/ tutti tipi di giochi in italiano] [http://italnet.net.cn/img/placebo-twenty/ placebo twenty] [http://puli.org.cn/web/commandos/ commandos3] [http://puli.org.cn/web/lacie-ek/ lacie 300728ek] [http://puli.org.cn/web/prezzo-orologio/ prezzo orologio panerai] [http://hangzhau.cn/html/false-bay/ false bay] [http://puli.org.cn/web/george-re/ george re della giungla 2] [http://italnet.net.cn/img/brian-dales/ brian dales] [http://puli.org.cn/web/minogue-slow/ minogue slow] [http://italnet.net.cn/img/michelezarrillo/ michelezarrillo] [http://italnet.net.cn/img/scarica-generale/ scarica generale vasco] [http://zodip.info/description/tema-riguardante.htm tema riguardante boccaccio] [http://hangzhau.cn/html/midi-file/ midi file del 2004] [http://hangzhau.cn/html/madden-nfl/ madden nfl 97] [http://hangzhau.cn/html/www-ferrari/ www ferrari com] [http://zodip.info/description/ignis-loa.htm ignis loa80] [http://nibko.info/data/ragazzi-senza.htm ragazzi senza disagio devianza e] [http://zodip.info/description/www-video.htm www video gratis it] [http://italnet.net.cn/img/seme-velvet/ seme velvet morning] [http://italnet.net.cn/img/ferretti-andrea/ ferretti andrea ortopedico] [http://nibko.info/data/multitraccia-digitale.htm multitraccia digitale registratori] [http://italnet.net.cn/img/escort-forum/ escort forum it] [http://nibko.info/data/bmw-i.htm bmw 318i touring] [http://nibko.info/data/last-dance.htm last dance] [http://puli.org.cn/web/sofia-marinova/ sofia marinova] [http://puli.org.cn/web/game-rival/ game rival] [http://italnet.net.cn/img/samsung-p/ samsung 957p] [http://puli.org.cn/web/www-roma/ www roma sapienza] [http://nibko.info/data/vilmorin-louise.htm vilmorin, louise de-] [http://puli.org.cn/web/granny-nude/ granny nude] [http://hangzhau.cn/html/passerano-marmorito/ passerano marmorito] [http://italnet.net.cn/img/nokia-accessori/ nokia accessori telefonia] [http://italnet.net.cn/img/feme/ feme] [http://zodip.info/description/inferno-in.htm inferno in florida] [http://zodip.info/description/maxtor-hd.htm maxtor hd sata] [http://italnet.net.cn/img/hdd-sata/ hdd s-ata] [http://zodip.info/description/concorso-regione.htm concorso regione salerno] [http://zodip.info/description/teac-sintoamplificatore.htm teac sintoamplificatore] [http://puli.org.cn/web/la-lama/ la lama di dartagnan] [http://zodip.info/description/racconti-erotici.htm racconti erotici spinti] [http://italnet.net.cn/img/glow/ glow] [http://hangzhau.cn/html/technics-mk/ technics 1210mk2] [http://hangzhau.cn/html/iceberg-effusion/ iceberg effusion] [http://hangzhau.cn/html/princes-trust/ princes trust concert 1999. at party in the park] [http://nibko.info/data/nido-baby.htm nido baby cocoon] [http://puli.org.cn/web/cerco-aiuto/ cerco aiuto per inviare e ricevere e mai] [http://zodip.info/description/retton.htm retton] [http://puli.org.cn/web/zoom/ zoom 707] [http://nibko.info/data/ver-video.htm ver video reggaeton] [http://italnet.net.cn/img/tvc-/ tvc 29 100hz] [http://nibko.info/data/lee-ryan.htm lee ryan e duncan james] [http://italnet.net.cn/img/catle/ catle] [http://zodip.info/description/tema-svolto.htm tema svolto famiglia] [http://zodip.info/description/www-bigtitis.htm www bigtitis com] [http://puli.org.cn/web/parsons-sir/ parsons, sir charles algernon] [http://puli.org.cn/web/staffa-soffitto/ staffa soffitto] [http://italnet.net.cn/img/wild-thing/ wild thing. the sixties dvd jukebox. 20 original tv recordings] [http://hangzhau.cn/html/portatili-apple/ portatili apple] [http://italnet.net.cn/img/pasqua-toscana/ pasqua toscana] [http://hangzhau.cn/html/phaenton/ phaenton] [http://zodip.info/description/dvd-ita.htm dvd ita] [http://nibko.info/data/il-decalogo.htm il decalogo uno] [http://zodip.info/description/turrican.htm turrican] [http://italnet.net.cn/img/mundoenlaces/ mundoenlaces] [http://puli.org.cn/web/ufficio-telefoni/ ufficio telefoni] [http://zodip.info/description/erotismo-video.htm erotismo video] [http://hangzhau.cn/html/antz/ antz] [http://zodip.info/description/the-film.htm the film zone] [http://puli.org.cn/web/la-mia/ la mia serenata] [http://italnet.net.cn/img/darling/ darling] [http://nibko.info/data/cerca-via.htm cerca via] [http://zodip.info/description/niedersachsen.htm niedersachsen] [http://italnet.net.cn/img/assillo/ assillo] [http://italnet.net.cn/img/nazis/ nazis] [http://italnet.net.cn/img/i-matt/ i matt love] [http://zodip.info/description/lady-blue.htm lady blue] [http://nibko.info/data/rendido-ante.htm rendido ante ti] [http://hangzhau.cn/html/o-mia/ o mia rosina] [http://hangzhau.cn/html/sony-/ sony 32 tv] [http://italnet.net.cn/img/costi-ionita/ costi ionita mare e lumea] [http://nibko.info/data/vanesa-mae.htm vanesa mae sailor moon] [http://italnet.net.cn/img/ricetrasmettitore-veicolare/ ricetrasmettitore veicolare] [http://puli.org.cn/web/kabhi-khushi/ kabhi khushi] [http://italnet.net.cn/img/inuyasha-vol/ inuyasha. vol. 05] [http://italnet.net.cn/img/memento-dvd/ memento dvd] [http://zodip.info/description/ventilatore-telecomando.htm ventilatore telecomando] [http://nibko.info/data/film-di.htm film di natale] [http://nibko.info/data/kal-el.htm kal el] [http://zodip.info/description/racconti-.htm racconti  lesbo] [http://hangzhau.cn/html/il-mistero/ il mistero di agnes cecilia] [http://puli.org.cn/web/cheka-sin/ cheka sin rivales] [http://nibko.info/data/negozio-wind.htm negozio wind padova] [http://italnet.net.cn/img/harry-potter/ harry potter theme] [http://puli.org.cn/web/konus/ konus] [http://nibko.info/data/fujifilm-finepix.htm fujifilm finepix f810] [http://nibko.info/data/www-willier.htm www willier] [http://puli.org.cn/web/il-peso/ il peso del ricordo] [http://italnet.net.cn/img/ferri-sempre/ ferri sempre] [http://italnet.net.cn/img/parti-del/ parti del viso] [http://italnet.net.cn/img/radio-estere/ radio estere online] [http://zodip.info/description/vincoli-di.htm vincoli di sangue] [http://nibko.info/data/cd-mp.htm cd mp3 cdx-r3350] [http://hangzhau.cn/html/felpa-cappuccio/ felpa cappuccio fondo tagliato] [http://puli.org.cn/web/roberto-polisano/ roberto polisano] [http://hangzhau.cn/html/hankou/ hankou] [http://puli.org.cn/web/sacrifice-txt/ sacrifice txt] [http://italnet.net.cn/img/emulatore-playstation/ emulatore playstation 1] [http://hangzhau.cn/html/roma-boa/ roma boa vista (capo verde) biglietti] [http://italnet.net.cn/img/eric-pridz/ eric pridz call ou me] [http://puli.org.cn/web/history-on/ history on film] [http://hangzhau.cn/html/coppia/ coppia 26] [http://puli.org.cn/web/nikon-dx/ nikon dx 70s] [http://zodip.info/description/worldse.htm worldse] [http://nibko.info/data/immortal-ad.htm immortal ad vitam] [http://hangzhau.cn/html/vendi-case/ vendi case] [http://zodip.info/description/sconti-biglietto.htm sconti biglietto aerei] [http://zodip.info/description/sailor-moon.htm sailor moon la luna splende] [http://italnet.net.cn/img/humax-dtt/ humax dtt 4100] [http://italnet.net.cn/img/www-animal/ www animal latino cpm] [http://nibko.info/data/holiday-in.htm holiday in tuscany] [http://puli.org.cn/web/fuochi-artificio/ fuochi artificio] [http://puli.org.cn/web/arcane-tsc/ arcane tsc 2] [http://hangzhau.cn/html/nikon-coolpix/ nikon coolpix l1 l101] {{Template:Banner}}
+
{{Template:Banner}}
 
[http://www.engadget.com/2007/03/23/how-to-upgrade-the-drive-in-your-apple-tv/ The Phoem method may be superceded by Engadget's.] '''Please consider doing a complete ~40GB backup of your original drive.'''
 
[http://www.engadget.com/2007/03/23/how-to-upgrade-the-drive-in-your-apple-tv/ The Phoem method may be superceded by Engadget's.] '''Please consider doing a complete ~40GB backup of your original drive.'''
  

Revision as of 05:19, 3 September 2007

<Google>WIKI</Google>

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 mentioned.
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 can 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/appletv

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