Answer the question
In order to leave comments, you need to log in
What's wrong with ext4 in vhdx?
Answer the question
In order to leave comments, you need to log in
Quqas , the whole point is to have the fundamental possibility of replacing zeros with, for example, file holes (for this reason, I would not choose the vhdx format, which is not clear how to vacuumize, because these are windows specific solutions and you have an ext3 format,
consider all modern file systems are able to sparse files, this is when the file on the disk really takes up only as much space as was written to it, and there are also accompanying utilities that replace zeros with these holes
in linux, the usual cp with the --sparse=always key will copy and replace the zeros in the file with holes
look here
ps in your case, I strongly recommend a different approach (since the one described above will require you to first inflate the file to 2tb, which of course can fit on some btrfs / zfs with compression support, but it's not very efficient) it's better to backup the disk using partclone (supports huge number of file systems) this utility can copy block devices (count as dd) skipping sectors marked as free by the file system, i.e. you create a second empty disk (even if it is raw, I strongly recommend keeping the images as is ) and from a virtual machine (since vhd is difficult to mount directly, existing tools are buggy with large disks) and clone from the old to the new using clonezilla.
This approach is probably the most efficient for vacuuming disk images that rely on leaky storage.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question