----- Original Message ----- From: Chris Murphy Sent: 12/28/13 03:04 AM To: Community support for Fedora users Subject: Re: failed to ..
On Dec 27, 2013, at 6:55 PM, "Patrick Dupre" pdupre@gmx.com wrote:
the cp -a /boot_cloned and /boot_clone (when partition not active).
I don't follow this.
I did this tons of times before without problem Actually I did: mount VolGrpSys2-root /mnt/linux1 - o ro mount VolGrpSys3-root /mnt/linux2 cp -a /mnt/linux1/* /mnt/linux2 In the past it did not miss directories. Would it do it know? I do not like to use dd, because I want to keep the size of the 2 patitions are different I could use tar -c tar -x You used cp /dev/sda /dev/sdb? Device to device? Or you specified directories to copy? I've had cp -a of directories not work, in particular it misses hidden files unless you explicitly copy them. I've had better luck with rsync. And I've had impressively good luck with btrfs send/receive, that's a cake walk, and fast.
Chris Murphy
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
On Dec 27, 2013, at 7:25 PM, Patrick Dupre pdupre@gmx.com wrote:
cp -a /mnt/linux1/* /mnt/linux2
This does not copy .hidden files. There are quite a few:
find / -name .*
I do not like to use dd, because I want to keep the size of the 2 patitions are different I could use tar -c tar -x
I would sooner use rsync -avAHX source/ destination
http://www.mikerubel.org/computers/rsync_snapshots/#Rsync
FYI new feature in Fedora 20 is LVM Thin Provisioning. You can create a snapshot of an existing LV and just use that as your new root. No copying. And it saves space because the snapshot uses the extents of the original (without changing them, changes cause new extents to be created that apply only to the snapshot). Basically the snapshot becomes a new LV.
Chris Murphy