I have a Windows 10 machine hosting a VirtualBox running Ubuntu. In Ubuntu, I ran out of space in my /dev/sda1 partition, so in order to expand it, I (via gparted)
- increased the size of the virtual disk
- deleted my sda2 and sda5 partitions
- resized the sda1
- recreated the sda2 and sda5 partitions
Of course, now my sda5 partition is blank and I'm looking to copy over the files I have from my virtual disk backup. Using dd resulted in my partitions reverting back to their original sizes.
rsync -a --info=progress2 /dev/sdc2 /dev/sdb2
Skipping non-regular file "sdc2"
I'm a complete Linux newbie so go easy on me! Where am I going wrong? What is the best way to achieve this?