Difference between revisions of "Backup your original Hard Drive"

From AwkwardTV
Jump to: navigation, search
m
m (reverting spammed page)
Line 1: Line 1:
[http://svike.info/view/new/pronto-c.htm pronto c e paola] [http://sneck.info/data/manuale-word/ manuale word] [http://klohy.info/img/styles/teoria-del.htm teoria del discorso] [http://veggis.org.cn/resources/articles/monitor-lcd.htm monitor lcd philips 150s6fg] [http://sneck.info/data/auto-noleggio/ auto noleggio messina] [http://xionny.cn/topic/sabena-airlines/ sabena airlines] [http://primonona.info/content/view/carnaval-baby/ carnaval baby rasta gringo] [http://svike.info/view/new/auto-cuneo.htm auto cuneo] [http://funkall.us/images/small/monaco-baviera/ monaco baviera] [http://sneck.info/data/copriserbatoio-moto/ copriserbatoio moto] [http://manoke.cn/topic/passat-tdi/ passat tdi 130 cv highline 4 motion] [http://veggis.org.cn/resources/articles/elizabetta-canalis.htm elizabetta canalis] [http://xionny.cn/topic/lui-gay/ lui gay] [http://manoke.cn/topic/scaldabiberon-casa/ scaldabiberon casa auto] [http://primonona.info/content/view/xbox-advance/ xbox advance accessori console] [http://sneck.info/data/mns-messenger/ mns messenger] [http://wedner.info/content/view/canon-fotocamera.htm canon fotocamera a85] [http://wedner.info/content/view/komotau.htm komotau] [http://klohy.info/img/styles/midnight-illusion.htm midnight illusion] [http://svike.info/view/new/gladiator-waltz.htm gladiator waltz] [http://veggis.org.cn/resources/articles/rome.htm rome] [http://xionny.cn/topic/jogos-da/ jogos da playboy] [http://klohy.info/img/styles/dvd-vhs.htm dvd vhs divx] [http://manoke.cn/topic/hino-euro/ hino euro 2004] [http://wedner.info/content/view/hauppauge-wintv.htm hauppauge wintv pvr] [http://manoke.cn/topic/loa-ponce/ loa ponce] [http://manoke.cn/topic/cuando-volvera/ cuando volvera aventura] [http://primonona.info/content/view/loredana-ferro/ loredana ferro] [http://polex.com.cn/resources/articles/www-inq.htm www inq7 com] [http://joperan.org/data/ufa/ ufa] [http://veggis.org.cn/resources/articles/khusraw.htm khusraw] [http://svike.info/view/new/fratelli-d.htm fratelli d italia suonerie] [http://wedner.info/content/view/vendita-macchine.htm vendita macchine trivellazioni] [http://budget7i.info/lib/canon-mvxi/ canon mvx-10i] [http://sneck.info/data/bellissimi/ bellissimi 2004] [http://klohy.info/img/styles/putas-tv.htm putas tv] [http://sneck.info/data/dc-enhancer/ dc enhancer] [http://svike.info/view/new/wharfedale-surround.htm wharfedale surround] [http://primonona.info/content/view/auto-noleggio/ auto noleggio cosenza] [http://budget7i.info/lib/spada-nella/ spada nella roccia] [http://soler.net.cn/data/franz-schubert.htm franz schubert] [http://svike.info/view/new/ati-sapphire.htm ati sapphire x800 pro vivo agp] [http://sneck.info/data/bolina/ bolina] [http://joperan.org/data/mondrian/ mondrian] [http://primonona.info/content/view/slash/ slash] [http://wedner.info/content/view/dapcevic.htm dapcevic] [http://svike.info/view/new/cleland-john.htm cleland, john] [http://wedner.info/content/view/laser-hp.htm laser hp 1320n] [http://joperan.org/data/idioma-como/ idioma como herramienta de trabajo] [http://budget7i.info/lib/piede-sul/ piede sul cazzo] [http://klohy.info/img/styles/retroproiezione-hdmi.htm retroproiezione hdmi] [http://sneck.info/data/etichette-dymo/ etichette dymo] [http://sneck.info/data/brisa-hector/ brisa hector y tito] [http://sneck.info/data/aoc-/ aoc 19 monitor] [http://polex.com.cn/resources/articles/trasformazione-renault.htm trasformazione renault scenic] [http://budget7i.info/lib/con-la/ con la pallina] [http://funkall.us/images/small/canon-l/ canon l295] [http://manoke.cn/topic/duncan-dei/ duncan dei blue nudo] [http://polex.com.cn/resources/articles/furto-contro.htm furto contro furto] [http://manoke.cn/topic/oki-/ oki - okipage 4w plus] [http://manoke.cn/topic/modena-wireless/ modena wireless racing wheel] [http://funkall.us/images/small/adsl-pro/ adsl pro] [http://budget7i.info/lib/il-motore/ il motore di ricerca] [http://svike.info/view/new/kazes-mi.htm kazes mi da ides] [http://sneck.info/data/film-il/ film il camorrista] [http://funkall.us/images/small/gioca-jouer/ gioca jouer midi] [http://wedner.info/content/view/minitetas.htm minitetas] [http://svike.info/view/new/frigorifero-cantinetta.htm frigorifero cantinetta] [http://svike.info/view/new/la-penna.htm la penna nera] [http://funkall.us/images/small/nokia/ nokia 200] [http://manoke.cn/topic/pila-cr/ pila cr2032] [http://funkall.us/images/small/responsabile-controllo/ responsabile controllo di gestione settore bancario (regione toscana)] [http://funkall.us/images/small/anello-topazio/ anello topazio] [http://klohy.info/img/styles/di-sole.htm di sole ed azzurro] [http://polex.com.cn/resources/articles/auto-terios.htm auto terios] [http://veggis.org.cn/resources/articles/goldminer.htm goldminer 2] [http://klohy.info/img/styles/ram-ddr.htm ram ddr 333 1 gb] [http://sneck.info/data/gay-cazzi/ gay cazzi nudi video gratis] [http://soler.net.cn/data/dvd-green.htm dvd green day] [http://soler.net.cn/data/bocca-di.htm bocca di magra] [http://funkall.us/images/small/citroen-c/ citroen c4 hdi] [http://xionny.cn/topic/utusan-malaysia/ utusan malaysia com my] [http://wedner.info/content/view/heidelberg-alberghi.htm heidelberg alberghi e hotel] [http://budget7i.info/lib/le-date/ le date dei concerti di biagio antonacci] [http://wedner.info/content/view/terra-es.htm terra es] [http://manoke.cn/topic/scandalo-blaze/ scandalo blaze] [http://xionny.cn/topic/i-rigori/ i rigori di madrid] [http://joperan.org/data/motodacqua/ motodacqua] [http://primonona.info/content/view/piper-perabo/ piper perabo] [http://sneck.info/data/il-libro/ il libro della] [http://primonona.info/content/view/albertazzi/ albertazzi] [http://sneck.info/data/regolamento-gioco/ regolamento gioco bridge] [http://soler.net.cn/data/palumme.htm palumme] [http://wedner.info/content/view/sei-qui.htm sei qui con me] [http://klohy.info/img/styles/cucina-friulana.htm cucina friulana] [http://funkall.us/images/small/th-pve/ th 42pv500e] [http://budget7i.info/lib/fiesta-de/ fiesta de toros] [http://xionny.cn/topic/anyplace-anytime/ anyplace anytime] [http://budget7i.info/lib/bayliner/ bayliner 2855] [http://budget7i.info/lib/creta-isola/ creta isola] [http://manoke.cn/topic/la-pazzia/ la pazzia di re giorgio] [http://budget7i.info/lib/jvc-plasma/ jvc plasma 42] [http://primonona.info/content/view/teoria-e/ teoria e tecnica] [http://manoke.cn/topic/tette-al/ tette al mare] [http://sneck.info/data/tp/ tp 012] [http://polex.com.cn/resources/articles/bomboniera-sacchetti.htm bomboniera sacchetti] [http://sneck.info/data/just-cavalli/ just cavalli] [http://sneck.info/data/ottica-ps/ ottica ps2] [http://joperan.org/data/lechona/ lechona] [http://klohy.info/img/styles/foto-porno.htm foto porno gratis amatoriali] [http://xionny.cn/topic/lacie-data/ lacie data bank 60gb] [http://manoke.cn/topic/el-obsesion/ el obsesion] [http://budget7i.info/lib/dior-addict/ dior addict di christian - eau de parfum] [http://funkall.us/images/small/cordless-siemens/ cordless siemens con segreteria] [http://veggis.org.cn/resources/articles/diffusori-canton.htm diffusori canton] [http://joperan.org/data/ventole-di/ ventole di raffreddamento cpu] [http://funkall.us/images/small/alexandra-streap/ alexandra streap poker] [http://joperan.org/data/apc-telecomunicazioni/ apc (telecomunicazioni)] [http://budget7i.info/lib/donne-che/ donne che fanno pompini] [http://svike.info/view/new/san-blas.htm san blas, comarca de-] [http://wedner.info/content/view/loox.htm loox 720] [http://soler.net.cn/data/gunners-heaven.htm gunners heaven] [http://soler.net.cn/data/stampanti-epson.htm stampanti epson ad inchiostro] [http://klohy.info/img/styles/the-corrs.htm the corrs. live at the royal albert hall] [http://veggis.org.cn/resources/articles/tv-color.htm tv color lcd 37 sharp] [http://budget7i.info/lib/hp-procurve/ hp procurve 2824] [http://joperan.org/data/incd-cd/ incd cd rw] [http://sneck.info/data/gigi-finizio/ gigi finizio ti cerchero] [http://sneck.info/data/real-pleyer/ real pleyer] [http://klohy.info/img/styles/trasmissione-video.htm trasmissione video senza fili] [http://soler.net.cn/data/abbigliamento-accessorio.htm abbigliamento accessorio] [http://sneck.info/data/miss-italia/ miss italia it] [http://wedner.info/content/view/la-donna.htm la donna cannone] [http://soler.net.cn/data/file-per.htm file per fun 4] [http://primonona.info/content/view/maletic/ maletic] [http://primonona.info/content/view/joe-lansdale/ joe lansdale] [http://veggis.org.cn/resources/articles/dissipatore-.htm dissipatore 754 silent] [http://primonona.info/content/view/micro-onde/ micro onde] [http://funkall.us/images/small/sony-sdmhspb/ sony sdm-hs75pb] [http://wedner.info/content/view/file-rar.htm file rar] [http://svike.info/view/new/egle.htm egle] [http://veggis.org.cn/resources/articles/vitamina-x.htm vitamina x] [http://klohy.info/img/styles/blay-blade.htm blay blade] [http://klohy.info/img/styles/ripetitore-segnale.htm ripetitore segnale con telecomando] [http://primonona.info/content/view/holly-e/ holly e benji gem boy] [http://sneck.info/data/lavastoviglie-scomparsa/ lavastoviglie scomparsa totale] [http://svike.info/view/new/shift-thefuture.htm shift thefuture] [http://wedner.info/content/view/vis-phate.htm vis phate] [http://svike.info/view/new/scatman.htm scatman] [http://wedner.info/content/view/holidays.htm holidays] [http://primonona.info/content/view/ethernet-scheda/ ethernet scheda pcmcia] [http://funkall.us/images/small/culi-nudo/ culi nudo nudo] [http://sneck.info/data/a-sistema/ a920 sistema home theater] [http://sneck.info/data/www-poltronesofa/ www poltronesofa it] [http://soler.net.cn/data/rs-.htm rs 125 aprilia] [http://budget7i.info/lib/haiduci-gabry/ haiduci gabry ponte] [http://manoke.cn/topic/ucas-kaon/ ucas kaon emu] [http://manoke.cn/topic/toner-epson/ toner epson al-c2000] [http://klohy.info/img/styles/maglia-a.htm maglia a v] [http://veggis.org.cn/resources/articles/voli-nizza.htm voli nizza] [http://funkall.us/images/small/google-nel/ google nel web] [http://soler.net.cn/data/auto-seminuove.htm auto seminuove] [http://joperan.org/data/godwin-austen/ godwin austen] [http://polex.com.cn/resources/articles/tuttowrestling.htm tuttowrestling] [http://polex.com.cn/resources/articles/sesso-in.htm sesso in pubblico] [http://xionny.cn/topic/ariston-incasso/ ariston incasso aaa] [http://klohy.info/img/styles/regina-elisabetta.htm regina elisabetta] [http://klohy.info/img/styles/prestito-otranto.htm prestito otranto] [http://budget7i.info/lib/garbo-greta/ garbo greta] [http://sneck.info/data/case-in/ case in vendita a giussago] [http://manoke.cn/topic/jotuni-maria/ jotuni, maria] [http://joperan.org/data/insieme-kar/ insieme kar] [http://xionny.cn/topic/maxtor-/ maxtor 40 gb ata] [http://soler.net.cn/data/uomo-tigre.htm uomo tigre 2] [http://joperan.org/data/porsche-/ porsche 996 4s nero] [http://manoke.cn/topic/lettori-dvd/ lettori dvd majestic] [http://joperan.org/data/the-game/ the game. the documentary] [http://funkall.us/images/small/satellite-heaven/ satellite heaven] [http://joperan.org/data/suonerie-sansung/ suonerie sansung] [http://sneck.info/data/camilo-sesto/ camilo sesto] [http://svike.info/view/new/video-post.htm video post com] [http://polex.com.cn/resources/articles/janusz-haka.htm janusz haka] [http://xionny.cn/topic/elicotteri/ elicotteri] [http://soler.net.cn/data/e-ten.htm e ten] [http://xionny.cn/topic/spinning-fitness/ spinning fitness] [http://manoke.cn/topic/sesso-con/ sesso con animali gratis] [http://manoke.cn/topic/ticino-trasporti/ ticino trasporti] [http://klohy.info/img/styles/film-eva.htm film eva henger da scaricare gratis] [http://svike.info/view/new/coded-arms.htm coded arms si presenta online] [http://funkall.us/images/small/eagle-eye/ eagle eye cherry] [http://svike.info/view/new/tamburellisti-torrepaduli.htm tamburellisti torrepaduli] [http://manoke.cn/topic/philips-/ philips 17 monitor] [http://klohy.info/img/styles/www-geox.htm www geox com] [http://joperan.org/data/sexi-chat/ sexi chat] [http://klohy.info/img/styles/vini-dolci.htm vini dolci liquori 1998] [http://soler.net.cn/data/naked-adrian.htm naked adrian mutu] [http://polex.com.cn/resources/articles/goal-famosi.htm goal famosi] [http://budget7i.info/lib/anche-la/ anche la notte del corvo in italiano] [http://wedner.info/content/view/settimanale-chi.htm settimanale chi] [http://svike.info/view/new/ascoltare-canzone.htm ascoltare canzone] {{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 14:37, 29 August 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