Add Windows 10 to GRUB OS list

I usually run Ubuntu and Windows on the same computer, in order to be able to select which OS I want to boot, I use GRUB. Here we’re going to learn how to add Windows 10 to the GRUB OS list.

Using your Ubuntu OS you need to know which partition is the…


This content originally appeared on DEV Community and was authored by Sergio Peris

I usually run Ubuntu and Windows on the same computer, in order to be able to select which OS I want to boot, I use GRUB. Here we're going to learn how to add Windows 10 to the GRUB OS list.

Using your Ubuntu OS you need to know which partition is the Windows EFI located, mine is at /dev/sda2.

Once you know it, you should run the following command adapting it to your partition.

sudo blkid /dev/sda2

This command will allow you to know the UUID of your Windows EFI partition.

Next, we need to edit the /etc/grub.d/40_custom file in order to add the Windows 10 entry.

sudo vi /etc/grub.d/40_custom

Here is the entry you should add, change WINDOWS_EFI_PARTITION_UUID with the value you obtained previously.

menuentry "Windows 10" --class windows --class os {
   insmod ntfs
   search --no-floppy --set=root --fs-uuid WINDOWS_EFI_PARTITION_UUID
   ntldr /bootmgr
}

Sometimes the GRUB menu is hidden by default on boot, you should enable it changing the GRUB configuration.

sudo vi /etc/default/grub

You should set the timeout seconds, and comment out the default style.

GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=hidden

Once you've made all the changes, you should apply them by running the following command.

sudo update-grub


This content originally appeared on DEV Community and was authored by Sergio Peris


Print Share Comment Cite Upload Translate Updates
APA

Sergio Peris | Sciencx (2024-10-25T14:18:26+00:00) Add Windows 10 to GRUB OS list. Retrieved from https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/

MLA
" » Add Windows 10 to GRUB OS list." Sergio Peris | Sciencx - Friday October 25, 2024, https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/
HARVARD
Sergio Peris | Sciencx Friday October 25, 2024 » Add Windows 10 to GRUB OS list., viewed ,<https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/>
VANCOUVER
Sergio Peris | Sciencx - » Add Windows 10 to GRUB OS list. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/
CHICAGO
" » Add Windows 10 to GRUB OS list." Sergio Peris | Sciencx - Accessed . https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/
IEEE
" » Add Windows 10 to GRUB OS list." Sergio Peris | Sciencx [Online]. Available: https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/. [Accessed: ]
rf:citation
» Add Windows 10 to GRUB OS list | Sergio Peris | Sciencx | https://www.scien.cx/2024/10/25/add-windows-10-to-grub-os-list/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.