You are not logged in.

#1 2015-01-08 04:59:26

deus_deceit
Member
From: Greece
Registered: 2013-02-10
Posts: 33

Grub doesn't find OSs (UEFI installation)

I'm trying to install Arch Linux for the second time. Apparently Universe doesn't want me to do it easily not even once...

So I've done everything that the wiki says, and when it comes to installing grub, I install grub, os-prober and efibootmgr
then I do:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck --debug

This step finishes without errors.

Then I try to detect the OSs and create a grub.cfg file that contains them with no success....

grub-mkconfig -o /boot/grub/grub.cfg

I haven't saved the output of the command but something between the lines is this...

It tries to run something that has to do with lvm (I think it said it's a module) and it can't find that module? Or something like that <---< I have no clue what that is, but by reading on the internet it's something that I've never messed with so... it's unlikely to have it
Then I get errors/warnings about sda3 partition which is the Microsoft Windows 8.1 Reserved partition... and something about not naming right my ufs partition? Or something like that

If I uninstall os-prober then the script runs without warnings but it still doesn't find the OS not even arch linux, cfg file contains zero entries.
When I boot from grub_uefi boot entry, I get the grub minimal console (Which I don't know how to operate or what to do with it)

And last but not least... A fix to that "grub bug" was to disable submenus (Read that In this forum). I did it, I disabled submenus and ran grub-mkconfig again but nothing changed.

I know the info is very vague but I hope that someone with knowledge can figure out what those errors are and why it can't find the oses....

Ty in advance

Offline

#2 2015-01-08 11:57:13

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Grub doesn't find OSs (UEFI installation)

Did you chrooted into installation to set grub up?
What says

$ cat /etc/fstab

I'd like to point this out.


do it good first, it will be faster than do it twice the saint wink

Offline

#3 2015-01-08 21:24:28

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Grub doesn't find OSs (UEFI installation)

Please also post the output of:

# gdisk -l /dev/sda

Offline

#4 2015-01-11 15:47:26

deus_deceit
Member
From: Greece
Registered: 2013-02-10
Posts: 33

Re: Grub doesn't find OSs (UEFI installation)

@TheSaint Yes, I chrooted  into the installation...
@ Head_on_a_Stick, I'm not home right now but if you tell me what you want to see from that command, Maybe I can tell you by memory, I've run fdisk -l (Which I suspect shows a similar output) too many times so I've memorized my partitions.

I did solve the problem by using gummiboot instead of grub, but I'd still like to know why grub couldn't find the OSes... I'm VERY sure that I did all the steps of the installation right, I've memorized the steps AND I made sure to read them again before doing the installation.

Offline

#5 2015-01-11 15:59:52

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Grub doesn't find OSs (UEFI installation)

deus_deceit wrote:

@ Head_on_a_Stick, I'm not home right now but if you tell me what you want to see from that command

I wanted to see all the extant partitions with the partition type.

Offline

#6 2015-01-11 16:20:22

deus_deceit
Member
From: Greece
Registered: 2013-02-10
Posts: 33

Re: Grub doesn't find OSs (UEFI installation)

I wanted to see all the extant partitions with the partition type.

/dev/sda1 windows recovery environment
/dev/sda2 efi system
/dev/sda3 Microsoft reserved
/dev/sda4 Microsoft basic data
...sda5 windows recovery environment
sda6 linux swap
Sda7 linux filesystem /
Sda8 linux filesystem - home
Sda9 Microsoft basic data..
Wrote the above on my phone and I lost patience...

Offline

#7 2015-01-11 16:32:14

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Grub doesn't find OSs (UEFI installation)

Yeah don't worry about it -- if gummiboot works then the partition types were correct anyway: it must have been something else.

Offline

#8 2015-01-11 21:27:41

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Grub doesn't find OSs (UEFI installation)

deus_deceit wrote:

but I'd still like to know why grub couldn't find the OSes

Then you may need to know the 3 point to reach your installation.

  • grub partition addressing (set root= and insmod part_type  statements)

  • kernel command line

  • fstab mount point

If they're using UUID, check them up for coherence.


do it good first, it will be faster than do it twice the saint wink

Offline

#9 2015-08-18 06:19:32

CôteViande
Member
Registered: 2015-08-17
Posts: 8

Re: Grub doesn't find OSs (UEFI installation)

I have thé exact same problem. If i want to use gummiboot rather than grub, do i need to do something with grub first  (ie. Uninstall)?

Offline

#10 2015-08-19 15:52:58

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Grub doesn't find OSs (UEFI installation)

No, they can coexist but it need to start by UEFI, I think.


do it good first, it will be faster than do it twice the saint wink

Offline

#11 2015-08-22 17:54:10

heihei
Member
Registered: 2015-08-22
Posts: 1

Re: Grub doesn't find OSs (UEFI installation)

Hey guys, i had some trouble fixing this for myself. Current OS's Arch/Windows 8.1 with grub on SDA mbr. So i did following, under root, using nano, edited file /etc/grub.d/40_custom

menuentry "Windows 8.1" {
    echo "Loading Windows 8.1 on /dev/sda2..."
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    search --fs-uuid --no-floppy --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 2EFAC834FAC7F65D
    ntldr /bootmgr
}

Then, configured grub again with

grub-mkconfig -o /boot/grub/grub.cfg

And it works, i'm not sure if there's easier way than this but keep in mind that "2EFAC834FAC7F65D" is partition uuid.
Ask for help if needed, cheers

Offline

Board footer

Powered by FluxBB