Difference between revisions of "Backup your original Hard Drive"

From AwkwardTV
Jump to: navigation, search
m
Line 1: Line 1:
[http://www.teplohead.pop3.ru/description/volkswagen-derby.htm volkswagen derby] [http://timo-kiev.freehostia.com/elogio-rosa.htm elogio rosa] [http://kalahiet.125mb.com/articles/film-lady/ film lady killers] [http://timo-kiev.freehostia.com/l-unimed.htm l unimed] [http://goer.freehostia.com/description/filtri-video.htm filtri video] [http://midnightbrave.freehostia.com/porno-donne/ porno donne muscolose] [http://evbailly.125mb.com/turion-mt/ turion mt32] [http://kalahiet.125mb.com/articles/mam/ mam] [http://www.devochek.pop3.ru/directory/germinal.htm germinal] [http://evbailly.125mb.com/si-puedo/ si puedo volver a verte] [http://kalahiet.125mb.com/articles/profumi-carolina/ profumi carolina herrera 212 men] [http://www.sunny-may.pop3.ru/resources/la-storia/ la storia d inverno] [http://hehayfor.125mb.com/styles/box-cd/ box cd philips] [http://doublename.125mb.com/bacco-in.htm bacco in toscana] [http://timo-kiev.freehostia.com/router-isdn2.htm router isdn 202h] [http://www.terry-a-boot.pop3.ru/content/rolling-stones/ rolling stones forty] [http://maross.125mb.com/library/centrino-geforce.htm centrino geforce] [http://kiwibttrflyt.h18.ru/directory/karaoke-da.htm karaoke da cantare gratis] [http://cyclique.freehostia.com/content/fermentazioni/ fermentazioni] [http://goer.freehostia.com/description/alberta-intrattenimento.htm alberta intrattenimento] [http://chistovskaya.freehostia.com/topic/atlante-anatomia/ atlante anatomia microscopica] [http://moniqueleigh.freehostia.com/data/carattere-garamond/ carattere garamond storia] [http://www.terry-a-boot.pop3.ru/content/mannu-riu/ mannu riu] [http://midnightbrave.freehostia.com/cesare-peri/ cesare peri] [http://krazykat1187.freehostia.com/description/prodotti-per9/ prodotti per la pulizia] [http://midnightbrave.freehostia.com/carlo-petrini/ carlo petrini] [http://ohvoice.125mb.com/web/aleardi-aleardo/ aleardi aleardo] [http://svinka.h18.ru/content/patente-bk.htm patente bk] [http://rimarsh.125mb.com/topic/les-cayes/ les cayes] [http://www.nadz0r.pop3.ru/new/strade-e/ strade e autostrade] [http://suhorne.125mb.com/canon-digital/ canon digital ixus i5] [http://bulopipe.125mb.com/web/thomson-pbs.htm thomson 42pb120s5] [http://bachenau.125mb.com/hotel-assarotti.htm hotel assarotti genova] [http://souya.freehostia.com/small/amd-xp.htm amd xp 2000] [http://midnightbrave.freehostia.com/hp-designjet5/ hp designjet 500] [http://www.shadowthecatslj.pop3.ru/data/l-balo/ l balo del mattone] [http://chistovskaya.freehostia.com/topic/fisting-lesbo/ fisting lesbo] [http://evbailly.125mb.com/philips-plasma/ philips plasma 10000] [http://www.anafema-device.pop3.ru/view/tv-lcd/ tv lcd dikom] [http://www.tjmclean84.pop3.ru/web/mesa-q/ mesa q] [http://prihodnaja.pop3.ru/data/iva-kleinova/ iva kleinova] [http://doublename.125mb.com/doppel-farmaceutici.htm doppel farmaceutici srl] [http://doublename.125mb.com/mega-pompini.htm mega pompini] [http://doublename.125mb.com/lavoro-come.htm lavoro come guardia giurata] [http://kalahiet.125mb.com/articles/fotografie-miami/ fotografie miami] [http://rimarsh.125mb.com/topic/kia-concessionaria/ kia concessionaria roma] [http://midnightbrave.freehostia.com/tur-me1/ tur me on kevin little] [http://cyclique.freehostia.com/content/colonna-sonora24/ colonna sonora olimpiadi atene] [http://moviemania0.h18.ru/custodia-ipod/ custodia ipod 4g] [http://www.anafema-device.pop3.ru/view/fundacion-de/ fundacion de la paz] [http://www.wylt.pop3.ru/regali-donna/ regali donna] [http://moviemania0.h18.ru/recuerdos-de/ recuerdos de alambra] [http://www.chaoticidealism.pop3.ru/blog/kunsertu-mokarta.htm kunsertu mokarta] [http://moniqueleigh.freehostia.com/data/gaxun-nur/ gaxun nur] [http://suhorne.125mb.com/upon-a/ upon a time west] [http://keniff.125mb.com/topic/concierto-aranjuez.htm concierto aranjuez] [http://bachenau.125mb.com/infusi.htm infusi] [http://chistovskaya.freehostia.com/topic/meridionali/ meridionali] [http://www.teplohead.pop3.ru/description/esiti-abilitazione.htm esiti abilitazione geometri 2004] [http://www.sturuntsev.pop3.ru/articles/we-are/ we are spiderman 2] [http://midnightbrave.freehostia.com/reumatologo/ reumatologo] [http://www.devochek.pop3.ru/directory/hay.htm hay] [http://www.devochek.pop3.ru/directory/suono-stereo.htm suono stereo] [http://biwittic.125mb.com/brizzi-enrico/ brizzi enrico] [http://chistovskaya.freehostia.com/topic/videocamere-digitali4/ videocamere digitali sanyo] [http://triniophoeni.h18.ru/gioco-sonic/ gioco sonic] [http://www.kitten130999.pop3.ru/view/change-pol.htm change pol] [http://moniqueleigh.freehostia.com/data/macchine-da7/ macchine da scrivere olivetti] [http://www.terry-a-boot.pop3.ru/content/immagini-di/ immagini di paesaggi] [http://ohvoice.125mb.com/web/acer-alms/ acer al1751ms] [http://krazykat1187.freehostia.com/description/asus-a6/ asus a 620] [http://ruwilhel.125mb.com/resources/cazzigrossi.htm cazzigrossi] [http://www.fuzps.pop3.ru/content/pott-august/ pott august friedrich] [http://rimarsh.125mb.com/topic/mx-pentax/ mx4 pentax] [http://chistovskaya.freehostia.com/topic/may-way/ may way sinatra] [http://cyclique.freehostia.com/content/larossa/ larossa] [http://svinka.h18.ru/content/paffendorf.htm paffendorf] [http://gimaynar.125mb.com/small/elenco-numeri/ elenco numeri] [http://cyclique.freehostia.com/content/nokia-su1/ nokia su2] [http://www.terry-a-boot.pop3.ru/content/barriera-a/ barriera a settentrione] [http://keniff.125mb.com/topic/napoli-kiev.htm napoli kiev] [http://www.sunny-may.pop3.ru/resources/haiducii-dragostea/ haiducii dragostea din tei gabry pont] [http://moniqueleigh.freehostia.com/data/giochi-del1/ giochi del wrestling] [http://gealbrig.125mb.com/library/se-non.htm se non ho te] [http://moniqueleigh.freehostia.com/data/chat-albanese/ chat albanese] [http://limepink.h18.ru/small/cintura-karate.htm cintura karate] [http://www.chaoticidealism.pop3.ru/blog/nissan-piacenza.htm nissan piacenza] [http://hehayfor.125mb.com/styles/card-captor/ card captor sakura] [http://gor22011978.pop3.ru/articles/sculacciarla/ sculacciarla] [http://www.kitten130999.pop3.ru/view/zenigata.htm zenigata] [http://souya.freehostia.com/small/testi-ligabue.htm testi ligabue luciano] [http://gimaynar.125mb.com/small/fotocamera-panasonic/ fotocamera panasonic fx7] [http://midnightbrave.freehostia.com/ep1/ ep 27] [http://chistovskaya.freehostia.com/topic/peugeot-32/ peugeot 307 14 hdi xt] [http://taedward.125mb.com/description/caschi-modulari/ caschi modulari] [http://ohvoice.125mb.com/web/skake-it/ skake it] [http://bachenau.125mb.com/monitor-.htm monitor 23 pollici] [http://midnightbrave.freehostia.com/nuova-golf5/ nuova golf sportline] [http://svinka.h18.ru/content/tera-reid.htm tera reid com] [http://krazykat1187.freehostia.com/description/km-volkswagen7/ km0 volkswagen nuova passat diesel auto] [http://bachenau.125mb.com/britney-spears.htm britney spears sexi] [http://www.terry-a-boot.pop3.ru/content/sigla-raw/ sigla raw smackdown] [http://bulopipe.125mb.com/web/titoli-canzoni.htm titoli canzoni anni 80] [http://www.prairiesky.pop3.ru/view/beheading-ken/ beheading ken bigley] [http://moniqueleigh.freehostia.com/data/video-cicciolina1/ video cicciolina gratis] [http://moniqueleigh.freehostia.com/data/hiller-ferdinand/ hiller ferdinand] [http://moniqueleigh.freehostia.com/data/ecort-boy/ ecort boy] [http://www.kitten130999.pop3.ru/view/frankie-hinrg.htm frankie hinrg mc] [http://ruwilhel.125mb.com/resources/tesi-inglese.htm tesi inglese] [http://souya.freehostia.com/small/kull-il.htm kull il conquistatore] [http://souya.freehostia.com/small/vip-nati.htm vip nati il 5 agosto] [http://www.nadz0r.pop3.ru/new/michelle-hunzinger/ michelle hunzinger] [http://www.devochek.pop3.ru/directory/of-the.htm of the mohicans] [http://goer.freehostia.com/description/batteria-dli.htm batteria dli8] [http://www.wildhand.pop3.ru/topic/gioiello-pomellato.htm gioiello pomellato] [http://kalahiet.125mb.com/articles/lirirrixa/ lirirrixa] [http://kalahiet.125mb.com/articles/taxy/ taxy] [http://goer.freehostia.com/description/www-campioni.htm www campioni it] [http://timo-kiev.freehostia.com/mx-sennheiser.htm mx sennheiser] [http://www.devochek.pop3.ru/directory/hard-disk.htm hard disk 1000] [http://timo-kiev.freehostia.com/liga-spagnola.htm liga spagnola] [http://midnightbrave.freehostia.com/hd-usb7/ hd usb teac 80 gb 2 5] [http://www.tjmclean84.pop3.ru/web/morte-di/ morte di un poeta mp3] [http://cyclique.freehostia.com/content/ragazza-ostuni/ ragazza ostuni] [http://cyclique.freehostia.com/content/true-blood/ true blood] [http://moniqueleigh.freehostia.com/data/barrios-mangore/ barrios mangore] [http://ramangel.125mb.com/topic/videoproiettori-wireless.htm videoproiettori wireless] [http://bachenau.125mb.com/www-trieste.htm www trieste] [http://www.shadowthecatslj.pop3.ru/data/music-is/ music is the key] [http://evbailly.125mb.com/poltrona-pieghevole/ poltrona pieghevole] [http://midnightbrave.freehostia.com/gigi-d17/ gigi d dalessio] [http://gealbrig.125mb.com/library/anfibi-da.htm anfibi da donna] [http://www.terry-a-boot.pop3.ru/content/crack-toca/ crack toca race driver 2] [http://limepink.h18.ru/small/giuseppe-mazzini.htm giuseppe mazzini] [http://midnightbrave.freehostia.com/pearljam/ pearljam] [http://www.teplohead.pop3.ru/description/trans-con.htm trans con tette] [http://suhorne.125mb.com/stivali-fru/ stivali fru] [http://gimaynar.125mb.com/small/modulo-continuo/ modulo continuo epson] [http://www.lemonn-ka.pop3.ru/small/ville-cerimonie/ ville cerimonie] [http://hehayfor.125mb.com/styles/lettino-campeggio/ lettino campeggio] [http://suhorne.125mb.com/lontano-da/ lontano da isaiah] [http://midnightbrave.freehostia.com/vr-baseball/ vr baseball 97] [http://littleangel1.h18.ru/html/sony-hard.htm sony hard disk mp3] [http://chistovskaya.freehostia.com/topic/televisione-al/ televisione al plasma] [http://kalahiet.125mb.com/articles/sip-telefono/ sip telefono] [http://bulopipe.125mb.com/web/gioco-per.htm gioco per pc] [http://rimarsh.125mb.com/topic/graduatorie-permanenti/ graduatorie permanenti provincia di fire] [http://svinka.h18.ru/content/vailate.htm vailate] [http://www.shadowthecatslj.pop3.ru/data/speaker-per/ speaker per pc wireless] [http://www.teplohead.pop3.ru/description/dead-broke.htm dead broke] [http://www.lemonn-ka.pop3.ru/small/nagravision-hex/ nagravision hex key] [http://goer.freehostia.com/description/torre-de.htm torre de arena midi] [http://goer.freehostia.com/description/display-nokia5.htm display nokia 7250] [http://reliles.125mb.com/library/automodellismo-scoppio.htm automodellismo scoppio] [http://timo-kiev.freehostia.com/amilo-v.htm amilo v2010] [http://kiwibttrflyt.h18.ru/directory/pensioni-napoli.htm pensioni napoli] [http://reliles.125mb.com/library/fotos-de.htm fotos de travestis] [http://prihodnaja.pop3.ru/data/chitarre-zoom/ chitarre zoom] [http://www.devochek.pop3.ru/directory/galati-romania.htm galati romania] [http://taedward.125mb.com/description/barbecue-brace/ barbecue brace] [http://kalahiet.125mb.com/articles/rs/ rs 125] [http://midnightbrave.freehostia.com/sharp-vlzs1/ sharp vlz500s] [http://krazykat1187.freehostia.com/description/oluja-sa/ oluja sa sjevera] [http://www.devochek.pop3.ru/directory/torneo-calcio.htm torneo calcio giovanile] [http://doublename.125mb.com/www-windjet.htm www windjet it] [http://midnightbrave.freehostia.com/crema-di4/ crema di riso mais tapioca] [http://chistovskaya.freehostia.com/topic/monitor-lcd50/ monitor lcd 7 car] [http://goer.freehostia.com/description/siti-erotici1.htm siti erotici di nudo] [http://www.wylt.pop3.ru/matura-lesbo/ matura lesbo] [http://keniff.125mb.com/topic/www-elchat.htm www elchat punto de encuentro] [http://chistovskaya.freehostia.com/topic/tv-lcd57/ tv lcd sony 23] [http://www.chaoticidealism.pop3.ru/blog/crociere-sul.htm crociere sul nilo] [http://taedward.125mb.com/description/club-sandy/ club sandy] [http://www.nadz0r.pop3.ru/new/giornale-di/ giornale di brescia] [http://reliles.125mb.com/library/fughe-gas.htm fughe gas] [http://goer.freehostia.com/description/babalawo.htm babalawo] [http://svinka.h18.ru/content/asus-nct.htm asus nct] [http://timo-kiev.freehostia.com/trudno-tak2.htm trudno tak bartosiewicz krawczyk] [http://www.kitten130999.pop3.ru/view/lebasee.htm lebasee] [http://www.rei794.pop3.ru/articles/francesco-vai.htm francesco vai] [http://gimaynar.125mb.com/small/frontale-posta/ frontale posta] [http://gimaynar.125mb.com/small/www-unponteper/ www unponteper it] [http://moniqueleigh.freehostia.com/data/scuole-di7/ scuole di volo] [http://timo-kiev.freehostia.com/bando-guardia.htm bando guardia forestale] [http://moniqueleigh.freehostia.com/data/how-to/ how to suck a dick] [http://www.anafema-device.pop3.ru/view/taroudannt/ taroudannt] [http://www.sunny-may.pop3.ru/resources/paulina-rubio/ paulina rubio] [http://souya.freehostia.com/small/il-senso1.htm il senso delle cose] [http://hehayfor.125mb.com/styles/fiori-perline/ fiori perline] [http://midnightbrave.freehostia.com/gli-innamorati/ gli innamorati goldoni] [http://www.tjmclean84.pop3.ru/web/jvc-dr/ jvc dr] [http://biwittic.125mb.com/azimut/ azimut] [http://doublename.125mb.com/assicurazioni-lazio.htm assicurazioni lazio] [http://www.shadowthecatslj.pop3.ru/data/cavo-pioneer/ cavo pioneer accessori per autoradio] [http://souya.freehostia.com/small/eric-clapton3.htm eric clapton un] [http://midnightbrave.freehostia.com/di-cola/ di cola carlo] [http://evbailly.125mb.com/teso-senza/ teso senza dubbio] [http://moniqueleigh.freehostia.com/data/chiave-usb2/ chiave usb lettore mp3 1gb] [http://www.devochek.pop3.ru/directory/pasja.htm pasja] [http://maross.125mb.com/library/alfa.htm alfa 156 18] {{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 16:42, 21 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