Boot Linux com Windows BCDEDIT


Primeiramente gostaria de salientar que não sou o autor principal do conteúdo deste artigo. A minha intenção é de mostrar o que outros autores tem realizado (referenciando links para o conteúdo original) neste blog até como um guia pessoal para uso próprio e ainda compartilhar minhas anotações e pequenas modificações que realizo no conteúdo, desejando que possa ajudar mais alguém em algum lugar.
First and foremost, I take no credit for any of this post’s content. I am really just taking what others have done (which I have links to bellow) and am putting it on my blog for a personal reference and hopefully the small changes that I made to their guides will help someone somewhere.


link: http://nerdy-notes.blogspot.com.br/2010/09/adding-ubuntu-to-windows-7-bootloader.html


Confirme se o grub utilizado esta assinado digitalmente:
md5sum /boot/efi/EFI/ubuntu/*.efi
881ac1cca6cc3edd826ea67a6ed8a22e /boot/efi/EFI/ubuntu/grubx64.efi
4ffcb81383a564bbc558fca5b9a6e7a2 /boot/efi/EFI/ubuntu/shimx64.efi
Caso contrário precisa reinstalar o grub2:
sudo apt-get install shim-signed grub-efi-amd64-signed linux-signed-image-generic 
sudo grub-install /dev/sda8 --uefi-secure-boot 
sudo update-grub

Copie o bootloader do linux com o comando:
sudo dd if=/dev/sda8 of=~/ubuntu.bin bs=512 count=1

E salve no disco como Windows (drive C:)

Step 1:

Create a backup folder for your bootloader entries incase of emergencies or errors under C:\BCD

At the command prompt enter(Press Windows Key + R and type "cmd" and hit enter):
Bcdedit /export "C:\BCD\bcdBackup"

Step 2:

Now create an entry to the boot loader:
Enter the following Commands
bcdedit /create /d "Ubuntu" /application bootsector
Notes:
-/create create the entry
-/d is the descrption command
-/application bootsector is the type of entry to create
-Also the entry is not automatically added to the boot list menu

The following output will appear. Note copy your entry id (your unquie id is string of characters that has {..})
The entry {75abe2b9-aefd-11e2-be9b-50465d38010d}  was successfully created.

ou  {2b0e7fd2-41e5-11e0-94e5-d13d0ae24135}

Step 3:

Now we have to point the boot entry to a boot loader file. (This file will be created later)
bcdedit /set {id of your entry} path \ubuntu.bin
You should get the output message if it is properly created.
The operation completed successfully.

bcdedit /set {75abe2b9-aefd-11e2-be9b-50465d38010d} path \ubuntu.bin
bcdedit /set {2b0e7fd2-41e5-11e0-94e5-d13d0ae24135} path \ubuntu.bin

Step 4:

We need to set the partition where the bootloader can find the file we referred to in the previous step. Since this is a Windows bootloader, it has to point towards a readable Windows partition (ie NTFS or FAT32).
bcdedit /set {id of your entry} device partition=C:
You should get the output message below if it is properly created
The operation completed successfully.

bcdedit /set {75abe2b9-aefd-11e2-be9b-50465d38010d} device partition=C:
bcdedit /set {2b0e7fd2-41e5-11e0-94e5-d13d0ae24135} device partition=C:

Step 5:

Now we add the entry to the bootmenu list. The following command will add it to the bottom of the list.
bcdedit /displayorder {id of your entry} /addlast
Again, you should get the same output message.
The operation completed successfully.

bcdedit /displayorder {75abe2b9-aefd-11e2-be9b-50465d38010d} /addlast
bcdedit /displayorder {2b0e7fd2-41e5-11e0-94e5-d13d0ae24135} /addlast


and finally, let’s specify how long the menu choices will be displayed:

bcdedit /timeout 30
bcdedit /timeout 10


Avançado para Windows 8 Secure Boot.




O URL específico do gadget não foi encontrado



ċ
ubuntu.bin
(1k)
Ademar Arvati Filho,
27 de abr de 2013 12:52
Comments