Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#250531 - 28/02/2005 00:03 Drive Cloning in Mac OS X
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I figure I'd post this here for future reference for me, and also to help others out.

Recently my Powerbook hard drive showed hints of having problems. DMA Failure was showing up in logs, a drive scan showed errors, and some programs became corrupted somehow. So, I bought a new 100gb 5400 drive that I intend to install internally (and put the old 80gb 4200 in an enclosure once replaced), and wanted to clone the system. How did I do it?

-Well, first, I got my firewire enclosure and put the 100gb drive into it.

-Next I grabbed BootCD to make a bootable OS X CD so I had easy terminal and disk utility access. To turn it into a more useful CD, I put in Rember for memory testing (It's a GUI for memtest ported from memtest86.

-Once I booted from the CD, I ran Disk Utility to create a single large partition on the 100gb disk.

-I then opened terminal, and ran mount to see the /dev devices for the new partiton, and my old disk partition.

-Now, the command that makes cloning easy. asr. It can grab images off any source and use that to restore, or clone two devices. I wanted to clone, so I ran "asr -source /dev/disk0s9 -target /dev/disk3s3 -erase -verbose". What that did was erase the new partiton, did a block by block copy of the disk, but also still kept the partition size the way I set it up, granting me 20 more gigs.

Once it completed, I formatted the bad drive, rebooted off the firewire drive, and found everything as it was. Running disk utility to scan the disk showed the same errors, proving the block for block copy worked as expected. To correct the issues I was seeing from corrupt files, I then booted to my OS X cd, and did an archive and install. For those wondering, think of it as a reinstall on top, but done right. The old OS files are moved to another folder, the new OS is layed down, then the old user accounts and applications are brought in and preserved. I now have a fully functional system again, with no loss of any major data, and everything is in place to move the 100gb drive internal.

Top
#250532 - 28/02/2005 01:32 Re: Drive Cloning in Mac OS X [Re: drakino]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
Cool. Thanks for the tips.
_________________________
|| loren ||

Top
#250533 - 28/02/2005 04:51 Re: Drive Cloning in Mac OS X [Re: drakino]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Quote:


-Next I grabbed BootCD to make a bootable OS X CD so I had easy terminal and disk utility access. To turn it into a more useful CD, I put in Rember for memory testing (It's a GUI for memtest ported from memtest86.

-Once I booted from the CD, I ran Disk Utility to create a single large partition on the 100gb disk.

-I then opened terminal, and ran mount to see the /dev devices for the new partiton, and my old disk partition.

-Now, the command that makes cloning easy. asr.



I prefer Carbon Copy Cloner from www.bombich.com. Otherwise, I agree.

I actually just finished setting up NetRestore so I can reimage machines over the network. The Bombich tools are pretty nice.

Top
#250534 - 28/02/2005 13:00 Re: Drive Cloning in Mac OS X [Re: Daria]
phi144
enthusiast

Registered: 15/02/2002
Posts: 314
Loc: New Hampshire, USA
I use SuperDuper! which work pretty well.
_________________________
Doug

Top
#250535 - 28/02/2005 14:36 Re: Drive Cloning in Mac OS X [Re: phi144]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
I was going to recommend Netrestore (which we use here for installation partitions) and just realized it's from the same guy as Carbon Copy Cloner.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top