Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] UEFI GRUB2 /boot isn't a efi partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
viio
n00b
n00b


Joined: 17 Mar 2020
Posts: 33

PostPosted: Tue Mar 17, 2020 9:57 pm    Post subject: [SOLVED] UEFI GRUB2 /boot isn't a efi partition Reply with quote

Hi,

I was following the installation documentation strictly and in the last step I got an error while I tried to install grub:

Code:

# grub-install --target=x86_64-efi --efi-directory=/boot
x86-64-efi will be installed for your platform.
grub-install: Error: /boot isn't a EFI-partition.


I've translated the above output by myself, so maybe the words aren't 100% correct.

Also since I try to install in a virtual machine I can't copy paste output.
Here is a screenshot so that I don't need to type out the output:

https://framapic.org/rOhn5rhhGTkq/5AfkWBOQlhmm.png
(image will be deleted in 90 days)


Last edited by viio on Wed Mar 18, 2020 4:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
RoGeorge
n00b
n00b


Joined: 13 Mar 2020
Posts: 17

PostPosted: Tue Mar 17, 2020 11:05 pm    Post subject: Reply with quote

The png link doesn't work for me:
Quote:
Service inaccessible
Vous avez été bloqué sur un de nos services.
Vous ne pouvez pas avoir accès à ce service car nous avons rencontré de nombreux problèmes d'usages depuis votre zone géographique. Merci d'utiliser un autre service que le nôtre.
Cordialement, l’équipe Framasoft
Back to top
View user's profile Send private message
viio
n00b
n00b


Joined: 17 Mar 2020
Posts: 33

PostPosted: Wed Mar 18, 2020 6:10 am    Post subject: Reply with quote

Seems like they have some geoip block for your region.

Here is another mirror:
https://i.imgur.com/ZhBI4i3.png
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 97

PostPosted: Wed Mar 18, 2020 6:46 am    Post subject: Reply with quote

viio, the filesystem on the the ESP (EFI System Partition, sda1 in your case) must be FAT, not ext2.
Back to top
View user's profile Send private message
viio
n00b
n00b


Joined: 17 Mar 2020
Posts: 33

PostPosted: Wed Mar 18, 2020 7:05 am    Post subject: Reply with quote

nick_gentoo wrote:
viio, the filesystem on the the ESP (EFI System Partition, sda1 in your case) must be FAT, not ext2.

Ah okay, probably I understand that wrong from the documentation.
I'll try again with FAT32.

I guess ext2 is for BIOS installations only then?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6480

PostPosted: Wed Mar 18, 2020 8:01 am    Post subject: Reply with quote

viio wrote:
I guess ext2 is for BIOS installations only then?

GRUB on BIOS systems wants an unformatted space. For MBR it's literally an unallocated gap before the first partition, for GPT it's a partition type reserved for this purpose.

Either way, EFI is the only one that needs FAT. Technically EFI is allowed to have more filesystem drivers than just primitive DOS ones, but that doesn't happen in the wild.
Back to top
View user's profile Send private message
viio
n00b
n00b


Joined: 17 Mar 2020
Posts: 33

PostPosted: Wed Mar 18, 2020 4:52 pm    Post subject: Reply with quote

I tried again with FAT32 and it worked.
Thank you! :)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Wed Mar 18, 2020 6:06 pm    Post subject: Reply with quote

If I recall correctly then EFI standard requires FAT16. So it is theoretically possible some EFI implementation may not work with FAT32. I haven't seen any, yet.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Thu Mar 19, 2020 2:07 am    Post subject: Reply with quote

https://uefi.org/sites/default/files/resources/UEFI_Spec_2_8_final.pdf#G17.1019485 wrote:
The EFI firmware must support the FAT32, FAT16, and FAT12 variants of the EFI file system. What variant of EFI FAT to use is defined by the size of the media. The rules defining the relationship between media size and FAT variants is defined in the specification for the EFI filesystem.
The motherboard manufacturer is 'required' to meet that spec but allowed to add the ability to support other formats.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7653
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 19, 2020 3:08 am    Post subject: Reply with quote

Thanks, DONAHUE. I wonder if my memory is no good or they have changed it.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7602
Location: Goose Creek SC

PostPosted: Thu Mar 19, 2020 3:53 am    Post subject: Reply with quote

First there was EFI, an intel idea/spec, then came the consortium spec UEFI. As far as I know fat 32 UEFI has been nearly the rule in the PC world. I have a memory of seeing discussion of fat 12 and fat 16 implementations but as rare occurrences.
The 2002 EFI 1.10 spec wrote:
EFI encompasses the use of FAT32 for a system partition, and FAT12 or FAT16 for removable media. The FAT32 system partition is identified by an OS type value other than that used to identify previous versions of FAT. This unique partition type distinguishes an EFI defined file system from a normal FAT file system. The file system supported by EFI includes support for long file names. The definition of the EFI file system will be maintained by specification and will not evolve over time to deal with errata or variant interpretations in OS file system drivers or file system utilities. Future enhancements and compatibility enhancements to FAT will not be automatically included in EFI file systems. The EFI file system is a target that is fixed by the EFI specification, and other specifications explicitly referenced by the EFI specification. For more information about the EFI file system and file image format, visit the web site (sic: https://www.intel.com/content/dam/doc/product-specification/efi-v1-10-specification.pdf )from which this document was obtained.

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum