On 2013/02/16 17:08, Gregory Hosler wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/17/2013 09:03 AM, Reindl Harald wrote:
Am 17.02.2013 01:36, schrieb doug:
On 02/16/2013 06:53 PM, Martín Marqués wrote:
How can I pass my whole system from an old SATA disk (which is giving
me some trouble) to a new disk. I have 4 partitions, all of which I
have only passed /home using cp -.a
I'm a bit concerned about the root file system, how to change grub, and
if I'll have trouble with non-regular files from /var.
There is a Linux program called Clonezilla which is supposed to be able
to clone disks. a program called HDClone, from Miray. There are several
versions of HD Clone: one is free, one costs some money, and others cost
even more. The difference appears to be the speed of copying. I
originally used the freebie, and it took about 7 hours to clone a 160G
disk. Later, I bought the first paid one, and it took about 3 hours to
do something similar
* boot from a live-cd and use dd * dd if=/dev/sdX of=/dev/sdY bs=16M
/dev/sdX = your source disk /dev/sdY = your new disk
be careful not make a mistake in source / target, afetr enter you are lost
in this case
with the script below if even mirrored 4 x 2 TB SATA disks from one machine
to another with 3 linux-software-RAIDs in a few hours to a blank machine
[root@localhost ~]# cat /clone.sh date dd if=/dev/sda | ssh
root@192.168.196.129 "dd of=/dev/sda bs=16M" dd if=/dev/sdb | ssh
root@192.168.196.129 "dd of=/dev/sdb bs=16M" dd if=/dev/sdc | ssh
root@192.168.196.129 "dd of=/dev/sdc bs=16M" dd if=/dev/sdd | ssh
root@192.168.196.129 "dd of=/dev/sdd bs=16M" date
You may benefit from having bs=16M on the input side as well, otherwise the
input dd will use default bs size.
i.e.
dd if=/dev/sda bs=16M | ssh root@192.168.196.129 "dd of=/dev/sda bs=16M"
All the best,
- -Greg
Also consider "conv=fsync".
Try adding "conv=noerror conv=sync" if you have read errors. That ensures
that the copy has all the blocks in the correct place even if some of them
are in error. If you have errors you may do best setting bs to the native
block size of the disk or the file system's block size. If you pick the
smaller of these two you get maximum data recovery possible.
{^_^}
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org