To safely repair the boot on your NVMe drive (`nvme0n1p1`) without affecting other GRUB installations, follow these step
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
To safely repair the boot on your NVMe drive (`nvme0n1p1`) without affecting other GRUB installations, follow these steps:
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot
mount --types proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev
mount --make-rslave /mnt/dev
chroot /mnt /bin/bash grub-install --target=x86_64-efi \
--efi-directory=/boot \
--bootloader-id=gentoo-nvme \
--recheck
grub-mkconfig -o /boot/grub/grub.cfg efibootmgr -vYou should see an entry like:
Boot000X* gentoo-nvme HD(...) File(\EFI\gentoo-nvme\grubx64.efi)- **Independence:** Each disk (e.g., `sda`, `nvme0n1`) can have its own GRUB installation.
- **Boot Priority:** You can set the boot order using `efibootmgr -o XXXX,YYYY,ZZZZ`.
efibootmgr -vUse `lsblk` and `blkid` to correlate the UUIDs with the actual disks.
Quality, Reliability & Service Consultancy for Mainframes, Desktops & Web Sites