It is dynamically allocated.
Now going through more posts in the forum, I should probably add more info:
* I can open in CloneVDI ("Ok" result).
* I cloned successfully and was still able to boot, however again to "unknown filesystem"
debian: partitions lost after resizing disk
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: debian: partitions lost after resizing disk
Probably not, that is supposed to only tell the VM OS that it can do TRIM, if it is enabled to do so.
I'll try a Debian 12 VM later with a 7.5GB dynamic drive and see If I too get a killed drive after resizing.
Re: debian: partitions lost after resizing disk
I have noticed that after resizing the VMDK file, from CloneVDI perspective, it changed from Ext4 (before) to Ext1 (after resize).
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: debian: partitions lost after resizing disk
That simply means that there is nothing wrong with the drive: which none of the discussion above indicated anyway. As I said, VirtualBox doesn't care about partitions, that's a purely software element. CloneVDI will generally be silent about partitions too - it's just that certain additional features may not work if it doesn't recognize what's on the drive.
Re: debian: partitions lost after resizing disk
Thank you @mpack for the explanation. Would you be able to suggest a way to debug the issue? I can reproduce from a fresh VM, meaning I can probably find out how the VBox resize process is destroying the partition (or something else).
I am able to recover files with PhotoRec, but not able yet to recover partitions with Testdisk. The result always shows no files found.
I am able to recover files with PhotoRec, but not able yet to recover partitions with Testdisk. The result always shows no files found.
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: debian: partitions lost after resizing disk
FWIW, I'll make an educated guess that the most important detail here is that we're talking about VMDK images. AFAIK, support for resizing VMDK images has only been implemented lately in VirtualBox 7.0, so I wouldn't be surprised if errors exist.
What variants of VMDK files did you create?
What variants of VMDK files did you create?
As an alternative, you could add a second virtual disk image to any existing Linux VM and play with that (saves the time for an OS installation). But use one of the VMDK variants in any case.
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: debian: partitions lost after resizing disk
Good to know, fth0! Will use a vmdk in my test.
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: debian: partitions lost after resizing disk
From Change Log - Version 7.0.6 (2023-01-17):
Code: Select all
Storage: Added support for increasing the size of the following VMDK image variants: monolithicFlat, monolithicSparse, twoGbMaxExtentSparse, twoGbMaxExtentFlat