Grub: adding Windows 10
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I just finished installing Linux Mint on a separate drive. I now got three drives: one with Windows 10, one with Linux Mint, and one with just data. Now I want to use Grub to switch between operating systems.
However, Grub won't detect/load Windows 10.
- I have tried using
sudo os-prober
, which does not return anything - I have tried to create (a lot) of manual menu entries for Grub. But all return something like
No device with such UUID
orNo such partition
(I selected the second partition with label='EFI system')
Also I'm not sure whether I'm supposed to turn off the windows bootloader.
Fast startup for Windows 10 is also turned off.
Any help is appreciated.
linux-mint windows dual-boot grub
add a comment |
I just finished installing Linux Mint on a separate drive. I now got three drives: one with Windows 10, one with Linux Mint, and one with just data. Now I want to use Grub to switch between operating systems.
However, Grub won't detect/load Windows 10.
- I have tried using
sudo os-prober
, which does not return anything - I have tried to create (a lot) of manual menu entries for Grub. But all return something like
No device with such UUID
orNo such partition
(I selected the second partition with label='EFI system')
Also I'm not sure whether I'm supposed to turn off the windows bootloader.
Fast startup for Windows 10 is also turned off.
Any help is appreciated.
linux-mint windows dual-boot grub
Two things: make sure you have disabled legacy BIOS mode (CSM), and check that the EFI System Partition has the right UUID. It's not enough to label it 'EFI System'.
– Johan Myréen
Jul 24 '17 at 11:07
@JohanMyréen The BIOS settings show that its booting inLegacy+UEFI
mode. If I try to change this mode to justUEFI
, all drives disappear except from the windows boot-loader.
– Lars
Jul 24 '17 at 11:15
In that case, Windows is probably installed in EFI mode, while Mint isn't. It's actually not hugely difficult to reconfigure a Linux system to boot in EFI mode, but that's somewhat beyond the topic of this question.
– Austin Hemmelgarn
Jul 24 '17 at 11:36
The mode is either legacy or UEFI. If you are using UEFI mode, then you should use GPT partitioning, else DOS (MBR) partitions. If the BIOS setting says "legacy" and you haven't changed that, that's OK too, Windows and Linux can both boot in legacy mode. The important thing is that both OSs agree upon the mode.
– Johan Myréen
Jul 24 '17 at 11:37
I think @AustinHemmelgarn might be right. Windows is installed in EFI, and Mint is running in Legacy. Is there a way to fix this?
– Lars
Jul 24 '17 at 11:40
add a comment |
I just finished installing Linux Mint on a separate drive. I now got three drives: one with Windows 10, one with Linux Mint, and one with just data. Now I want to use Grub to switch between operating systems.
However, Grub won't detect/load Windows 10.
- I have tried using
sudo os-prober
, which does not return anything - I have tried to create (a lot) of manual menu entries for Grub. But all return something like
No device with such UUID
orNo such partition
(I selected the second partition with label='EFI system')
Also I'm not sure whether I'm supposed to turn off the windows bootloader.
Fast startup for Windows 10 is also turned off.
Any help is appreciated.
linux-mint windows dual-boot grub
I just finished installing Linux Mint on a separate drive. I now got three drives: one with Windows 10, one with Linux Mint, and one with just data. Now I want to use Grub to switch between operating systems.
However, Grub won't detect/load Windows 10.
- I have tried using
sudo os-prober
, which does not return anything - I have tried to create (a lot) of manual menu entries for Grub. But all return something like
No device with such UUID
orNo such partition
(I selected the second partition with label='EFI system')
Also I'm not sure whether I'm supposed to turn off the windows bootloader.
Fast startup for Windows 10 is also turned off.
Any help is appreciated.
linux-mint windows dual-boot grub
linux-mint windows dual-boot grub
edited Jul 24 '17 at 11:16
Lars
asked Jul 24 '17 at 10:00
LarsLars
62
62
Two things: make sure you have disabled legacy BIOS mode (CSM), and check that the EFI System Partition has the right UUID. It's not enough to label it 'EFI System'.
– Johan Myréen
Jul 24 '17 at 11:07
@JohanMyréen The BIOS settings show that its booting inLegacy+UEFI
mode. If I try to change this mode to justUEFI
, all drives disappear except from the windows boot-loader.
– Lars
Jul 24 '17 at 11:15
In that case, Windows is probably installed in EFI mode, while Mint isn't. It's actually not hugely difficult to reconfigure a Linux system to boot in EFI mode, but that's somewhat beyond the topic of this question.
– Austin Hemmelgarn
Jul 24 '17 at 11:36
The mode is either legacy or UEFI. If you are using UEFI mode, then you should use GPT partitioning, else DOS (MBR) partitions. If the BIOS setting says "legacy" and you haven't changed that, that's OK too, Windows and Linux can both boot in legacy mode. The important thing is that both OSs agree upon the mode.
– Johan Myréen
Jul 24 '17 at 11:37
I think @AustinHemmelgarn might be right. Windows is installed in EFI, and Mint is running in Legacy. Is there a way to fix this?
– Lars
Jul 24 '17 at 11:40
add a comment |
Two things: make sure you have disabled legacy BIOS mode (CSM), and check that the EFI System Partition has the right UUID. It's not enough to label it 'EFI System'.
– Johan Myréen
Jul 24 '17 at 11:07
@JohanMyréen The BIOS settings show that its booting inLegacy+UEFI
mode. If I try to change this mode to justUEFI
, all drives disappear except from the windows boot-loader.
– Lars
Jul 24 '17 at 11:15
In that case, Windows is probably installed in EFI mode, while Mint isn't. It's actually not hugely difficult to reconfigure a Linux system to boot in EFI mode, but that's somewhat beyond the topic of this question.
– Austin Hemmelgarn
Jul 24 '17 at 11:36
The mode is either legacy or UEFI. If you are using UEFI mode, then you should use GPT partitioning, else DOS (MBR) partitions. If the BIOS setting says "legacy" and you haven't changed that, that's OK too, Windows and Linux can both boot in legacy mode. The important thing is that both OSs agree upon the mode.
– Johan Myréen
Jul 24 '17 at 11:37
I think @AustinHemmelgarn might be right. Windows is installed in EFI, and Mint is running in Legacy. Is there a way to fix this?
– Lars
Jul 24 '17 at 11:40
Two things: make sure you have disabled legacy BIOS mode (CSM), and check that the EFI System Partition has the right UUID. It's not enough to label it 'EFI System'.
– Johan Myréen
Jul 24 '17 at 11:07
Two things: make sure you have disabled legacy BIOS mode (CSM), and check that the EFI System Partition has the right UUID. It's not enough to label it 'EFI System'.
– Johan Myréen
Jul 24 '17 at 11:07
@JohanMyréen The BIOS settings show that its booting in
Legacy+UEFI
mode. If I try to change this mode to just UEFI
, all drives disappear except from the windows boot-loader.– Lars
Jul 24 '17 at 11:15
@JohanMyréen The BIOS settings show that its booting in
Legacy+UEFI
mode. If I try to change this mode to just UEFI
, all drives disappear except from the windows boot-loader.– Lars
Jul 24 '17 at 11:15
In that case, Windows is probably installed in EFI mode, while Mint isn't. It's actually not hugely difficult to reconfigure a Linux system to boot in EFI mode, but that's somewhat beyond the topic of this question.
– Austin Hemmelgarn
Jul 24 '17 at 11:36
In that case, Windows is probably installed in EFI mode, while Mint isn't. It's actually not hugely difficult to reconfigure a Linux system to boot in EFI mode, but that's somewhat beyond the topic of this question.
– Austin Hemmelgarn
Jul 24 '17 at 11:36
The mode is either legacy or UEFI. If you are using UEFI mode, then you should use GPT partitioning, else DOS (MBR) partitions. If the BIOS setting says "legacy" and you haven't changed that, that's OK too, Windows and Linux can both boot in legacy mode. The important thing is that both OSs agree upon the mode.
– Johan Myréen
Jul 24 '17 at 11:37
The mode is either legacy or UEFI. If you are using UEFI mode, then you should use GPT partitioning, else DOS (MBR) partitions. If the BIOS setting says "legacy" and you haven't changed that, that's OK too, Windows and Linux can both boot in legacy mode. The important thing is that both OSs agree upon the mode.
– Johan Myréen
Jul 24 '17 at 11:37
I think @AustinHemmelgarn might be right. Windows is installed in EFI, and Mint is running in Legacy. Is there a way to fix this?
– Lars
Jul 24 '17 at 11:40
I think @AustinHemmelgarn might be right. Windows is installed in EFI, and Mint is running in Legacy. Is there a way to fix this?
– Lars
Jul 24 '17 at 11:40
add a comment |
1 Answer
1
active
oldest
votes
If you're booting in BIOS mode, there's not much you can do to make this work reliably (at least, last I knew there wasn't a reliable way without having separate hard drives for each install).
If you're booting in UEFI mode though, it largely consists of creating a GRUB entry to chainload /EFI/Microsoft/Boot/bootmgfw.efi
from your EFI system partition. You'll also need to modify what Windows thinks the bootloader should be (or make your EFI variables read-only (only some firmwares let you do this)), otherwise Windows will update the EFI variables to point at it's own bootloader as the default every time you boot into Windows. I'm not 100% certain about the exact command you need to pull this off (it's been too long since I had to set up my own system), except that it's done with bcdedit
.
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then runchroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably calledgrub-efi-x86_64
or something similar).
– Austin Hemmelgarn
Jul 24 '17 at 12:27
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f381381%2fgrub-adding-windows-10%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you're booting in BIOS mode, there's not much you can do to make this work reliably (at least, last I knew there wasn't a reliable way without having separate hard drives for each install).
If you're booting in UEFI mode though, it largely consists of creating a GRUB entry to chainload /EFI/Microsoft/Boot/bootmgfw.efi
from your EFI system partition. You'll also need to modify what Windows thinks the bootloader should be (or make your EFI variables read-only (only some firmwares let you do this)), otherwise Windows will update the EFI variables to point at it's own bootloader as the default every time you boot into Windows. I'm not 100% certain about the exact command you need to pull this off (it's been too long since I had to set up my own system), except that it's done with bcdedit
.
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then runchroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably calledgrub-efi-x86_64
or something similar).
– Austin Hemmelgarn
Jul 24 '17 at 12:27
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
add a comment |
If you're booting in BIOS mode, there's not much you can do to make this work reliably (at least, last I knew there wasn't a reliable way without having separate hard drives for each install).
If you're booting in UEFI mode though, it largely consists of creating a GRUB entry to chainload /EFI/Microsoft/Boot/bootmgfw.efi
from your EFI system partition. You'll also need to modify what Windows thinks the bootloader should be (or make your EFI variables read-only (only some firmwares let you do this)), otherwise Windows will update the EFI variables to point at it's own bootloader as the default every time you boot into Windows. I'm not 100% certain about the exact command you need to pull this off (it's been too long since I had to set up my own system), except that it's done with bcdedit
.
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then runchroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably calledgrub-efi-x86_64
or something similar).
– Austin Hemmelgarn
Jul 24 '17 at 12:27
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
add a comment |
If you're booting in BIOS mode, there's not much you can do to make this work reliably (at least, last I knew there wasn't a reliable way without having separate hard drives for each install).
If you're booting in UEFI mode though, it largely consists of creating a GRUB entry to chainload /EFI/Microsoft/Boot/bootmgfw.efi
from your EFI system partition. You'll also need to modify what Windows thinks the bootloader should be (or make your EFI variables read-only (only some firmwares let you do this)), otherwise Windows will update the EFI variables to point at it's own bootloader as the default every time you boot into Windows. I'm not 100% certain about the exact command you need to pull this off (it's been too long since I had to set up my own system), except that it's done with bcdedit
.
If you're booting in BIOS mode, there's not much you can do to make this work reliably (at least, last I knew there wasn't a reliable way without having separate hard drives for each install).
If you're booting in UEFI mode though, it largely consists of creating a GRUB entry to chainload /EFI/Microsoft/Boot/bootmgfw.efi
from your EFI system partition. You'll also need to modify what Windows thinks the bootloader should be (or make your EFI variables read-only (only some firmwares let you do this)), otherwise Windows will update the EFI variables to point at it's own bootloader as the default every time you boot into Windows. I'm not 100% certain about the exact command you need to pull this off (it's been too long since I had to set up my own system), except that it's done with bcdedit
.
answered Jul 24 '17 at 11:35
Austin HemmelgarnAustin Hemmelgarn
6,25111119
6,25111119
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then runchroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably calledgrub-efi-x86_64
or something similar).
– Austin Hemmelgarn
Jul 24 '17 at 12:27
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
add a comment |
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then runchroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably calledgrub-efi-x86_64
or something similar).
– Austin Hemmelgarn
Jul 24 '17 at 12:27
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
Both operating systems are installed on separate hard drives.
– Lars
Jul 24 '17 at 11:42
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
If that's the case, you have two options, either get Windows converted to legacy boot mode, and have GRUB chainload the MBR of that hard drive, or convert Linux to UEFI mode and use what I recommended above for that.
– Austin Hemmelgarn
Jul 24 '17 at 11:54
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
Could you elaborate on how to convert Linux to UEFI?
– Lars
Jul 24 '17 at 12:07
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then run
chroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably called grub-efi-x86_64
or something similar).– Austin Hemmelgarn
Jul 24 '17 at 12:27
To start with, you're going to need a LiveCD that can be booted in UEFI mode. SystemRescueCD is what I would recommend for this (it's designed for stuff like this). From there, you need to mount your root filesystem, bind mount /sys and /dev in the appropriate location in the root filesystem, as well as mounting a new instance of /proc in the appropriate location, then run
chroot /path/to/your/root /bin/bash
and install the EFI version of grub through the package manager (probably called grub-efi-x86_64
or something similar).– Austin Hemmelgarn
Jul 24 '17 at 12:27
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
I decided just to use the BIOS to switch to my Linux drive. Switching the Linux OS to UEFI seems a bit too difficult for a novice like me. Maybe one day.
– Lars
Jul 24 '17 at 13:58
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f381381%2fgrub-adding-windows-10%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
Two things: make sure you have disabled legacy BIOS mode (CSM), and check that the EFI System Partition has the right UUID. It's not enough to label it 'EFI System'.
– Johan Myréen
Jul 24 '17 at 11:07
@JohanMyréen The BIOS settings show that its booting in
Legacy+UEFI
mode. If I try to change this mode to justUEFI
, all drives disappear except from the windows boot-loader.– Lars
Jul 24 '17 at 11:15
In that case, Windows is probably installed in EFI mode, while Mint isn't. It's actually not hugely difficult to reconfigure a Linux system to boot in EFI mode, but that's somewhat beyond the topic of this question.
– Austin Hemmelgarn
Jul 24 '17 at 11:36
The mode is either legacy or UEFI. If you are using UEFI mode, then you should use GPT partitioning, else DOS (MBR) partitions. If the BIOS setting says "legacy" and you haven't changed that, that's OK too, Windows and Linux can both boot in legacy mode. The important thing is that both OSs agree upon the mode.
– Johan Myréen
Jul 24 '17 at 11:37
I think @AustinHemmelgarn might be right. Windows is installed in EFI, and Mint is running in Legacy. Is there a way to fix this?
– Lars
Jul 24 '17 at 11:40