Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to add 12.04 that is in a different drive to my active BCD Store.

What I did is:

  • I added a boot sector application pointing to c:\boot\ubuntu\boot.img and I only get a black screen with grub>

  • I also copied the mbr to a file and added to BCD and I get the same results.

I don’t want to use EasyBCD for learning purposes.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Ok I did it.

First, I had to create a core.img that point to my drive explicity, Like this:

grub-mkimage --output=/tmp/core.img --prefix=\(hd3,1\)/boot/grub --format=i386-pc biosdisk part_msdos ext2

Second, I had to concatenate the lnxboot.img and core.img to create a image that can be booted by the boot sector application of the BCD Store.

cat /boot/lnxboot.img /tmp/core.img > /tmp/g2ldr

Third, I had to copy the g2ldr image to my windows partition and added to my BCD Store with a boot sector application.

Now I can boot Ubuntu from the boot manager of the BCD Store.

Links:

http://blog.mudy.info/2010/08/boot-grub2-stage2-directly-from-windows-bootmgr-with-grub4dos-stage1/

http://www.gnu.org/software/grub/manual/grub.html#Images

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.