Adding an entry on BCDEDIT nosotros tin kick Linux using Windows (Vista or later on) Boot Manager. As before Bone such as Windows XP does not have bcdedit we can kick Linux past adding entry on boot.ini file.

For Windows Vista or Later, using BCDEDIT

Let's discuss how to do this. Offset, nosotros shall install Windows on the target PC. And then nosotros shall take a fill-in of Windows MBR before installing Linux.

                # dd if=/dev/sda of=winmbrbackup.bin bs=512 count=1                              

After that nosotros shall install Linux. So we restore Windows MBR.

                # dd of=/dev/sda if=winmbrbackup.bin bs=446 count=i                              

In this stage, we install Linux MBR on Linux partition using chow-install command

                # grub-install /dev/sdaX                              

For example, it is 'sda9' in my case.

                # grub-install /dev/sda9                              

Permit's copy required kicking data: mbr into a file which we will utilize subsequently Windows.

                # dd if=/dev/sda9 of=rhelmbr.bin bs=512 count=one                              

Copy this file from Linux and put it into system partition such as C: bulldoze.

We shall add together an entry in Windows BCDEDIT for Linux. We have to open command prompt with ambassador privilege and apply following control,

                $ bcdedit /create /d "RHEL 6" /application BOOTSECTOR                              

This command will give an ID of the entry created. Use this ID on subsequent commands,

                $ bcdedit /fix {ID} device partition=C: $ bcdedit /set {ID}  path \rhelmbr.bin $ bcdedit /displayorder {ID} /addlast $ bcdedit /timeout twenty                              

If you are using Windows 8, it's better to set bootmenupolicy to legacy so that Bone Selection Menu is displayed during initial boot.

                $ bcdedit /set {default} bootmenupolicy legacy                              

After restarting operating organisation yous will exist presented with option to boot Linux with Windows.

Before OS such as Windows XP

Opening kick.ini for edit can be little bit tricky. It might be set read-simply. The file resides on C:\ drive. Windows XP boot.ini looks like this:

                $ bcdedit /gear up {default} bootmenupolicy legacy[boot loader] timeout=30  default=multi(0)disk(0)rdisk(0)segmentation(1)\WINNT  [operating systems]  multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional person" /fastdetect                              

Add together a line like this in kick.ini to add linux entry,

                C:\rhelmbr.bin="RHEL six".                              

References

  • technet: How to use Windows Vista's Boot Manager to boot Linux
  • msdn: BCDEdit
  • Windows and Arch Dual Kick
  • Booting Solaris using Windows Kick Loader