Need to make a VM out of a CentOS 6 asterisk box with 3 500GB SATA drives in RAID 5. This gives me a 1TB drive that has 42GB used.
After some googling, it looked easy to use "dd conv=sparse" but that produced a 1TB disk image. I loaded the dive on /dev/loop0 and tired to use gparted to shrink it, but gparted said it need gpart to see inside and gparted was nowhere to be found. (The disk image in on a Centos7 machines.)
I have used TestDisk on the image with a few different parameters but it always comes up with results that don't match fdisk -l on the original machine. (I have attached the output.)
I was going to try Clonezilla next, but I thought I would ask some expert advise before wasting more time.
So, what is the best way to get a 1TB RAID 5 image with multiple partitions into a VirtualBox VM with only the 42G of data? (I would make a 60GB virtual drive anyway.) fisk-output.txt