VBoxManage modifyhd OSX\ Dev.vdi --resize 40960
Solves "MediaKit reports partition (map) too small" error from Disk Utility
- Mount virtual image via nbd
sudo qemu-nbd -c /dev/nbd0 OSX\ Dev.vdi
- Use
sudo gdisk /dev/ndb0
to destroy and recreate a partition table. - Unmount virtual image
sudo qemu-nbd -d /dev/nbd0
Solves "Couldn't modify partition map because file system verification failed" error from Disk Utility
- Boot OSX in single user mode (pass
-s
to bootloader) fsck -fy
- Boot OSX normally
- Open Disk Utility
- Select (now larger) drive on left
- Partition tab
- Drag up and then down
- Click Apply
@ytsamy try this approach:
http://blog.kyodium.net/2010/11/increase-disk-and-partition-size-in.html
In recent OS X there are multiple entries for EFI, but read the latest comment to learn how to play with them.