![]() ![]() Linux command should look the same, just omit. VBoxManage.exe modifyhd -compact "C:\Users\k\VMs\CentOS Dev.vdi" If you want to try a dry run without modifying the hard-drive, add the -n flag.įor LVM, there might also be a _home partition that needs a zerofree run as well.įinally, boot down your virtual machine, and run VBoxManage on the host to resize the. zerofree -v /dev/mapper/vg_rheldev-lv_root The reason I need this: I am trying to get data from a broken all-in-one PC (only the monitor appears broken), and do not have access to a monitor. In our example we will run it on the LVM root partition. Hi all, I am looking for a distribution/live cd that enables ssh/telnet (or something similar) on boot. Mount it as a CD on your virtual machine and boot into the live distro.įind all available partition and LVM (volume groups) with: fdisk -lĪfter we find our partition run zerofree to zero out the free space. To fix this, we need to fill the empty space on the vdi with zeros and resize it: VirtualBox sparse VDI images always take up as much space as they have maximally had utilized at some point in time. Shrinking VirtualBox Linux images with ZeroFree Stanislav Khromov
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |