Ticket #1546 (closed enhancement: wontfix)

Opened 11 years ago

Last modified 10 years ago

option to erase expandable disks

Reported by: hramrach Owned by:
Priority: minor Component: virtual disk
Version: VirtualBox 1.6.0 Keywords:
Cc: Guest type: other
Host type: other


The expandable disks are nice but there is no way to shrink the disk once it is expanded.

Deleting and recreating the disk image is quite annoying as it must be unregistered and re-registered with the VM.

There are two possibilities:

  • erase the disk completely - possibly an option in the config of the VM or the disk image manager - this would be helpful for test machines
  • discard zero sectors - this could be done as they are written - could be used to save space by erasing free space inside the guest OS

Change History

comment:1 Changed 10 years ago by frank

Sectors containing only zeros can be discarded with

VBoxManage modifyvdi FILENAME compact

We don't do this during runtime as this would decrease the write performance.

comment:2 Changed 10 years ago by frank

  • Component changed from other to virtual disk

comment:3 Changed 10 years ago by frank

  • Status changed from new to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use