createrawdisk reporting wrong size

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Broly
Posts: 1
Joined: 11. Jan 2023, 05:46

createrawdisk reporting wrong size

Post by Broly »

hi,

when i first used virtualbox i had no problem creating a raw disk and then installing OS X on it.

however i deleted that partition and then, since i messed up my main boot partition's EFI, i had to re-install mojave.

anyways, i then again tried to run this command:
chown -R ${USER} /dev/disk3s7
chmod 660 /dev/disk3s7 (or chmod 777)
/Applications/VirtualBox.app/Contents/MacOS/VBoxManage internalcommands createrawvmdk -filename Documents/ml.vmdk -rawdisk /dev/disk3 -partitions 7
but the reported size of the disk is wrong; it's reported as 75ish KB.

when i use
/Applications/VirtualBox.app/Contents/MacOS/VBoxManage internalcommands createrawvmdk -filename Documents/ml.vmdk -rawdisk /dev/disk3s7
the disk size is correct but obviously i can't install OSX on this disk since it doesn't appear as a startup volume.

any suggestions on what the problem could be?

Mac Pro 5,1
mojave 10.14.6
csrutil shows SIP mode is disabled.
Attachments
Screenshot 2023-01-10 at 8.50.45 PM.png
Screenshot 2023-01-10 at 8.50.45 PM.png (78.31 KiB) Viewed 749 times
Post Reply