Enlarging primary partition failed

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.
Locked
JochenVDP
Posts: 3
Joined: 29. Jan 2023, 15:59

Enlarging primary partition failed

Post by JochenVDP »

Hi all,

I installed an OSX High Sierra guest on a Linux Mint host. I needed High Sierra to test a particular version of software. It works great, but I made my vdi file a bit too small (40Gb). I enlarged it to 60Gb, but of course that is just the Virtualbox side of it, ic it's the Virtualbox software offering OSX a larger (virtual) harddrive. Now I still need to increase the file system size on OSX and that's where I run into trouble.

If I run Disk Utility on OSX I see a "Free space" partition and my existing partition (that contains my OS & soft). If I delete the Free Space partition my existing partition automatically takes up the whole 60Gb of the pie chart. Awesome! But when I press "Apply" I get "Operation failed". The detailed text shows me;
Volume could not be unmounted
Using live mode
...which might still be normal. It's my root volume after all. But AFAIK OSX can enlarge it's root filesystem while the OS is running (depending on what actions you use in the Disk Utility tool, there's a warning saying the OS may freeze for a couple of seconds).

But then further on in the error Details I get this;
Resizing
MediaKit reports partition (map) too small. If you recently grew your whole-disk, you should run whole-disk repair.
Operation failed...
...but then when I run First Aid on the volume I get zero errors.

I tried not enlarging my primary partition of 40Gb and simply creating a 2nd partition of 20Gb from the space I added to the vdi file ...but I get the same error.

Any ideas on what to try next?
Thanks!
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Enlarging primary partition failed

Post by scottgus1 »

JochenVDP wrote:I installed an OSX High Sierra guest on a Linux Mint host.
A Mac guest is only allowed if the physical computer is real Apple hardware.
OSX guests on non-Apple hardware

If you are using an Apple computer, please start a new topic in the Mac Guests forum, with a zipped guest vbox.log, posted using the forum's Upload Attachment tab.
Locked