[olug] Imaging a 20GB to a larger hard drive

Jay Swackhamer Jay at RebootTheUser.com
Wed Sep 13 19:11:09 UTC 2006

Steps to move to a larger drive:
(either local or NFS)

1. install the drive in a machine, either same or other
2. boot off of a livecd(Gentoo without X is the fastest)
3. mount old partitions(start nfs/portmap if using nfs)
    (i.e. /mnt/old_drive/ , /mnt/old_drive/boot, etc.........)
4. fdisk the new drive and create the partitions that you want.
5. mount new partitions somewhere
    (i.e. /mnt/new_drive/ , /mnt/new_drive/boot, etc......)
6. use cpio to make the copy, devs/symlinks,exact copy
cd /mnt/old_drive/boot ;find . -xdev -depth -print | cpio -pdm  

##script clone_partition
##clone_partition old_partition_root new_partition_root

cd ${LV_MOUNT1}; find . -xdev -depth -print | cpio -pdm ${LV_MOUNT2}

Quoting Eric P <eric.maillist at gmail.com>:

> Hi,
> My system (Ubuntu 6.06) is purring along and is the only OS I have   
> on my hard drive (20GB).  However, I have an empty
> 80GB hard drive that I'd move everything over to.
> Is there a way to make a complete image of my 20GB and put it onto   
> the 80GB and be up and running w/o the fuse of
> reinstalling the OS?  BTW, I have a 3rd drive that could act as   
> temporary holding space (it has ~50GB of space) where I
> could place the image from the 20GB hard drive.
> I figure the process would involve making an image and temporarily   
> placing it on the drive w/~50 GB space, then
> installing the 80GB HD and booting a live CD.  Then I'd somehow copy  
>  the image onto the 80GB hard drive so that it has
> the same boot configuration.
> Is this possible and relatively painfree?
> Thanks,
> Eric
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug

Jay Swackhamer
Reboot The User
13416 A Street
Omaha, NE 68144

More information about the OLUG mailing list