From f6ede7f635bcf3a174c64e0d9d8325e157a51bd5 Mon Sep 17 00:00:00 2001 From: anh huynh Date: Mon, 22 Apr 2024 22:00:35 -0700 Subject: [PATCH 1/2] os-prober config --- grub/grub.cfg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/grub/grub.cfg b/grub/grub.cfg index 45b0722..7ee7975 100644 --- a/grub/grub.cfg +++ b/grub/grub.cfg @@ -370,14 +370,22 @@ menuentry "Fedora Live ISO" --class fedora --class linux { #----------------------------------------------# +# Windows +!menuentry 'Windows Boot Manager' --class windows { +! insmod part_gpt +! insmod fat +! search --no-floppy --fs-uuid --set=root YOUR_UUID +! chainloader /efi/Microsoft/Boot/bootmgfw.efi +!} + # Poweroff System menuentry 'Reboot Computer' --class restart { -reboot + reboot } # Reboot System menuentry 'Shutdown Computer' --class shutdown { -halt + halt } #== END Menu Entries ==========================# From 38858d1aba80af2be1d334415e3106751283d1eb Mon Sep 17 00:00:00 2001 From: anh huynh Date: Thu, 25 Apr 2024 19:29:14 -0700 Subject: [PATCH 2/2] minor typos and dosfstools note --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 083ae72..9a222a1 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,8 @@ mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows ``` > Ignore `lowercase labels` warnings. Remember to replace **`X`** with your USB device. +> The **dosfstools** package is required for the above command. + ## Install Grub2 on the USB Flash Drive We have successfully prepared our USB Flash Drive to install grub bootloader on it. Now let's install it, follow the steps below carefully. If you use the wrong syntax, you will receive an error stating _"Installation is impossible. Aborting"_ or something similar. @@ -166,7 +168,7 @@ Installing for x86_64-efi platform. Installation finished. No error reported. ``` -* You can varify the installation by listing the contents of `/mnt` +* You can verify the installation by listing the contents of `/mnt` ``` # ls -l /mnt/boot/grub total 80 @@ -357,7 +359,7 @@ For example, to use **Tela** theme, replace every instance of `Stylish` with the ### Boot ISO from installed Linux OS -Well, Now you know how to add a menu entry to boot an ISO file. You can boot the ISO file the same way from an installed Linux OS. It's helpful when you just want to try out a distro, or when you don't have an USB arround or when you want to install the ISO on a USB drive. All you need to do is, Add the menu entry to `/etc/grub.d/40_custom` file and update the grub config file. For Example : +Well, Now you know how to add a menu entry to boot an ISO file. You can boot the ISO file the same way from an installed Linux OS. It's helpful when you just want to try out a distro, or when you don't have an USB around or when you want to install the ISO on a USB drive. All you need to do is, Add the menu entry to `/etc/grub.d/40_custom` file and update the grub config file. For Example : ``` $ sudo vim /etc/grub.d/40_custom