Resizing Issue
Posted: 29. Dec 2016, 16:18
Hi everyone,
I tried to resize my my virtual machine (it's another Ubuntu instance) from 1TB to 1.5TB but I made a mistake and put the wrong size in.
It did finish but when trying to starting the virtual machine, I receive the following:
I was reading on the forum about vidma and when I tried to shrink the size down, I receive the following error:
Here is what vidma spits out for the image:
Any help will be appreciated, I do have a backup but it's a little dated and I would kind of like to see if I could restore this vdi. Thanks.
I tried to resize my my virtual machine (it's another Ubuntu instance) from 1TB to 1.5TB but I made a mistake and put the wrong size in.
Code: Select all
vboxmanage modifyhd dellnewubuntu.vdi --resize 1592890138624Code: Select all
Could not open the medium '/mnt/bigspace/dellnewubuntu.vdi'.
VDI: invalid header in '/mnt/bigspace/dellnewubuntu.vdi' (VERR_VD_VDI_INVALID_HEADER).
VD: error VERR_VD_VDI_INVALID_HEADER opening image file '/mnt/bigspace/dellnewubuntu.vdi' (VERR_VD_VDI_INVALID_HEADER).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Medium
Interface: IMedium {29989373-b111-4654-8493-2e1176cba890}Code: Select all
./vidma /mnt/bigspace/dellnewubuntu.vdi 112400
Recognized file format:
Virtual Disk Image (vdi)
ERROR BAM overlaps data.
ERROR block size (1048576), block count (3752239104) and disk size (1670266369997799424) mismatch.Code: Select all
Recognized file format:
Virtual Disk Image (vdi)
pre.file_info = <<< Oracle VM VirtualBox Disk Image >>>
pre.signature = beda107f 3201962111
version = 00010001 65537
header.size = 00000190 400
header.type = 00000001 1 (dynamic)
header.flags = 00000000 0
header.offset.bam = 00001000 4096
header.offset.data = 7e9d3000 2124230656
header.pchs.cylinders = 00000000 0
header.pchs.heads = 00000000 0
header.pchs.sectors = 00000000 0
header.pchs.sector_size = 00000200 512
header.dummy = 00000000 0
header.disk.size = 172dfa6a00000000 1670266369997799424
header.disk.blk_size = 00100000 1048576
header.disk.blk_extra_data = 00000000 0
header.disk.blk_count = dfa6a000 3752239104
header.disk.blk_count_alloc = 000e72ca 946890
header.uuid.create = 9aec216f-0d20-468f-8fab-709a80a46875
header.uuid.modify = 27466faa-4cd5-4ba5-be90-afc9ac7e96fd
header.uuid.linkage = 00000000-0000-0000-0000-000000000000
header.uuid.parent_modify = 00000000-0000-0000-0000-000000000000
header.lchs.cylinders = 479dca7d 1201523325
header.lchs.heads = 000000ff 255
header.lchs.sectors = 0000003f 63
header.lchs.sector_size = 00000200 512