Skip to content

Instantly share code, notes, and snippets.

@torgeir
Created October 20, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torgeir/7c648647582b33cccb7336160e7ea007 to your computer and use it in GitHub Desktop.
Save torgeir/7c648647582b33cccb7336160e7ea007 to your computer and use it in GitHub Desktop.
Boot physical win disk from linux
# find e.g. Windows 8 (on /dev/sda2)
fgrep menuentry /boot/grub/grub.cfg
# MAKE SURE NOT TO BOOT FROM THE OS YOU ARE ALREADY IN!!
sudo vim /etc/default/grub
# modify it, like
# GRUB_DEFAULT=0
GRUB_DEFAULT="Windows 8 (on /dev/sda2)"
# then create an image for your disk
VBoxManage internalcommands createrawvmdk -filename raw-win.vmdk -rawdisk /dev/sda -relative
# add it to virtual box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment