Undo bcdedit set from uefi or ubuntu
I'm trying to install ubuntu in dual boot along with windows 10. I have two hard disks. Windows is already installed in disk0
. Then I installed ubuntu 18.04 LTS
in disk0
after windows. Both were working fine. But every time I restart, it used to load windows by default. To enable grub, I found the below command and executed in windows command prompt with administrator privilages
bcdedit /set {bootmgr} path EFIubuntugrubx64.efi
After this, whenever I reboot, it opens Grub command line.
If I go to bios/uefi, I can start ubuntu from there or I can select Windows Boot Manager. Ubuntu is working fine, but if I select Windows Boot Manager, again I get into Grub command line. So, I'm not able to boot windows at all.
How to fix this? I found a command to undo bcdedit
bcdedit /deletevalue {bootmgr} path EFIubuntugrubx64.efi
But to execute this, I need to be in windows right? So, I'm not able to execute this command. Is there a way to perform this action from bios/uefi (Asus computer) or from the ubuntu? (Ubuntu is booting fine)
Or is there any other method? I'm open to all suggestions.
Additional Info: Also, I installed grub2 and now I'm able to see grub bootloader after restart. Here, I get 2 options: ubuntu
and windows (from sda2)
. If I select Ubuntu, ubuntu loads fine. But if I select windows, I get an error saying invalid signature
Edit 01:
I ran boot-repair tool. The details are in this paste ubuntu
dual-boot grub2 uefi windows-10 boot-repair
add a comment |
I'm trying to install ubuntu in dual boot along with windows 10. I have two hard disks. Windows is already installed in disk0
. Then I installed ubuntu 18.04 LTS
in disk0
after windows. Both were working fine. But every time I restart, it used to load windows by default. To enable grub, I found the below command and executed in windows command prompt with administrator privilages
bcdedit /set {bootmgr} path EFIubuntugrubx64.efi
After this, whenever I reboot, it opens Grub command line.
If I go to bios/uefi, I can start ubuntu from there or I can select Windows Boot Manager. Ubuntu is working fine, but if I select Windows Boot Manager, again I get into Grub command line. So, I'm not able to boot windows at all.
How to fix this? I found a command to undo bcdedit
bcdedit /deletevalue {bootmgr} path EFIubuntugrubx64.efi
But to execute this, I need to be in windows right? So, I'm not able to execute this command. Is there a way to perform this action from bios/uefi (Asus computer) or from the ubuntu? (Ubuntu is booting fine)
Or is there any other method? I'm open to all suggestions.
Additional Info: Also, I installed grub2 and now I'm able to see grub bootloader after restart. Here, I get 2 options: ubuntu
and windows (from sda2)
. If I select Ubuntu, ubuntu loads fine. But if I select windows, I get an error saying invalid signature
Edit 01:
I ran boot-repair tool. The details are in this paste ubuntu
dual-boot grub2 uefi windows-10 boot-repair
add a comment |
I'm trying to install ubuntu in dual boot along with windows 10. I have two hard disks. Windows is already installed in disk0
. Then I installed ubuntu 18.04 LTS
in disk0
after windows. Both were working fine. But every time I restart, it used to load windows by default. To enable grub, I found the below command and executed in windows command prompt with administrator privilages
bcdedit /set {bootmgr} path EFIubuntugrubx64.efi
After this, whenever I reboot, it opens Grub command line.
If I go to bios/uefi, I can start ubuntu from there or I can select Windows Boot Manager. Ubuntu is working fine, but if I select Windows Boot Manager, again I get into Grub command line. So, I'm not able to boot windows at all.
How to fix this? I found a command to undo bcdedit
bcdedit /deletevalue {bootmgr} path EFIubuntugrubx64.efi
But to execute this, I need to be in windows right? So, I'm not able to execute this command. Is there a way to perform this action from bios/uefi (Asus computer) or from the ubuntu? (Ubuntu is booting fine)
Or is there any other method? I'm open to all suggestions.
Additional Info: Also, I installed grub2 and now I'm able to see grub bootloader after restart. Here, I get 2 options: ubuntu
and windows (from sda2)
. If I select Ubuntu, ubuntu loads fine. But if I select windows, I get an error saying invalid signature
Edit 01:
I ran boot-repair tool. The details are in this paste ubuntu
dual-boot grub2 uefi windows-10 boot-repair
I'm trying to install ubuntu in dual boot along with windows 10. I have two hard disks. Windows is already installed in disk0
. Then I installed ubuntu 18.04 LTS
in disk0
after windows. Both were working fine. But every time I restart, it used to load windows by default. To enable grub, I found the below command and executed in windows command prompt with administrator privilages
bcdedit /set {bootmgr} path EFIubuntugrubx64.efi
After this, whenever I reboot, it opens Grub command line.
If I go to bios/uefi, I can start ubuntu from there or I can select Windows Boot Manager. Ubuntu is working fine, but if I select Windows Boot Manager, again I get into Grub command line. So, I'm not able to boot windows at all.
How to fix this? I found a command to undo bcdedit
bcdedit /deletevalue {bootmgr} path EFIubuntugrubx64.efi
But to execute this, I need to be in windows right? So, I'm not able to execute this command. Is there a way to perform this action from bios/uefi (Asus computer) or from the ubuntu? (Ubuntu is booting fine)
Or is there any other method? I'm open to all suggestions.
Additional Info: Also, I installed grub2 and now I'm able to see grub bootloader after restart. Here, I get 2 options: ubuntu
and windows (from sda2)
. If I select Ubuntu, ubuntu loads fine. But if I select windows, I get an error saying invalid signature
Edit 01:
I ran boot-repair tool. The details are in this paste ubuntu
dual-boot grub2 uefi windows-10 boot-repair
dual-boot grub2 uefi windows-10 boot-repair
edited Jan 18 at 13:48
Nagabhushan S N
asked Jan 18 at 13:20
Nagabhushan S NNagabhushan S N
1338
1338
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110876%2fundo-bcdedit-set-from-uefi-or-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110876%2fundo-bcdedit-set-from-uefi-or-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown