Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I received a computer with Windows 7 pre-installed. I've managed to resize the main Windows partition (the boot partition) and installed Linux. The partition table now looks like this:

/dev/sda1   *      0+     12-     13-    102400    7  HPFS/NTFS/exFAT
/dev/sda2         12+  19147-  19135- 153698304    7  HPFS/NTFS/exFAT
/dev/sda3      19147+  31130-  11984-  96257368    5  Extended
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5      19147+  30089-  10942-  87891583+  83  Linux
/dev/sda6      30089+  31130-   1042-   8365721+  82  Linux swap / Solaris

Dual-booting works perfectly fine with the following GRUB config for booting Windows (note, no chainloader!):

menuentry "Windows 7" {
  insmod part_msdos
  insmod ntfs
  insmod search_fs_uuid
  insmod ntldr

  search --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 307A614B7A610EC2
  ntldr /bootmgr
}

Now I'd like to make it possible to boot Windows inside VirtualBox, something I've had no problems with setting up before. However, this installation uses a system partition (/dev/sda1) and there seems no boot sector on it (or on /dev/sda2).

I'd rather not give Windows access to all of /dev/sda, so is there a way (preferably easy) to put a boot loader on /dev/sda1?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.