Opened 6 years ago
Closed 6 years ago
#18177 closed enhancement (fixed)
GUI: Create new disk should round to sector size (divisible by 512) -> fixed in 6.0.6
Reported by: | Socratis | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 5.2.22 |
Keywords: | VERR_VD_INVALID_SIZE, sector boundary, VDI creation | Cc: | |
Guest type: | all | Host type: | all |
Description
Create a new VM. When creating the matching VDI, the slider and the numeric control for the file size allow you to select any number. In many cases where a decimal number is used (27.87 GB for example), the VDI creation fails with:
Could not create the medium storage unit '/Users/Shared/VirtualBox/Machines/1/1.vdi'.
VD: The given disk size 29925184634 is not aligned on a sector boundary (512 bytes) (VERR_VD_INVALID_SIZE).
which is true; 29925184634 is not evenly divisible by 512 (29925184634/512=58447626.23828125).
But this can be confusing for a new user that doesn't know what 512 or sector stands for. It would be nice if the GUI would round the decimal number to the closest number that's divisible with 512. You could have it "stick" the values in the slider, and/or round them in the numeric control.
Change History (4)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
This has been addressed and the fix will be available in the next release.
comment:4 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | GUI: Create new disk should round to sector size (divisible by 512) → GUI: Create new disk should round to sector size (divisible by 512) -> fixed in 6.0.6 |
Related discussion in the forums: https://forums.virtualbox.org/viewtopic.php?f=1&t=90724