Difference between revisions of "Backup your original Hard Drive"

From AwkwardTV
Jump to: navigation, search
m
m (Installed page from backup)
Line 1: Line 1:
[http://cute-krissie.freehostia.com/blog/hotel-clarion.htm hotel clarion] [http://mesteno.freehostia.com/sinto-amplificatori/ sinto amplificatori] [http://koopochka.freehostia.com/directory/la-musse/ la musse] [http://tapeshoes.freehostia.com/blog/foto-donne/ foto donne violentate] [http://koopochka.freehostia.com/directory/filmati-amatoriali/ filmati amatoriali hard] [http://mesteno.freehostia.com/guy-pearce/ guy pearce] [http://lordavon.freehostia.com/resources/gioco-di.htm gioco di disegnare] [http://bugge.freehostia.com/hp-nc/ hp nc6120 1 6 ghz] [http://cute-krissie.freehostia.com/blog/e-non.htm e non abbiam bisogno di parole] [http://pilarcruz.freehostia.com/data/en-el.htm en el] [http://bushidobrown.freehostia.com/directory/western-digital.htm western digital raptor 36 mb] [http://elita793.freehostia.com/web/telescopios/ telescopios] [http://elita793.freehostia.com/web/ricetta-per/ ricetta per fare il pane] [http://czalex.freehostia.com/articles/inizio-corsi/ inizio corsi universita della calabria] [http://bushidobrown.freehostia.com/directory/conserviera-industria.htm conserviera industria  macchine e attrezzature] [http://liilliil.freehostia.com/small/arcari-s.htm arcari s srl] [http://mesteno.freehostia.com/il-principe/ il principe torvald] [http://bushidobrown.freehostia.com/directory/fiesta-de.htm fiesta de toros] [http://koopochka.freehostia.com/directory/servo/ servo] [http://koopochka.freehostia.com/directory/mary-settimo/ mary settimo cielo telefilm] [http://koopochka.freehostia.com/directory/locale/ locale] [http://elita793.freehostia.com/web/isola-bali/ isola bali hotel] [http://lordavon.freehostia.com/resources/applique-delonghi.htm applique delonghi] [http://rosencrantz319.freehostia.com/data/liberta-di.htm liberta di volare nomadi] [http://chipper2007.freehostia.com/styles/banca-popolare.htm banca popolare di lodi  bologna] [http://czalex.freehostia.com/articles/buono-o/ buono o cattivo] [http://lombax.freehostia.com/description/negozi-gherardini.htm negozi gherardini] [http://shusik.freehostia.com/styles/www-ivan.htm www ivan graziani it] [http://cute-krissie.freehostia.com/blog/el-petroli.htm el petroli] [http://lombax.freehostia.com/description/piaf.htm piaf] [http://lombax.freehostia.com/description/latinchar.htm latinchar] [http://pilarcruz.freehostia.com/data/breathe-sean.htm breathe sean paul] [http://elita793.freehostia.com/web/www-shocwave/ www shocwave com] [http://tapeshoes.freehostia.com/blog/reye/ reye] [http://pilarcruz.freehostia.com/data/foto-di.htm foto di naturisti] [http://mesteno.freehostia.com/sic-and/ sic and tired anastasia] [http://muddernh.freehostia.com/small/winx-com/ winx com] [http://cute-krissie.freehostia.com/blog/volo-grugliasco.htm volo grugliasco] [http://lombax.freehostia.com/description/kingston-data.htm kingston data traveler elite] [http://lordavon.freehostia.com/resources/legend.htm legend 1900] [http://chipper2007.freehostia.com/styles/monica-bellucci.htm monica bellucci foto] [http://dano-mano.freehostia.com/html/ram-/ ram 256 333 ddr] [http://superchet.freehostia.com/nude-big/ nude big brother] [http://lombax.freehostia.com/description/lavastoviglie-a.htm lavastoviglie a scomparsa] [http://yuki-yusia.freehostia.com/con-cambio/ con cambio automatico] [http://cute-krissie.freehostia.com/blog/john-richmond.htm john richmond t shirt] [http://koopochka.freehostia.com/directory/chichaweb-com/ chichaweb com] [http://lombax.freehostia.com/description/caccia-e.htm caccia e pesca] [http://koopochka.freehostia.com/directory/hp-ipaq/ hp ipaq navigatore] [http://tapeshoes.freehostia.com/blog/formula-indi/ formula indi] [http://lordavon.freehostia.com/resources/welfare-state.htm welfare state] [http://rosencrantz319.freehostia.com/data/vite-rubate.htm vite rubate] [http://cute-krissie.freehostia.com/blog/sony-macchine.htm sony macchine fotografiche] [http://czalex.freehostia.com/articles/esami-di/ esami di stato 2204] [http://tapeshoes.freehostia.com/blog/code-barre/ code barre numerique] [http://shusik.freehostia.com/styles/netgear-wge.htm netgear wge111] [http://elita793.freehostia.com/web/molesta/ molesta] [http://yuki-yusia.freehostia.com/de-cesare/ de cesare] [http://tapeshoes.freehostia.com/blog/cazzi-da/ cazzi da vedere] [http://bigtyma.freehostia.com/description/nec-a/ nec 3540a] [http://mesteno.freehostia.com/kit-pulizia/ kit pulizia cd rom] [http://koopochka.freehostia.com/directory/nick-berger/ nick berger decapitation] [http://liilliil.freehostia.com/small/www-big.htm www big] [http://superchet.freehostia.com/sigla-cartone/ sigla cartone mp3] [http://cute-krissie.freehostia.com/blog/citroen-c.htm citroen c3 milano] [http://lordavon.freehostia.com/resources/navigatore-gps.htm navigatore gps e accessori] [http://cute-krissie.freehostia.com/blog/hard-disk.htm hard disk otg] [http://bushidobrown.freehostia.com/directory/sodomia.htm sodomia] [http://muddernh.freehostia.com/small/foscolo-parfrasi/ foscolo parfrasi sonetti] [http://liilliil.freehostia.com/small/annuncio-incontri.htm annuncio incontri privati] [http://cute-krissie.freehostia.com/blog/atoll-cremona.htm atoll cremona] [http://bigtyma.freehostia.com/description/il-plenilunio/ il plenilunio delle vergini] [http://yuki-yusia.freehostia.com/ts-pro/ ts4 pro] [http://liilliil.freehostia.com/small/the-magic.htm the magic of love] [http://lombax.freehostia.com/description/esempi-di.htm esempi di curriclum vitae] [http://cute-krissie.freehostia.com/blog/messico-citta.htm messico citta del] [http://cute-krissie.freehostia.com/blog/giurisprudenza-pisa.htm giurisprudenza pisa] [http://koopochka.freehostia.com/directory/fornitura-alberghiere/ fornitura alberghiere] [http://mesteno.freehostia.com/felicemente-instabile/ felicemente instabile] [http://lombax.freehostia.com/description/la-barchetta.htm la barchetta di carta] [http://mesteno.freehostia.com/pinnacle-studio/ pinnacle studio 9 se] [http://shusik.freehostia.com/styles/lg-gsab.htm lg gsa4165b] [http://muddernh.freehostia.com/small/fisting-coppie/ fisting coppie] [http://lombax.freehostia.com/description/i-don.htm i don t wana know feat p diddy] [http://koopochka.freehostia.com/directory/sterilizzazione-con/ sterilizzazione con gas plasma] [http://liilliil.freehostia.com/small/depace-mode.htm depace mode] [http://liilliil.freehostia.com/small/nani-moretti.htm nani moretti] [http://lordavon.freehostia.com/resources/tere-s.htm tere s not easy way out] [http://liilliil.freehostia.com/small/winter.htm winter] [http://shusik.freehostia.com/styles/cummed.htm cummed] [http://bugge.freehostia.com/fasciolopsis/ fasciolopsis] [http://dano-mano.freehostia.com/html/di-nicola/ di nicola vincenzo] [http://cute-krissie.freehostia.com/blog/tastie.htm tastie] [http://shusik.freehostia.com/styles/rafael-orozco.htm rafael orozco] [http://bigtyma.freehostia.com/description/eam-fuck/ eam fuck it] [http://chipper2007.freehostia.com/styles/nara-nara.htm nara nara na na] [http://cute-krissie.freehostia.com/blog/weekend-.htm weekend  un uomo e una donna da sabato a domenica] [http://dano-mano.freehostia.com/html/bate-papo/ bate papo uol] [http://bigtyma.freehostia.com/description/bent-movies/ bent movies] [http://yuki-yusia.freehostia.com/digiland-chat/ digiland chat] [http://tncc.edu/help/img/wohagman.htm codeine] [http://egcti.upr.edu/help/img/kesekur.htm cheap viagra] [http://egcti.upr.edu/help/img/cevolo.htm cheap metformin] [http://tncc.edu/help/img/frpostle.htm cheap cipro] [http://egcti.upr.edu/help/img/vedugu.htm cheap lotrel] [http://www.tukwila.wednet.edu/UserFiles/Users/xetiher.htm buy zyban] [http://tncc.edu/help/img/vicombs.htm effexor] [http://tncc.edu/help/img/jeheifne.htm buy fluoxetine] [http://www.tukwila.wednet.edu/UserFiles/Users/ticiwy.htm free cool ringtones] [http://tncc.edu/help/img/erberg.htm used bmw auto] [http://egcti.upr.edu/help/img/poxe.htm alprazolam] [http://egcti.upr.edu/help/img/newe.htm buy paxil] [http://egcti.upr.edu/help/img/kereve.htm cellular ringtones] [http://tncc.edu/help/img/coephrai.htm texas holdem poker] [http://tncc.edu/help/img/wemenges.htm buy didrex] [http://tncc.edu/help/img/rocullin.htm buy hydrocodone] [http://tncc.edu/help/img/biburrow.htm cheap lorazepam] [http://egcti.upr.edu/help/img/jonixob.htm order zoloft] [http://tncc.edu/help/img/crallman.htm free t-mobile ringtones] [http://tncc.edu/help/img/rustring.htm cheap tamiflu] [http://egcti.upr.edu/help/img/rytyty.htm free techno ringtones] [http://tncc.edu/help/img/boramona.htm country ringtones] [http://tncc.edu/help/img/rol.htm cheap ativan] [http://egcti.upr.edu/help/img/ryzoj.htm cingular ringtones] [http://tncc.edu/help/img/hepledge.htm pantech ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/wynune.htm albuterol online] [http://tncc.edu/help/img/nahill.htm free samsung ringtones] [http://tncc.edu/help/img/hularuss.htm cheap amitriptyline] [http://tncc.edu/help/img/pijasper.htm home mortgage loans] [http://tncc.edu/help/img/clhagedo.htm cheap actos] [http://www.tukwila.wednet.edu/UserFiles/Users/gilybo.htm phentermine] [http://tncc.edu/help/img/rowintrie.htm cheap pharmacy online] [http://tncc.edu/help/img/stnugent.htm continentalairlines] [http://egcti.upr.edu/help/img/nyluk.htm buy diovan] [http://www.tukwila.wednet.edu/UserFiles/Users/boze.htm buy didrex] [http://tncc.edu/help/img/nesilver.htm cheap rivotril] [http://tncc.edu/help/img/hepaulin.htm free mobile ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/fygeze.htm qwest ringtones] [http://tncc.edu/help/img/reosborn.htm cheap fioricet] [http://www.tukwila.wednet.edu/UserFiles/Users/tutupyh.htm buy xanax] [http://tncc.edu/help/img/cagagnon.htm cheap flonase] [http://egcti.upr.edu/help/img/cicu.htm phendimetrazine online] [http://www.tukwila.wednet.edu/UserFiles/Users/levuc.htm cheap tenuate] [http://egcti.upr.edu/help/img/jyxid.htm order celexa] [http://www.tukwila.wednet.edu/UserFiles/Users/didehek.htm sharp ringtones] [http://tncc.edu/help/img/brmclamo.htm clomid] [http://www.tukwila.wednet.edu/UserFiles/Users/vygine.htm mono ringtones] [http://tncc.edu/help/img/chkimbal.htm venlafaxine] [http://tncc.edu/help/img/wywoodfi.htm cheap wellbutrin] [http://www.tukwila.wednet.edu/UserFiles/Users/bysonyx.htm free ringtones] [http://egcti.upr.edu/help/img/todohy.htm free alcatel ringtones] [http://tncc.edu/help/img/shkinney.htm free cellphone ringtones] [http://tncc.edu/help/img/erorear.htm sony ringtones] [http://tncc.edu/help/img/scjarvis.htm health insurance indiana] [http://tncc.edu/help/img/beclare.htm free sagem ringtones] [http://egcti.upr.edu/help/img/tebut.htm wellbutrin online] [http://tncc.edu/help/img/newahl.htm cheap phentermine] [http://tncc.edu/help/img/muroy.htm free lg ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/tynopuv.htm viagra] [http://tncc.edu/help/img/rahasche.htm free philips ringtones] [http://tncc.edu/help/img/hamcgold.htm free cricket ringtones] [http://egcti.upr.edu/help/img/xuzo.htm cheap norco] [http://www.tukwila.wednet.edu/UserFiles/Users/cuxoxi.htm free sony ericsson ringtones] [http://tncc.edu/help/img/nihiaett.htm cheap levitra] [http://tncc.edu/help/img/robays.htm tv ringtones] [http://tncc.edu/help/img/aldarrin.htm cheap venlafaxine] [http://egcti.upr.edu/help/img/cunewos.htm wwe ringtones] [http://egcti.upr.edu/help/img/zidule.htm tracfone ringtones] [http://tncc.edu/help/img/tebranon.htm cheap xenical] [http://egcti.upr.edu/help/img/rywonyh.htm dianabol] [http://tncc.edu/help/img/rosouthm.htm xenical] [http://tncc.edu/help/img/siquigle.htm buy flexeril] [http://tncc.edu/help/img/creunice.htm animal ringtones] [http://tncc.edu/help/img/mogriffy.htm free polyphonic ringtones] [http://tncc.edu/help/img/warandy.htm dianabol] [http://egcti.upr.edu/help/img/necy.htm cheap lortab] [http://egcti.upr.edu/help/img/lyzujo.htm cheap ultram] [http://egcti.upr.edu/help/img/hopeky.htm meridia] [http://tncc.edu/help/img/vamanson.htm lortab] [http://egcti.upr.edu/help/img/vykej.htm free cellphone ringtones] [http://tncc.edu/help/img/bimathew.htm cheap adderall] [http://tncc.edu/help/img/jenewcom.htm buy propecia] [http://egcti.upr.edu/help/img/gefevu.htm order vigrx] [http://egcti.upr.edu/help/img/sewu.htm online vardenafil] [http://tncc.edu/help/img/dabeasle.htm cheap hoodia] [http://tncc.edu/help/img/enbetty.htm toques ringtones] [http://www.tukwila.wednet.edu/UserFiles/Users/nibyge.htm buy ativan] [http://tncc.edu/help/img/gomancha.htm cheap meridia] [http://tncc.edu/help/img/toatkins.htm free real ringtones] [http://tncc.edu/help/img/mokane.htm cheap ionamin] [http://tncc.edu/help/img/sokirgan.htm talking ringtones] [http://tncc.edu/help/img/obcarber.htm cheap prozac] [http://tncc.edu/help/img/haeldrid.htm jetblueairlines] [http://tncc.edu/help/img/fomonroe.htm bmw car] [http://tncc.edu/help/img/hashockl.htm free fly ringtones] [http://tncc.edu/help/img/duhales.htm fioricet online] [http://www.tukwila.wednet.edu/UserFiles/Users/sowubef.htm free wwe ringtones] [http://tncc.edu/help/img/scmccoll.htm adderall] [http://www.tukwila.wednet.edu/UserFiles/Users/jesig.htm levitra online] [http://tncc.edu/help/img/loboswel.htm funny ringtones] {{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 21:56, 9 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