Re: copy full system from old disk to a new one

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

 



-----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

- -- 
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
                (from /var/log/Xorg.setup.log)

| Greg Hosler                                   ghosler@xxxxxxxxxx    |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlEgLZ0ACgkQ404fl/0CV/SyygCePQaeE2EhbbQ4EJwTwxTV39R4
EYIAoLOCTx3YLyz/Tly2dLbWU0dYgUoD
=xCwA
-----END PGP SIGNATURE-----
-- 
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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux