Mailinglist Archive: opensuse-factory (279 mails)

< Previous Next >
Re: [opensuse-factory] cloning a hard drive with YaST
  • From: Ken Schneider - openSUSE <suse-list3@xxxxxxxxxxxxx>
  • Date: Mon, 09 Mar 2009 08:11:01 -0400
  • Message-id: <49B50755.2050207@xxxxxxxxxxxxx>
Carlos E. R. pecked at the keyboard and wrote:


On Monday, 2009-03-09 at 04:03 -0000, Sid Boyce wrote:

Problem, I have a xfs 1TB hard drive with badblocks (/dev/sda1) and
would like to clone it to another 1TB drive (/dev/sdc1), /dev/sdc is
already partitioned and mkfs.xfs run.

With xfs you could use xfsdump and xfsrestore.

I've tried rsync, that didn't do it properly.

Why not?

Next I copied all the data
across, but it gets confused on boot with the different namings in
/dev/disk/by-id/ and what was copied across in /etc/fstab and the stuff
in /etc/grub/.

Well, those you will have to adjust manually, there is no way around it
that I know of.

YaST in 11.2 Alpha0 doesn't now have an entry for cloning a system that
I can identify.
What's recommended?

rsync.


I agree that rsync is the better way to go. I also agree that /etc/fstab
will need to be adjusted manually. Also make sure you set the proper
partition bootable.
Another copy method you could try is dd.
--
Ken Schneider
SuSe since Version 5.2, June 1998
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
References