Compact Sco OpenServer 5 guest
Posted: 23. May 2019, 17:55
Has anyone managed to compact a vdi with Sco OpenServer 5 as guest OS, running on a windows host?
Am using a dynamic vdi, Disk usage was at 37GB, old data was deleted and Sco disk usage went down to about 7GB, but of-course the virtual disk stayed at 37GB.
I have have written a script that fills the disk with as many 2GB files as can fit (HTFS's largest file size) using dd with /dev/zero as input and then deleted them all, used disk space inside Sco went back down to 7GB, the vdi grew from 37GB to 128GB as expected, the max size of the vdi.
My problem is that nothing I do can compact the disk, VBoxManage.exe modifymedium disk sco.vdi --compact runs to 100% but the vdi stays at 128GB, I also tried CloneVDI with same results. I even tried HDD cloning software within a windows guest with the Sco vdi and a fresh vdi attached, using intelligent sector copy, and still ended up with a 128GB vdi.
I suspect the problem is that Virtualbox, clonevdi, windows and the HDD cloning software don't understand the file system (HTFS) in the vdi.
Has anyone ever tried compacting a Sco VM and succeeded? I'm open to any and all ideas. Even if you know of any windows or linux hdd cloning or partition tools that understands HTFS, I'd be keen to check it out.
Am using a dynamic vdi, Disk usage was at 37GB, old data was deleted and Sco disk usage went down to about 7GB, but of-course the virtual disk stayed at 37GB.
I have have written a script that fills the disk with as many 2GB files as can fit (HTFS's largest file size) using dd with /dev/zero as input and then deleted them all, used disk space inside Sco went back down to 7GB, the vdi grew from 37GB to 128GB as expected, the max size of the vdi.
My problem is that nothing I do can compact the disk, VBoxManage.exe modifymedium disk sco.vdi --compact runs to 100% but the vdi stays at 128GB, I also tried CloneVDI with same results. I even tried HDD cloning software within a windows guest with the Sco vdi and a fresh vdi attached, using intelligent sector copy, and still ended up with a 128GB vdi.
I suspect the problem is that Virtualbox, clonevdi, windows and the HDD cloning software don't understand the file system (HTFS) in the vdi.
Has anyone ever tried compacting a Sco VM and succeeded? I'm open to any and all ideas. Even if you know of any windows or linux hdd cloning or partition tools that understands HTFS, I'd be keen to check it out.