On 09/04/2014 08:14 PM, Joseph wrote:
> I'm still lost with this grab2, very confusing.  Gentoo official
> documentation did not mention any of this :-/
> 
> Official documentation did ask to create /dev/sda1 2M BIOS boot
> partition but there was no instruction how to mount it or format it.
> I was under impression Grub2 will do all of this.
> I booted with CD-minimal and there is no "mkdosfs" command.
> 
> Do I need to format the /dev/sda1?
> 
> If I do:
> mkfs -t vfat -F 32 -n efi-boot /dev/sda1
> mkfs.vfat: No such file or directory
> 

The easiest method would be to chroot into your installation. From
there, you can format the EFI partition, then mount it.

If you don't have mkfs.vfat in your chroot, I think the package that has
it is dosfstools.

So basically:

1. chroot into your install (makes sure /boot is mounted before
chroot'ing in)
2. format the EFI partition, install dosfstools if required
3. mount the EFI partition to /boot/efi
4. grub2-install --target=x86_64-efi

The grub.cfg you showed before looked correct to me, the Gentoo
GNU/Linux entry was trying to boot off of root='hd0,gpt2' which is correct.

Dan

Reply via email to