Hi,
I have one partition /dev/sda1 which is of size 10G
Its actual usage is 950M.
I want to make a copy of it in /dev/sda2 which is of 1G in size.
Is it possible to :
dd if=/dev/sda1 of=/dev/sda2
resize2fs /dev/sda2
I tried the above command and it fails to resize again.
Or can we rsync it :
rsync -avzp /mnt/sda1 /mnt/sda2
Though rsyncing works its much slower.
Also I am not fully sure of Symlinks or Hardlinks being replicated properly alongwith other permissions and ownership issues.
Will I need to add more parameters of rsync ?
dd is very fast and if there is a way, nothing like it