Created
October 20, 2019 16:54
-
-
Save torgeir/7c648647582b33cccb7336160e7ea007 to your computer and use it in GitHub Desktop.
Boot physical win disk from linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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