RE: Clone entire system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Rock Pomerleau
> Sent: Thursday, April 01, 2004 9:27 AM
> To: redhat-list@xxxxxxxxxx
> Subject: Clone entire system
> 
> Hi everyone,
> 
> I installed rhes 2.1 on the scsi disk 72gig.  I would like to clone it
> on a 36 gig instead.  So I created partition on the new 36gig disk,
> dumped partitons from 72gig to the new 36 gig.  I moved the new disk to
> another but similar computer, and tried to boot from the new disk.  It
> did'nt work.  It is impossilble to boot from the new disk.  I booted in
> rescue and I saw the new disk with all the stuffs on it.
> 
> I certainly forgot something.
> 
> 
> Partition table of 72 gig
> fdisk -l /dev/cciss/c0d0
> 
> Disk /dev/cciss/c0d0: 255 heads, 32 sectors, 17433 cylinders
> Units = cylinders of 8160 * 512 bytes
> 
>            Device Boot    Start       End    Blocks   Id  System
> /dev/cciss/c0d0p1   *         1        13     53024   83  Linux
> /dev/cciss/c0d0p2            14       514   2044080   82  Linux swap
> /dev/cciss/c0d0p3           515     17433  69029520   83  Linux
> 
> Partition table of 36 gig
> fdisk -l /dev/cciss/c0d1
> 
> Disk /dev/cciss/c0d2: 255 heads, 32 sectors, 8716 cylinders
> Units = cylinders of 8160 * 512 bytes
> 
>            Device Boot    Start       End    Blocks   Id  System
> /dev/cciss/c0d1p1   *         1        13     53024   83  Linux
> /dev/cciss/c0d1p2            14       514   2044080   82  Linux swap
> /dev/cciss/c0d1p3           515     8716  33464160   83 Linux
> 
> TIA!

Mount the new disk.  Then RSYNC from old to new.  Don't rsync the /mnt
or /proc directories.  create these 2 directories on new disk.  

use e2label to label the partitions
I'm guessing on your partition structure
e2label /dev/cciss/c0d1p1 /boot
e2label /dev/cciss/c0d1p3 /


shutdown, and make the 36Gb drive the only drive.  boot with either a
boot disk or the cd using > linux rescue.

chroot to the system image, and run grub-install

you should be able to reboot without a boot disk.

This method works for me with rh8, rh9, rhel3, and fedora


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux