Mac HighSierra Trying to create Raw Disk

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Jon_K
Posts: 3
Joined: 16. Nov 2021, 08:53

Mac HighSierra Trying to create Raw Disk

Post by Jon_K »

Hi everyone. I am using MacOS 10.13.6 VBox 6.1.28 with ext pack 6.1.28. I am trying to create a VMDK that points to a drive (not partition) formatted exFat GUID. After launching VBox from the terminal, I am typing: VBoxManage internalcommands createrawvmdk -filename /Users/jonknebel/Documents/VM_HDs/windows.vmdk -rawdisk /dev/disk0 I get nothing. I have done this successfully before with an older version of VBox. Has something changed?? What am I doing wrong?
granada29
Volunteer
Posts: 690
Joined: 3. Mar 2015, 07:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS, Windows

Re: Mac HighSierra Trying to create Raw Disk

Post by granada29 »

Try using https://whatroute.net/vboxrawdisk.html
It works OK for me with a USB disk running Windows 10
Jon_K
Posts: 3
Joined: 16. Nov 2021, 08:53

Re: Mac HighSierra Trying to create Raw Disk

Post by Jon_K »

The error message tells me that /dev/disk0 is an invalid parameter (diskname). It says: The diskname is on Linux e.g. /dev/sda, and on Windows e.g. \\.\PhysicalDrive0). No mention of MacOS disknames.
granada29
Volunteer
Posts: 690
Joined: 3. Mar 2015, 07:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS, Windows

Re: Mac HighSierra Trying to create Raw Disk

Post by granada29 »

Is /dev/disk0 the correct drive? I would expect that to be the internal disk on your Machine.
Do you have read/write access to the disk and all its partitions?
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Mac HighSierra Trying to create Raw Disk

Post by fth0 »

FWIW, in a Terminal, you can use diskutil list to get an overview of the macOS disk names.
Jon_K
Posts: 3
Joined: 16. Nov 2021, 08:53

Re: Mac HighSierra Trying to create Raw Disk

Post by Jon_K »

Thanks granada29 That worked for me. Problem solved. It did not work when running VBox from the terminal, but did when I launched it normally - and fixed permissions too!
Post Reply