Re: [SLUG] Drive Clone

From: Eben King (eben01@verizon.net)
Date: Mon Aug 28 2006 - 14:49:13 EDT


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.

-- 
-eben     QebWenE01R@vTerYizUonI.nOetP     royalty.no-ip.org:81

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Albert Einstein ----------------------------------------------------------------------- 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:48 EDT