GRUB installing on Windows 10 boot partition instead of requested boot partition
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GRUB installing on Windows 10 boot partition instead of requested boot partition
I wanted to install Linux Mint on separate SSD. I was afraid that Linux Mint installer will install GRUB to Windows ESP by default, so I disabled all drives except target drive. The installation completed successfully. After I enabled all drives back on and upgrading all packages(including GRUB), it now shows GRUB boot menu. I was scared that GRUB actually installed on Windows ESP.
How to make it so GRUB will upgrade on ESP in second SSD not in first?
I'm not familiar with the Mint installer but I know that the Ubuntu Ubiquity installer will install the grub boot files to the first EFI partition it finds. I don't know if the Mint installer does this. It however, would have simply created a separate directory in that partition and would not change or overwrite the windows files.
Quote:
How to make it so GRUB will upgrade on ESP in second SSD not in first?
Are you referring to the command: sudo update-grub? Grub won't be able to update files on the windows EFI because there are no Grub files there to update. You would first need to install Grub there which you don't want to do.
If you're paranoid about this, disconnect/disable the windows drive before updating Grub.
Do you have the Mint drive set to first boot in the BIOS Firmware? Do you have a windows entry in the Grub menu? Does it boot?
Do you have the Mint drive set to first boot in the BIOS Firmware? Do you have a windows entry in the Grub menu? Does it boot?
I usually set Windows to first boot. Also it shows in GRUB menu as Windows 10 (on /dev/sdc1). Also when I try to boot Windows by choosing first SSD via UEFI boot menu, it doesn't boot with a winload.exe error.
I usually set Windows to first boot. Also it shows in GRUB menu as Windows 10 (on /dev/sdc1). Also when I try to boot Windows by choosing first SSD via UEFI boot menu, it doesn't boot with a winload.exe error.
May be the result of two efi partitions, see post #4
Does that mean you set the windows drive to first boot in the BIOS firmware? Does it boot?
Quote:
Also it shows in GRUB menu as Windows 10 (on /dev/sdc1)
Again, does it boot?
Quote:
Also when I try to boot Windows by choosing first SSD via UEFI boot menu, it doesn't boot with a winload.exe error.
Is that the boot from EFI file option? If there is a winload.exe error, you need some windows tool to repair that corrupted or missing file, whatever the error is.
Have you mounted the different drives EFI partitions from Mint to see what directories and files are in each?
In your initial post, the question was whether the Mint installer would install on the windows drive or the Mint drive. Since you had the windows drive disconnected during the install of Mint, it would not have been possible for the Mint installer to install Grub on the windows drive. Mount sdc1 and look at sdd1 from Mint and you should see windows files on sdc1 and Mint files on sdd1.
As far as updating Grub, I don't see how Grub could update files on windows (sdc1) if it is only installed on sdd1. If this is the case, when you want to switch from windows to Mint or vice versa, you would need to do it in the BIOS firmware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.