Am Wed, 22 Oct 2008 05:24:07 -0700 schrieb Rick O:
> I've got a Redhat Enterprise Linux 5 system that I installed, had a
> contractor install some stuff, and then found out that I need to
> transfer it to another, smaller hard drive.
>
> I haven't done this in a few years, and the last time I did it I had
> simple ext2fs partitions. I could just use fdisk to make a partition,
> mkfs.ext2, cp -ax everything to the new drive (or if the new drive was
> the same size/larger, I could just use dd), install lilo or grub, and
> move on with life. Now I've got this complex LVM system and I don't
> know where to begin. Worse, I can't seem to find a HowTo or anyone
> else's question on forum/newsgroups.
>
> How can I transfer my complete RHEL5 system to another (smaller) hard
> drive?
tar the root directory and save this on the smaller (formated) disk, start
a live or rescue cd, extract the tarball mount /proc, /sys and the
extracted root directory, change via chroot into the 'old system' ans run
your bootloader. Leave chrooted environment unmount /proc /sys and you
system, reboot finish.
It'll be faster than dd.
|