Reduce virtual machine size - error

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Lacayo
Posts: 2
Joined: 16. Feb 2024, 13:17

Reduce virtual machine size - error

Post by Lacayo »

I've an old Asus Eepc laptop with Windows XP operating system.
I've cloned the hard drive with Disk2vhd and created a VM with it.
I would like to reduce the size of the hard disk from 128 gb to 40 gb.
Is this possible?

Step 1. Defragment the disks
Defragment the disks ---> OK.
Step 2:
sdelete.exe -z C: ---> OK.
Step 3:
VBoxManage createhd --filename "/path/New.vdi" --size 400000 --->OK
Step 4:
VBoxManage clonehd "/path/old.vdi" "/path/new.vdi" --existing ---> OK
Step 5:
Run the virtual machine with the new vdi disk. ---> NO OK
System error on start it. BSOD :(

Some idea?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Reduce virtual machine size - error

Post by scottgus1 »

Lacayo wrote: 16. Feb 2024, 13:44Some idea?
Yes. Tell us what the BSOD error is. :wink:
Lacayo
Posts: 2
Joined: 16. Feb 2024, 13:17

Re: Reduce virtual machine size - error

Post by Lacayo »

Hi again
The error is: UNMOUNTABLE_BOOT_VOLUME

Thanks
Attachments
The BSOD
The BSOD
BOSD.jpg (86.81 KiB) Viewed 500 times
Post Reply