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. I've tried rsync, that didn't do it properly. 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/. YaST in 11.2 Alpha0 doesn't now have an entry for cloning a system that I can identify. What's recommended? Regards Sid.
I normally copy, or clone, if you like, a disk like this: 1. Boot from a Live openSUSE 2. Check to make sure which is which! 3. For example cp /dev/sda /dev/sdb The whole device will be cloned, MBR, partition table, partitions, all data on them, just everything. If the target is bigger, there will be free unpartitioned space in the end of it. You may do what ever you like with it a bit later. Now, the clone will have an exact copy of the original disk's fstab, too. As you are using disk IDs there, they need to changed. While you are running the live system , open YaST > System > Partitioner Make mount points like newdisk and olddisk and mount the disks to those. Now the live system will have its fstab where the old disk as well as the new disk will have their own IDs. Take the new disk's ID from the Live system's fstab, and correct that to the one that is on the actual disk. (The one on the new disk has the old disk's ID, since it's a copy of the old disk's one, this needs to be changed.) Also correct the /boot/grub/menu.lst on the new disk with the new ID And the /boot/grub/device.map. Now you should be back in business. Vahis -- http://waxborg.servepics.com -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org