Compact breaks hdd (vdi)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
wat
Posts: 28
Joined: 28. Mar 2010, 21:48
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu-various

Compact breaks hdd (vdi)

Post by wat »

5.1.26
procedure followed


http://archive.is/UoVyT
sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile

VBoxManage.exe modifymedium disk c:\path\to\thedisk.vdi --compact

Ubuntu 17.04 32bit guest now can't get past the login password, simply blanks, and the asks again.

so perhaps the issue still persists.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Compact breaks hdd (vdi)

Post by socratis »

I split your post from the "Resize breaks hdd (vdi)" because you didn't even do a "resize", you did a "compact" operation. I also changed the title to reflect that fact. Piggybacking on someone else's thread is not a great idea...

I'm not sure who gave you that procedure to "zero out" files in the guest, but the proper procedure is described in the User Manual, ch. 8.23 VBoxManage modifymedium in the "--compact" section.

For my Linux guests I boot from the System Rescue CD and I use the 'zerofree' command.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply