VirtualBox

Opened 17 years ago

Closed 16 years ago

#1546 closed enhancement (wontfix)

option to erase expandable disks

Reported by: Michal Suchanek Owned by:
Component: virtual disk Version: VirtualBox 1.6.0
Keywords: Cc:
Guest type: other Host type: other

Description

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 (3)

comment:1 by Frank Mehnert, 17 years ago

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 by Frank Mehnert, 16 years ago

Component: othervirtual disk

comment:3 by Frank Mehnert, 16 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette