Add grub to UEFI after installation

Hey guys.

I just installed manjaro and used manual partitioning. It is ok but I just forgot to add the uefi partition. Now the system startes the Win7 automatically and grub doesn’t show up! Nevetheless, I can boot into grub using F12 and manually choosing my hard drive.

Now, any solutions? Tnx

See if you can boot your new system via the live cd. At welcome screen select “Detect EFI devices” and see if your install shows up. If so select it.

You’ll then be in your new install. Install grub via Pacman.

If that doesn’t solve all problems there are other additional steps we can take.

launch with USB installer
open a terminal

manjaro-chroot -a
fdisk -l ( check /boot/efi )
grub-install --target=x86_64-efi --efi-directory=/install/boot/efi --bootloader-id=manjaro --boot-directory=/install/boot --recheck --debug
update-grub
mkinitcpio -P
exit (leave chroot)

then reboot

See this. Make sure you boot up installed OS using a few posts above.

It may be easier for you to reinstall if you are unsure.
Whatever, good luck.

I can boot into Manjaro using F12 and manually choosing HDD in BIOS section (not the UEFI section).

Well, and here I am usually looking critically at other’s reading comp skills :smiley:
]

The problem remains though. I still dont see any windows boot options in grub. I am no expert, but in the EFI partition, the windows boot files are in a separate folder. Does that make any difference?

What are the boot files and and in what folder?
Then boot up Manjaro and provide the following at terminal. Full info, all disks. Provide input command and any error message if any.

LANG=C
sudo parted -l
sudo blkid
efibootmgr -v
findmnt -s
findmnt /boot/efi
findmnt /boot

Also what is computer make and model.

In the figure above, the windows boot files are in the ‘efi’ folder. I can provide you with a tree if you want. My system is a Dell Vostro 5470.

parted -l:

Model: ATA WDC WD5000LPVX-7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name  Flags
 1      20.5kB  316MB  316MB   ntfs                  msftdata
 2      316MB   420MB  105MB   fat32           EF    boot, esp
 3      420MB   555MB  134MB                   Mi    msftres
 4      555MB   122GB  122GB   ntfs                  msftdata
 7      122GB   138GB  15.7GB  ext4
 8      138GB   184GB  45.9GB  ext4
 9      184GB   196GB  11.7GB  linux-swap(v1)
 5      196GB   484GB  289GB   ntfs                  msftdata
 6      484GB   500GB  15.8GB  ntfs                  msftdata

blkid:

/dev/sda1: LABEL="Recovery" UUID="76DCA9F8DCA9B2B3" TYPE="ntfs" PARTUUID="3caf58dc-1daa-4e3a-921a-7a57f2ec076a"
/dev/sda2: UUID="64AB-7C80" TYPE="vfat" PARTLABEL="EF" PARTUUID="039d779c-ae5c-4c4e-92c9-4312eff405cc"
/dev/sda4: UUID="C0B4AFEEB4AFE55E" TYPE="ntfs" PARTUUID="d642a7d4-e94a-4cd3-815a-33265c44f881"
/dev/sda5: UUID="01D382351756ABF0" TYPE="ntfs" PARTUUID="564f36df-cc3b-6bcb-a6d5-179443f1209a"
/dev/sda6: LABEL="PBR Image" UUID="D020415220414128" TYPE="ntfs" PARTUUID="3fdcdae3-3e3b-46de-ab41-79787ae15577"
/dev/sda7: UUID="e12ba4fe-1338-474a-bbfb-7189cc2b796d" TYPE="ext4" PARTUUID="a60c4478-4be4-4349-94e2-802a76ca2344"
/dev/sda8: UUID="d132460d-c5a0-412d-9d9f-4d065e8578cf" TYPE="ext4" PARTUUID="73a3ccac-36d7-4e2e-8a6f-5b02363228aa"
/dev/sda9: UUID="c5e254d0-d892-44e0-8a28-5559ec64661c" TYPE="swap" PARTUUID="2a4305ed-efda-49b8-a424-e8f86a8a8b91"
/dev/sda3: PARTLABEL="Mi" PARTUUID="cf82e41f-75f6-4821-9149-ecace594bdbc"

efibootmgr -v:

EFI variables are not supported on this system.

findmnt -s:

TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=64AB-7C80                            vfat   defaults,noatime
/         UUID=e12ba4fe-1338-474a-bbfb-7189cc2b796d ext4   defaults,noatime
/home     UUID=d132460d-c5a0-412d-9d9f-4d065e8578cf ext4   defaults,noatime
swap      UUID=c5e254d0-d892-44e0-8a28-5559ec64661c swap   defaults,noatime

findmnt /boot/efi:

TARGET    SOURCE    FSTYPE OPTIONS
/boot/efi /dev/sda2 vfat   rw,noatime,fmask=0022,dmask=0022,codepage=437,iochars

findmnt /boot:

That’s the problem here. It is not in fact (for emphasis) installed in uefi. And you’re not booting it up in uefi.

To be sure (though I think you most likely are), first check if your windows is uefi.
Use windows (as admim) command “msinfo32”.
Verify it is in fact in uefi. We have to be very sure (even, as said, most likely it is).

When confirmed windows is in uefi, then boot up Manjaro in uefi [1] and do …okay, just use this link and just to be sure, at step 6, do the additional commands as well.

If you have more questions, it’s okay to ask. Be sure.
[1] - same link. Oh… link is in many places here.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.