Re: [SLUG] Drive Clone

From: Eben King (eben01@verizon.net)
Date: Mon Aug 28 2006 - 16:47:53 EDT


On Mon, 28 Aug 2006, John Brown wrote:

> On Mon, 2006-08-28 at 15:30, Eben King wrote:
>> On Mon, 28 Aug 2006, Levi Bard wrote:
>>
>>>> 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?
>>>
>>> dd if=/dev/olddrive of=/dev/newdrive ?
>>> Then gparted to expand partition size on newdrive if necessary.
>>
>> I guess that depends on whether you prefer to have them all proportionally
>> expanded, or have them all remain the same size and have some extra
>> partitions.
>
> I think that's what I have. I have never used gparted.

I was referring to which method you use, and what kind of transformation you
get.

>> Of course, if you go for "one partition covers the whole disk"
>> you probably would go for proportional expansion. Obviously that's easier,
>> which is what you asked.
>
> This is what I have is a 1.8 Gig disk.
>
> /dev/hda2 1881684 1721340 64760 97% /
> /dev/hda1 101086 8492 87375 9% /boot
> none 225388 0 225388 0% /dev/shm
>
> Of course I need /dev/hda2 to be most of the disk.
> (shoulda thought to post this before)

But /dev/hda1 to remain about the same size, yes? What I'd do is partition
the new disk with about the same partitions as the old disk, dd the old
partitions into their new homes, then use gparted to expand /dev/hda2's new
home to fill the disk. If you can dd the whole disk and have it work, all
the better, because then you can skip the partitioning step. Anybody done
this?

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      royalty.no-ip.org:81
When we've nuked the world to a cinder, the cockroaches picking
over the remains will be crawling over the remaining artifacts
and wondering what "PC LOAD LETTER" means. -- PC / ASR
-----------------------------------------------------------------------
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:16:08 EDT