Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

grub-efi install on multiple ESPs.

10 views
Skip to first unread message

Ram Ramesh

unread,
Dec 23, 2023, 5:50:05 PM12/23/23
to
Hi,

  I have debian bookworm installed on a raid1 made from /dev/nvme0n1p3  and  /dev/nvme1n1p3.  Here are the partitions on the two nvme.

/dev/nvme0n1p1 = /dev/nvme1n1p1  = 7mb ef02
/dev/nvme0n1p2 = /dev/nvme1n1p2  = 7mb ef00 (Two distinct ESPs on two different nvmes)
/dev/nvme0n1p3 = /dev/nvme1n1p3  = 7mb 8300 (Linux RAID)

I am currently using /dev/nvme1n1p2 as /boot/efi and groub-efi is installed there.

I like to also install grub-efi on /dev/nvme0n1p1 to mimic RAID1. My Google search does not give me a clear way to do it.  There are a lot explanation on how certain things are to be done. Nothing succinctly describes the grub-install step. Since this is boot and grub, I like to be sure before I mess up some uefi files and make the system unbootable.

Can I mount the second esp on /mnt and do a simple grub-install --efi-directory=/mnt? Or should I undo current /boot/efi mount and mount second esp there and do a grub-install?

I was going to try a dry-run option, but I do not see one in "man grub-install."

Regards
Ramesh

Nicolas George

unread,
Dec 23, 2023, 6:00:06 PM12/23/23
to
Ram Ramesh (12023-12-23):
>   I have debian bookworm installed on a raid1 made from /dev/nvme0n1p3  and 
> /dev/nvme1n1p3.  Here are the partitions on the two nvme.
>
> /dev/nvme0n1p1 = /dev/nvme1n1p1  = 7mb ef02
> /dev/nvme0n1p2 = /dev/nvme1n1p2  = 7mb ef00 (Two distinct ESPs on two
> different nvmes)
> /dev/nvme0n1p3 = /dev/nvme1n1p3  = 7mb 8300 (Linux RAID)

lsblk gives a nice readable version of this info.

> I am currently using /dev/nvme*1*n1p2 as /boot/efi and groub-efi is
> installed there.
>
> I like to also install grub-efi on /dev/nvme*0*n1p1 to mimic RAID1. My
> Google search does not give me a clear way to do it. There are a lot
> explanation on how certain things are to be done. Nothing succinctly
> describes the grub-install step. Since this is boot and grub, I like to be
> sure before I mess up some uefi files and make the system unbootable.
>
> Can I mount the second esp on /mnt and do a simple grub-install
> --efi-directory=/mnt? Or should I undo current /boot/efi mount and mount
> second esp there and do a grub-install?

Changing the mount on /boot/efi is what I do for that very same use.

Note that I observed the new one replaces the old one in the list of
boot options: you might need call efobootmgr manually to set up things
exactly how you want them, using what grub-install did as a reference.

Regards,

--
Nicolas George
0 new messages