Index: [Article Count Order] [Thread]

Date:  Thu, 29 Jun 2006 20:23:19 +0800
From:  patricko <patricko (at mark) staff.singnet.com.sg>
Subject:  [coba-e:05922] Steps for cloning Cobalt raq with resizable /home partition
To:  coba-e (at mark) bluequartz.org
Message-Id:  <20060629202319.01fbbb11 (at mark) staff.singnet.com.sg>
X-Mail-Count: 05922

Hi blues,

  **** Warning use the below at your own risk *****


 >>>> My steps to clone RAQ OS Hard disk and still able to resize /home, /tmp slice. <<<<< 

      Actually, quite simple. We only clone disk slices selectively and create the others.







1) Image over the partition info from source to destination disk.
   dd if=/dev/<source slice 0> of=/dev/<destination slice 0> bs=512 count=1
  
2) Reboot server (with both hard disks)
3) fdisk, delete and re-create other partition to resize.
   *** Keep / and /var - dont touch ****

4) Reboot server
5) dd / and /var
   dd if=/dev/<source slice 0> of=/dev/<destination slice 0> conv=noerror,sync bs=4k


6) mkswap on destination disk
7) mkfs.ext3 /home on destination disk
8) mkfs.ext3 /tmp on destination disk

9) mount <destination disk, home slice>
10) cp -a /home/* /<destination disk, home slice>
     


ps: Have used the above to clone SUN Cobalt RAQ with BQ-CentOS4


Cheers
patrick