Make GRUB boot Windows from separate disk drive

I have ubuntu with grub on my M2 SSD. I need a Windows installation also. Can I install Windows on a SATA SSD and then somehow make grub able to boot it?
Add Comment
2 Answer(s)
Yes, it is possible to boot Windows from a separate disk using GRUB. Here are general steps: 1. Install Windows on your SATA SSD. 2. After installing Windows, boot into your Ubuntu installation. 3. Open a terminal and update the GRUB boot entries by running `sudo update-grub`. This command should detect all the OS installations on all attached drives and add them to the GRUB boot menu. Here's the explanation: `sudo` allows you to run commands as the root user, `update-grub` is a script that uses `os-prober` to detect OS installations and regenerate the GRUB configuration file (`/boot/grub/grub.cfg`), populating it with entries for each OS it finds. Things to note: 1. Ensure Secure Boot is disabled in your BIOS settings as GRUB might not be able to boot Windows if it's enabled. 2. If GRUB still doesn't show the Windows boot option even after running `sudo update-grub`, manually add a custom menu entry for your Windows installation in the `/etc/grub.d/40_custom` file. 3. Always backup your data before making these changes. It's unlikely, but things can go wrong. 4. If you install Windows after Ubuntu, Windows might override the MBR and might not recognize Ubuntu. You might need to repair your grub. Good luck, and remember: Always make backups before making significant system changes.
Answered on July 18, 2023.
Add Comment
Yes, you can. (1) Install Windows on your separate drive. During installation, make sure your Ubuntu drive is unplugged to prevent Windows from overwriting GRUB. (2) Once Windows is installed, plug your Ubuntu drive back in. (3) Now, you want GRUB to recognize your new Windows install. (4) Boot into Ubuntu, open a Terminal and update the GRUB configuration: ``` sudo update-grub ``` This command will make GRUB probe for OS installations on your system, and rewrite its configuration files accordingly. (5) On your next reboot, you should see Windows listed as an option in the GRUB menu. Remember to always backup your important data before doing any major changes, like installing a new OS.
Answered on July 26, 2023.
Add Comment

Your Answer

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