[haiku-development] Re: Unable to add the entry in grub.

  • From: "Linuxero" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mageia" for DMARC)
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 01 Jul 2019 11:16:52 +0200

On 2019-07-01 11:03, Preetpal Kaur wrote:

On Mon, Jul 1, 2019 at 12:18 PM Linuxero <dmarc-noreply@xxxxxxxxxxxxx> wrote:

On 2019-07-01 08:32, Preetpal Kaur wrote:

1. Where did you get this UUID, (bbb6da96-8ddf-4f8a-94e7-1d4de9ee2d0f),
from?

I didn;t get this UUID from terminal that's why I use the GParted. I
have again installed haiku so the UUID changed to
c17e01df-5f1b-4563-85f2-3334fa9863d0


You shouldn't use this UUID

2. What is the UUID of your ESP (EFI System Partition) and what is the
file system of that partition?

UUID of EFI System Partition is 5347-7729 and the file system is
fat32. As shown in the picture below:
https://imgur.com/a/KEbFYaf

Use this UUID instead: 5347-7729
A sample GRUB Entry would then be:

menuentry 'Haiku' {
        insmod part_gpt
        insmod fat
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  5347-7729
        else
          search --no-floppy --fs-uuid --set=root 5347-7729
        fi
        chainloader /EFI/haiku/BOOTX64.efi
}

If you have your Haiku's BOOTX64.efi under /EFI/haiku in the EFI partition, /dev/sda3 in your case, the above entry should boot Haiku. Of course you may have it under /EFI/boot/BOOTX64.efi, but make sure to change the entry accordingly.


3. Example: Note that the UUID is: 1234-A012 as my ESP is formatted as
FAT32 and it is GUID.

menuentry 'Haiku' {
         insmod part_gpt
         insmod fat
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root  1234-A012
         else
           search --no-floppy --fs-uuid --set=root 1234-A012
         fi
         chainloader /EFI/haiku/BOOTX64.efi
}


Since you are using MBR partitioning scheme, I would assume that your
/EFI is on the first partition. Is it FAT32, NTFS or what? Guessing from
your UUID it is nothing like MS partition, so I am not really sure where
do you have your Haiku's BOOTX64.efi!!

I am using gpt partitioning scheme. And it is FAT32.


In your previous email you used insmod part_msdos, which makes me only deduce that you are using MBR partitioning scheme!!

It would help if you provide an idea about your disk partitions and how
is GRUB2 set up.

Disk partitions:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0 151.2M  1 loop /snap/gnome-3-28-1804/55
loop1    7:1    0  1008K  1 loop /snap/gnome-logs/57
loop2    7:2    0     4M  1 loop /snap/gnome-calculator/406
loop3    7:3    0 151.2M  1 loop /snap/gnome-3-28-1804/59
loop4    7:4    0  35.3M  1 loop /snap/gtk-common-themes/1198
loop5    7:5    0   3.7M  1 loop /snap/gnome-system-monitor/91
loop6    7:6    0 297.1M  1 loop /snap/pycharm-community/128
loop7    7:7    0  14.8M  1 loop /snap/gnome-characters/284
loop8    7:8    0    54M  1 loop /snap/core18/1013
loop9    7:9    0 218.9M  1 loop /snap/gimp/165
loop10   7:10   0 219.1M  1 loop /snap/gimp/189
loop11   7:11   0  1008K  1 loop /snap/gnome-logs/61
loop12   7:12   0  53.7M  1 loop /snap/core18/970
loop13   7:13   0  14.8M  1 loop /snap/gnome-characters/288
loop14   7:14   0     4M  1 loop /snap/gnome-calculator/352
loop15   7:15   0   3.7M  1 loop /snap/gnome-system-monitor/87
loop16   7:16   0 140.7M  1 loop /snap/gnome-3-26-1604/88
loop17   7:17   0 202.3M  1 loop /snap/vlc/770
loop18   7:18   0  88.5M  1 loop /snap/core/7270
loop19   7:19   0  34.8M  1 loop /snap/gtk-common-themes/1122
loop20   7:20   0  14.5M  1 loop /snap/gnome-logs/45
loop21   7:21   0  88.4M  1 loop /snap/core/7169
loop22   7:22   0 202.9M  1 loop /snap/vlc/1049
loop23   7:23   0   297M  1 loop /snap/pycharm-community/132
loop24   7:24   0 140.7M  1 loop /snap/gnome-3-26-1604/86
loop25   7:25   0  34.6M  1 loop /snap/gtk-common-themes/818
loop26   7:26   0   2.3M  1 loop /snap/gnome-calculator/260
sda      8:0    0 931.5G  0 disk
├─sda1   8:1    0 143.1G  0 part /
├─sda2   8:2    0 190.8G  0 part /home
├─sda3   8:3    0     1G  0 part /boot/efi
├─sda4   8:4    0  87.9G  0 part
└─sda7   8:7    0  11.5G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom
--
Preetpal Kaur
https://preetpalk.wordpress.com/
https://github.com/Preetpalkaur3701
https://www.youtube.com/channel/UCcfd0YJpm-5YTrcX2XEq_Jg?view_as=subscriber

--
Be good, be happy and never let the lovely smile on your nice lips fade away
Beatitude Sham; There are the angels of God with their wings spread wide
open all over Sham.
Indeed; when wheedling blandishments prevail, faith dwells in Sham.
Oh God; bestow our Sham with Your blessings.

Other related posts: