Re: [SLUG] Drive Clone

From: John Brown (photo.man@knology.net)
Date: Mon Aug 28 2006 - 15:29:11 EDT


On Mon, 2006-08-28 at 14:49, Eben King wrote:
> On Mon, 28 Aug 2006, John Brown wrote:
>
> > Simple problem.
> > Got a 1.8 Gig drive with CentOS and Asterisk installed.
> > (accidentally grabbed the wrong drive)
> >
> > It needs to be on larger drive.
> > What's the SIMPLEST way to do that?
>
> _Simplest_ would be:
>
> 1. Create partitions on the big drive (call it /dev/hdB) equal in size or
> slightly larger than the ones on existing drive (call it /dev/hdA).
> 2. Add more partitions to fill up the drive.
> 3. Do for each partition /dev/hdAN:
> dd if=/dev/hdAN of=/dev/hdBN bs=128k
> 4. Do for each additional partition /dev/hdBM:
> mkfs -t whatever /dev/hdBM
> 5. Reinstall the bootloader on /dev/hdB
> 6. Rewire/rejumper, or arrange to have the BIOS boot from /dev/hdB.
>
> Done!
>
> Be sure _not_ to copy over /dev/hdA4 (if that's the big one that holds
> extended partitions). Also, if you have four primaries on /dev/hdA, the
> last one will have to become a partition-within-a-partition (I think
> "extended" is the word), if you want to use the additional space on
> /dev/hdB.

I guess it the partitioning thing that's a bother. If I were to do this
as Levi suggested, would the partitions come over too or is that a
separate operation?

        dd if=/dev/olddrive of=/dev/newdrive
        Then gparted to expand partition size on newdrive if necessary.
        
(pardon me, its just not something I done before)
-- JB

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:15:52 EDT