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://commodore-guff.freehostia.com/styles/lacie-gb19.htm lacie 80gb usb] [http://stbillin.angelfire.com/web/definizione-di1.htm definizione di sistema] [http://midwestman.50webs.com/view/candlemass-documents/ candlemass documents of doom] [http://offleeewild1.50webs.com/library/memories-fade/ memories fade] [http://runnyn.freehostia.com/library/www-disney17/ www disney latono com] [http://heartlessfriend.freehostia.com/library/kiss-dvd11/ kiss dvd 508] [http://commodore-guff.freehostia.com/styles/wrestlinh.htm wrestlinh] [http://vlano.50webs.com/styles/brasileira/ brasileira] [http://raguerla.angelfire.com/articles/il-ladro/ il ladro dei bambini] [http://eaes7.freehostia.com/lib/ragazzo-lissone.htm ragazzo lissone] [http://midwestman.50webs.com/view/frontline-gatto/ frontline gatto] [http://ag666.50webs.com/view/www-incinte/ www incinte com] [http://leshji.50webs.com/data/g-cellulari/ g7050 cellulari lg] [http://superhank.freehostia.com/content/gamesurround-fortissimo/ gamesurround fortissimo] [http://keokepa.50webs.com/library/turtle-blues/ turtle blues] [http://alfrizie.angelfire.com/content/digitale-.htm digitale 5 megapixel] [http://commodore-guff.freehostia.com/styles/minera.htm minera] [http://heartlessfriend.freehostia.com/library/ef21/ ef 28200] [http://pticaja-ptica.freehostia.com/directory/indirizzi-accompagnatrici.htm indirizzi accompagnatrici] [http://heartlessfriend.freehostia.com/library/beauty/ beauty] [http://ag666.50webs.com/view/ninna-nanna/ ninna nanna l berte] [http://eaes7.freehostia.com/lib/myoplex-low.htm myoplex low carb] [http://runnyn.freehostia.com/library/www-y/ www y] [http://heartlessfriend.freehostia.com/library/philips-66/ philips  190s5fs] [http://midwestman.50webs.com/view/diamanti-quotazioni/ diamanti quotazioni] [http://raguerla.angelfire.com/articles/titoli-buoni/ titoli buoni o cattivi] [http://rathchavady.freehostia.com/description/www-intra/ www intra it] [http://runnyn.freehostia.com/library/cheryl-ladd/ cheryl ladd] [http://heartlessfriend.freehostia.com/library/maxtor-plus2/ maxtor plus 9 300 gb] [http://eaes7.freehostia.com/library/televisore-54.htm televisore 4 3 sony kv 32] [http://njoka.freehostia.com/small/sandy-pelada.htm sandy pelada] [http://heartlessfriend.freehostia.com/library/corason/ corason] [http://commodore-guff.freehostia.com/styles/garmin-ique8.htm garmin ique 3600 kit] [http://alfrizie.angelfire.com/content/lisa-e.htm lisa e michele] [http://superhank.freehostia.com/content/riforma-tfr/ riforma tfr] [http://queenbabypie.freehostia.com/html/paul-johnsons/ paul johnsons] [http://ag666.50webs.com/view/epson-/ epson 1290 photo cartucce] [http://vlano.50webs.com/styles/amd-athlon/ amd athlon 64 3800] [http://danikrv.50webs.com/small/hztc/ hztc 9] [http://heartlessfriend.freehostia.com/library/moreno-morena/ moreno morena] [http://pticaja-ptica.freehostia.com/directory/l-arte15.htm l arte neoclassica] [http://offleeewild1.50webs.com/library/hot-hits/ hot hits cd musicali] [http://offleeewild1.50webs.com/library/x-lexmark/ x2250 lexmark] [http://commodore-guff.freehostia.com/styles/asus-extreme31.htm asus extreme n6600 td] [http://blind9justice.50webs.com/eurorack-ub/ eurorack ub1202] [http://maheinze.angelfire.com/i-predatori.htm i predatori della pietra magica] [http://smfarrowik.angelfire.com/small/canon7/ canon 70 300] [http://runnyn.freehostia.com/library/mappa-geografica3/ mappa geografica] [http://danikrv.50webs.com/small/dmc-fz/ dmc fz10] [http://njoka.freehostia.com/small/calendari-amatoriali2.htm calendari amatoriali sexxy free gratis] [http://keokepa.50webs.com/library/moto-autodromo/ moto autodromo del mugello] [http://vlano.50webs.com/styles/telefonini-siemens/ telefonini siemens c60] [http://krasniioktyabr.50webs.com/paulita/ paulita] [http://krasniioktyabr.50webs.com/karmacoma/ karmacoma] [http://celare.freehostia.com/description/photocd/ photocd] [http://krasniioktyabr.50webs.com/www-citroen/ www citroen italia] [http://krasniioktyabr.50webs.com/lento-de/ lento de julieta venegas] [http://krasniioktyabr.50webs.com/le-serve/ le serve] [http://keokepa.50webs.com/library/preghiere-in/ preghiere in latino] [http://rathchavady.freehostia.com/description/olivo/ olivo] [http://maheinze.angelfire.com/cyber-dsc.htm cyber dsc t33] [http://celare.freehostia.com/description/www-seefeld/ www seefeld com] [http://leshji.50webs.com/data/dedica-it/ dedica it] [http://pticaja-ptica.freehostia.com/directory/napoli-palermo1.htm napoli palermo] [http://anubis8.50webs.com/library/magazzini-ingrosso/ magazzini ingrosso abbigliamento bologna] [http://someoddgalaxy.freehostia.com/articles/torcia-subacquea1/ torcia subacquea fa mi] [http://blind9justice.50webs.com/gunther-weeny/ gunther weeny] [http://raguerla.angelfire.com/articles/rivalutazione-terreni/ rivalutazione terreni] [http://ag666.50webs.com/view/wonderful-rkelly/ wonderful rkelly ashanti] [http://vlano.50webs.com/styles/himno-spain/ himno spain] [http://vlano.50webs.com/styles/clone-cd/ clone cd masterizzatore sony] [http://pticaja-ptica.freehostia.com/directory/toshiba-style.htm toshiba style bay] [http://raguerla.angelfire.com/articles/garrigue-jean/ garrigue jean] [http://vlano.50webs.com/styles/dalaras/ dalaras] [http://offleeewild1.50webs.com/library/lettore-dvd/ lettore dvd divx irradio] [http://anubis8.50webs.com/library/motoslitte/ motoslitte] [http://celare.freehostia.com/description/canon-117/ canon 180 macro] [http://leshji.50webs.com/data/civitavecchia-cagliari/ civitavecchia cagliari] [http://ag666.50webs.com/view/seven-heven/ seven heven] [http://anubis8.50webs.com/library/mario-super/ mario super] [http://pticaja-ptica.freehostia.com/directory/testina-canon12.htm testina canon bjc] [http://midwestman.50webs.com/view/hotel-nazionale/ hotel nazionale sanremo] [http://celare.freehostia.com/description/associazione-nazionale/ associazione nazionale residenti estero] [http://offleeewild1.50webs.com/library/stuck-in/ stuck in a moment acoustic] [http://maheinze.angelfire.com/strumenti-ginecologici.htm strumenti ginecologici] [http://krasniioktyabr.50webs.com/il-dolce/ il dolce corpo di deborah] [http://nejoaus.angelfire.com/anello-oro1.htm anello oro bianco] [http://vlano.50webs.com/styles/lunytunes/ lunytunes] [http://superhank.freehostia.com/content/amplificatore-antenna/ amplificatore antenna lunotto] [http://superhank.freehostia.com/content/toner-canon44/ toner canon 220] [http://danikrv.50webs.com/small/video-sexy/ video sexy cantante] [http://pticaja-ptica.freehostia.com/directory/decreto-legislativo20.htm decreto legislativo 65 99] [http://anubis8.50webs.com/library/train-simulator/ train simulator] [http://rathchavady.freehostia.com/description/love-deluxe/ love deluxe] [http://blind9justice.50webs.com/dvd-portatile/ dvd portatile 8] [http://leshji.50webs.com/data/mf-jet/ mf jet 440] [http://heartlessfriend.freehostia.com/library/ati-radeon301/ ati radeon x600 pro] [http://superhank.freehostia.com/content/natalia-mesa/ natalia mesa bush] [http://leshji.50webs.com/data/assistenza-rasoi/ assistenza rasoi elettrici firenze] [http://runnyn.freehostia.com/library/gomera/ gomera] [http://blind9justice.50webs.com/lofra/ lofra 66] [http://midwestman.50webs.com/view/c-energy/ c2 energy vtr] [http://celare.freehostia.com/description/hard-disk759/ hard disk 2 5 box] [http://vlano.50webs.com/styles/play-midi/ play midi] [http://eaes7.freehostia.com/lib/la-foresta8.htm la foresta che vive] [http://eaes7.freehostia.com/lib/semeraro-mobili.htm semeraro mobili] [http://eaes7.freehostia.com/library/download-windows.htm download windows xp driver hp 640c] [http://danikrv.50webs.com/small/mariah-carey/ mariah carey scandalo tv show nuda] [http://krasniioktyabr.50webs.com/poesie-su/ poesie su dio] [http://offleeewild1.50webs.com/library/plugin-for/ plugin for mac] [http://njoka.freehostia.com/small/eat-me.htm eat me] [http://keokepa.50webs.com/library/crashdown/ crashdown] [http://anubis8.50webs.com/library/epson-epll/ epson epl6200l] [http://queenbabypie.freehostia.com/html/traditional-iran/ traditional iran music] [http://superhank.freehostia.com/content/moda-anni/ moda anni 60] [http://alfrizie.angelfire.com/content/foto-naturiste.htm foto naturiste] [http://queenbabypie.freehostia.com/html/jvc12/ jvc 23] [http://someoddgalaxy.freehostia.com/articles/elisa-bridges/ elisa bridges] [http://krasniioktyabr.50webs.com/peris-hilton/ peris hilton] [http://leshji.50webs.com/data/benedetto-marcello/ benedetto marcello adagio per pianoforte] [http://krasniioktyabr.50webs.com/braun/ braun 370] [http://maheinze.angelfire.com/treni-regionali.htm treni regionali] [http://rathchavady.freehostia.com/description/definizione-del1/ definizione del settore secondario] [http://keokepa.50webs.com/library/classe/ classe 1984] [http://midwestman.50webs.com/view/young-boys/ young boys] [http://someoddgalaxy.freehostia.com/articles/flex-motorola/ flex motorola] [http://heartlessfriend.freehostia.com/library/io-e25/ io e il re] [http://celare.freehostia.com/description/tom-tom126/ tom tom pocket pc] [http://nejoaus.angelfire.com/buitres.htm buitres] [http://njoka.freehostia.com/small/mariani-clima.htm mariani clima] [http://celare.freehostia.com/description/verga-novelle/ verga novelle] [http://offleeewild1.50webs.com/library/gloria-trevi/ gloria trevi] [http://runnyn.freehostia.com/library/beatiful-video/ beatiful video pharrell] [http://heartlessfriend.freehostia.com/library/video-sapphire/ video sapphire ati allinwonder 9800] [http://leshji.50webs.com/data/immagini-di/ immagini di fiche] [http://blind9justice.50webs.com/milionario-scaricare/ milionario scaricare] [http://heartlessfriend.freehostia.com/library/kaily/ kaily] [http://midwestman.50webs.com/view/midi-file/ midi file de norah jones] [http://offleeewild1.50webs.com/library/oasis-little/ oasis little by little acoustic] [http://midwestman.50webs.com/view/serena-gf/ serena gf] [http://njoka.freehostia.com/small/seno-grossi.htm seno grossi] [http://anubis8.50webs.com/library/temptation/ temptation] [http://offleeewild1.50webs.com/library/samsung-clp/ samsung clp 510] [http://offleeewild1.50webs.com/library/sponde-per/ sponde per letto] [http://ag666.50webs.com/view/kermit/ kermit] [http://ag666.50webs.com/view/getz-auto/ getz auto nuove] [http://runnyn.freehostia.com/library/vini-irlandesi/ vini irlandesi] [http://offleeewild1.50webs.com/library/jvc-rcex/ jvc rcex25] [http://queenbabypie.freehostia.com/html/videos-gratis14/ videos gratis de porno] [http://midwestman.50webs.com/view/v/ v 3] [http://danikrv.50webs.com/small/sony-str/ sony str de] [http://pticaja-ptica.freehostia.com/directory/distrito-nacional.htm distrito nacional] [http://eaes7.freehostia.com/lib/designers-e.htm designers e stilisti] [http://njoka.freehostia.com/small/lavatrice-rex11.htm lavatrice rex ri] [http://ag666.50webs.com/view/laccato/ laccato] [http://eaes7.freehostia.com/library/fotocamere-canon5.htm fotocamere canon ixus 500] [http://anubis8.50webs.com/library/rinconete-e/ rinconete e cortadillo] [http://midwestman.50webs.com/view/flirt-game/ flirt game] [http://eaes7.freehostia.com/lib/d-p24.htm d p r 28 dicembre 2000 n 445] [http://leshji.50webs.com/data/hard-disk/ hard disk 250 esterno] [http://vlano.50webs.com/styles/la-maschera/ la maschera del vendicatore] [http://danikrv.50webs.com/small/rover-/ rover 75 connoisseur] [http://danikrv.50webs.com/small/www-radio/ www radio dej it] [http://danikrv.50webs.com/small/www-maggiore/ www maggiore it] [http://heartlessfriend.freehostia.com/library/sony-dscp/ sony dscp200 s] [http://someoddgalaxy.freehostia.com/articles/download-giochi10/ download giochi bigliardo computer] [http://offleeewild1.50webs.com/library/roma-alberghi/ roma alberghi e hotel] [http://rathchavady.freehostia.com/description/boss-occhiali/ boss occhiali] [http://pticaja-ptica.freehostia.com/directory/saggio-breve39.htm saggio breve boccaccio dante petrarca confronto] [http://krasniioktyabr.50webs.com/processore-amd/ processore amd skt a] [http://eaes7.freehostia.com/library/dr-mario.htm dr mario] [http://commodore-guff.freehostia.com/styles/pioneer22.htm pioneer 436] [http://commodore-guff.freehostia.com/styles/spartito-buoni.htm spartito buoni o cattivi] [http://keokepa.50webs.com/library/my-x/ my x8] [http://blind9justice.50webs.com/un-americano/ un americano a oxford] [http://someoddgalaxy.freehostia.com/articles/dpr13/ dpr 633 72] [http://eaes7.freehostia.com/lib/infrarossi-esterno.htm infrarossi esterno] [http://danikrv.50webs.com/small/morellato-spa/ morellato spa] [http://vlano.50webs.com/styles/tom-go/ tom go 500] [http://superhank.freehostia.com/content/zucche-ro/ zucche ro] [http://runnyn.freehostia.com/library/dragostea-tin7/ dragostea tin dei] [http://commodore-guff.freehostia.com/styles/alimentatore-stabilizzato.htm alimentatore stabilizzato] [http://rathchavady.freehostia.com/description/mp-usb20/ mp3 usb sd] [http://queenbabypie.freehostia.com/html/trucco-prince/ trucco prince of persia pc] [http://anubis8.50webs.com/library/alice-cooper/ alice cooper prime cuts] [http://celare.freehostia.com/description/poze-cu/ poze cu bebelusa] [http://eaes7.freehostia.com/library/strategia-marketing.htm strategia marketing] [http://queenbabypie.freehostia.com/html/monopolio-gioco/ monopolio gioco] [http://queenbabypie.freehostia.com/html/inxs-live/ inxs live baby live wembley stadium] [http://anubis8.50webs.com/library/outkast-psychedelic/ outkast psychedelic funk soul brother] [http://someoddgalaxy.freehostia.com/articles/enel-distribuizione/ enel distribuizione spa] [http://blind9justice.50webs.com/digital-audio/ digital audio video recorder] [http://queenbabypie.freehostia.com/html/wonde-gps/ wonde gps] [http://danikrv.50webs.com/small/un-branco/ un branco di vigliacchi] [http://midwestman.50webs.com/view/verifica-domini/ verifica domini] [http://eaes7.freehostia.com/lib/testo-backstreet.htm testo backstreet boy] [http://ag666.50webs.com/view/il-pilota/ il pilota della morte] [http://heartlessfriend.freehostia.com/library/digitale-terrestre90/ digitale terrestre interno tv] [http://eaes7.freehostia.com/library/giochi-sexi5.htm giochi sexi per bambini] [http://alfrizie.angelfire.com/content/from-the.htm from the beginning] {{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.'''
  
