]]>-a, --archive
same as -dR --preserve=all
I've migrated my system to different drives on two occasions, the first time using cp and the second time using rsync.
I learned that cp doesn't necessarilly preserve ALL attributes (case in point was that "ping" stopped working unless I was root, because the SUID got messed up), whereas rsync preserved everything. I also quite like the --exclude option of rsync, allowing for a selective migration in a single command whilst not copying stuff you don't need to.
That's why you have to pass --preserve-all option. In your case file capabilities (see man 7 capabilities) were not preserved.
]]>I learned that cp doesn't necessarilly preserve ALL attributes (case in point was that "ping" stopped working unless I was root, because the SUID got messed up), whereas rsync preserved everything. I also quite like the --exclude option of rsync, allowing for a selective migration in a single command whilst not copying stuff you don't need to.
]]>If the current Arch partition and the Windows partition are back-to-back then you could just delete the Win part and expand the Arch part. Then expand the ext4 filesystem.
]]>I think I may end up doing this again soon, as I read reports that jfs will support trim in an upcoming kernel release.
]]>You might check out this article: https://wiki.archlinux.org/index.php/Fu … with_rsync
Edit: Rats, snaked again !
]]> as I finally fine-tuned and repeatedely tested Windows installation in Virtualbox to my complete satisfaction I have no use for the stock Win7 installation on the 1st partition more.
I know I can format it to ext4 and mount as additional partition or use LVM but I would like to copy/move my current ArchLinux system to this 1st partition and then extend it to use the whole disk as a single ext4 partition + one swap partition. I'm asking if it's enough to copy whole contents with
cp -r --preserve-all /mnt/oldpartition/ /mnt/newpartition
to do "verbatim" copy/clone or am I missing something here ? The previous code should copy all file attributes and capabilities. The original install is on Ext4 partition. As the last step is to update etc/fstab and grub config of course.
]]>