Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootloader problems and questions [Solved]
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
WTFman
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 153

PostPosted: Wed Oct 28, 2015 3:17 pm    Post subject: Bootloader problems and questions [Solved] Reply with quote

So I am almost done with the initial install, but when I configure the bootloader I get this:
Code:
livecd / # grub2-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform.
grub2-install: error: /boot doesn't look like an EFI partition.


The handbook says:
Quote:
Note
Modify the efi-directory setting to the root of the vfat EFI System Partition if you did not format /boot as vfat.

but I don't know what that means. Should my boot partition be VFAT? The book showed it partitioned as EXT2 so thats what mine looks like
Code:
(parted) print                                                           
Model: ATA WDC WD5000LPVX-2 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  3146kB  2097kB  ntfs            grub    bios_grub
 2      3146kB  137MB   134MB   ext2            boot    boot
 3      137MB   4432MB  4295MB  linux-swap(v1)  swap
 4      4432MB  500GB   496GB   ext4            rootfs

Any easy way out of this conundrum?
_________________
Occupation: Professional Slacker
Hobbies/Interests: Open Source Aficionado since 2005


Last edited by WTFman on Thu Oct 29, 2015 12:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Oct 28, 2015 3:20 pm    Post subject: Reply with quote

please provide me this:

i do not use parted. and this works. this installation is 3 weeks old, my first time with uefi

you may reuse it for yourself

Code:
sgdisk -p /dev/sda
Disk /dev/sda: 250069680 sectors, 119.2 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): removed, privacy concern by tw04l124
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 250069646
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            6143   2.0 MiB     EF02  grub
   2            6144          268287   128.0 MiB   EF00  boot
   3          268288          530431   128.0 MiB   8300  reserved_for_future...
   4          530432       250067631   119.0 GiB   8300  root_filesystem


Just reading htat parted output, which i am totally not used to. You are using maybe the wrong partititon layout and file systems.
uefi demands what i did above. you may reuse it.

partition 3 is not needed, partition 4 is my root, can be any supported file system by your kernel.
i created partition 3 for future use, when i need a few mb for some special tasks.

Quote:
Any easy way out of this conundrum?


create a proper partiton layout with sgdisk. with the suggested values of the gentoo handbook. uefi demands what i showed you above in the code section. MBR boxes can use anyhting!. MBR is not uefi !
Back to top
View user's profile Send private message
WTFman
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 153

PostPosted: Wed Oct 28, 2015 8:55 pm    Post subject: Reply with quote

Turns out I did have to change the boot partition to VFAT.
Got grub to install with no errors, but I still couldn't boot.
After googling the error message it seems it was an Acer trust issue in the bios.
Damn acer, if you ever install linux on an acer laptop prepare to spend time fiddling with the bios, and don't forget your bios password.
_________________
Occupation: Professional Slacker
Hobbies/Interests: Open Source Aficionado since 2005
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 112
Location: São Paulo, Brasil

PostPosted: Wed Oct 28, 2015 9:35 pm    Post subject: Re: Bootloader problems and questions Reply with quote

WTFman wrote:

Code:
livecd / # grub2-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform.
grub2-install: error: /boot doesn't look like an EFI partition.



EFI directory should not be /boot but /boot/efi. You should create a efi folder or partition inside /boot. If you want to use your whole boot partition as a EFI partition also, you need to partition it as VFAT.

Code:

mkdir /boot/efi
grub2-install --target=x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Oct 29, 2015 7:58 am    Post subject: Reply with quote

that feature is called secure boot, and that is on any uefi bios, which ships with those windi operating systems.

you may edit the topic of your first post and add [solved] when your questions are answered, thanks.
Back to top
View user's profile Send private message
grknight
Developer
Developer


Joined: 20 Feb 2015
Posts: 11

PostPosted: Wed Aug 17, 2016 5:20 pm    Post subject: Re: Bootloader problems and questions Reply with quote

alinefr wrote:
WTFman wrote:

Code:
livecd / # grub2-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform.
grub2-install: error: /boot doesn't look like an EFI partition.



EFI directory should not be /boot but /boot/efi. You should create a efi folder or partition inside /boot. If you want to use your whole boot partition as a EFI partition also, you need to partition it as VFAT.

Code:

mkdir /boot/efi
grub2-install --target=x86_64-efi --boot-directory=/boot --efi-directory=/boot/efi


--efi-directory=/boot is correct when /boot is the EFI partition.
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