Line 30: Line 30:
 
Execute: '''gpt remove -i 4 /dev/disk2'''<br>
 
Execute: '''gpt remove -i 4 /dev/disk2'''<br>
 
Unmount the drives.<br>
 
Unmount the drives.<br>
Execute: '''gpt add -s 309849759 -i 4 /dev/disk2''
+
Execute: '''gpt add -s 309849759 -i 4 /dev/disk2'''<br>
5A8
 
'<br>
 
 
NOTE: 309849759 represents the # of blocks iPartition mentioned.<br>
 
NOTE: 309849759 represents the # of blocks iPartition mentioned.<br>
 
Finally, open '''diskutility''' and format just the media partition. (erase)<br>
 
Finally, open '''diskutility''' and format just the media partition. (erase)<br>
Line 64: Line 62:
 
'''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.
 
'''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  
+
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!
5A8
 
wrapped in one large meta-partition!
 
  
 
<pre>
 
<pre>
Line 93: Line 89:
  
 
==Linux Method With Compression==
 
==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 howev
+
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.<br>
5A8
 
er.<br>
 
 
This allows for the creation of a smaller image by piping dd to gzip while imaging the drive.
 
This allows for the creation of a smaller image by piping dd to gzip while imaging the drive.
  

Revision as of 15:19, 22 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