On Sunday, 24 January 2021 05:49:28 GMT the...@sys-concept.com wrote: > I'm missing something as system can not find boot device > > fdisk /dev/nvme0n1 > Disklabel type: gpt > > Device Start End Sectors Size Type > /dev/nvme0n1p1 2048 6143 4096 2M BIOS boot > /dev/nvme0n1p2 6144 268287 262144 128M EFI System > /dev/nvme0n1p3 268288 1316863 1048576 512M Linux swap > /dev/nvme0n1p4 1316864 315889663 314572800 150G Linux filesystem > > I don't want to use EFI.
If you do NOT want to use EFI why have you set up /dev/nvme0n1p2 as an ESP type partition? With just 4 partitions in total there's also the question of your choice to use GPT instead of the legacy MBR partition table. :-/ > /boot = dev/nvme0n1p2 (ext4) file system > > When I run: > grub-install /dev/nvme0n1p2 > Installing for x86_64-efi platform. > grub-install: error: cannot find EFI directory. First, the handbook clearly directs to install GRUB to a disk not a partition: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader However, you *can* install GRUB's boot code in a partition instead of a disk, if you wish to chainload the partition's GRUB from another boot loader, e.g. MSWindows, rEFInd, another GRUB, etc. I don't see you want to do this, from what you have shared. Second, I think the error you get is caused because you have created ESP type partition, but there is no EFI/ directory in it, which the UEFI boot protocol requires. > but there is /boot/grub Yes, the error you got does not complain about /boot/grub missing, but about the absence of an "... EFI directory". > Running: grub-mkconfig -o /boot/grub/grub.cfg is OK (no errors) > > fstab: > /dev/nvme0n1p2 /boot ext4 noauto,noatime 1 2 > > The BIOS has CSM compatibly mode enable. > When I try to boot, system can not find bootable partition. > > Am I suppose to put any file system on /dev/nvme0n1p1 (2Mb partition) the > installation manual did not mention anything. No filesystem formatting is required for the small /dev/nvme0n1p1 BIOS boot partition - GRUB will install its 2nd stage core image in there. I'd question if your boot partition should be set as ESP type in the first place. Set it as a Linux partition, reformat it with ext2, or if you want as ext4, mount it as /boot and then install GRUB on the disk as the handbook instructs.
signature.asc
Description: This is a digitally signed message part.