Skip to content

Instantly share code, notes, and snippets.

@xardit
Last active February 10, 2024 21:53
Show Gist options
  • Save xardit/732ffc20d691b57aee1ee5743a542bf2 to your computer and use it in GitHub Desktop.
Save xardit/732ffc20d691b57aee1ee5743a542bf2 to your computer and use it in GitHub Desktop.
Virtual Box create physicaldrive0.vmdk disk with cmd to access raw disk

Run only on cmd > run as admin

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createmedium disk --filename physicaldrive0.vmdk --format=VMDK --variant RawDisk --property RawDrive=\\.\PhysicalDrive0

When adding to virtual disk manager on virtual box, make sure to run virtual box directly from the .exe file as administrator

To list Host drives using vboxmanage.exe

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  list hostdrives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment