Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Finished installation, doesn't boot to Gentoo
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
Bobbbay
n00b
n00b


Joined: 15 Jul 2020
Posts: 47
Location: Everywhere

PostPosted: Thu Aug 20, 2020 8:47 pm    Post subject: Finished installation, doesn't boot to Gentoo Reply with quote

Hello all! Hopefully, this'll be my last topic at Installing Gentoo :lol:

I went through the Gentoo Handbook pretty smoothly. I'm on EFI. I used LILO because I was so close and wasn't exactly sure what an EFI directory is (so an explanation on the side would be nice :P). I've had tons of installs on this device before, including Arch and Windows. I had used GRUB when I grabbed Arch, and it seems it has remained. Now, whenever I turn on my PC, it boots to GRUB which can only boot to the boot usb. If I remove it, it says that's there's nothing to boot to. I've been able to get to my BIOS settings, and here's my boot options: https://imgur.com/a/rpfSk6s.

Any help is appreciated! I'm literally so close![/glsa]
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3511

PostPosted: Thu Aug 20, 2020 9:01 pm    Post subject: Re: Finished installation, doesn't boot to Gentoo Reply with quote

Bobbbay wrote:
... and wasn't exactly sure what an EFI directory is (so an explanation on the side would be nice :P).

See https://wiki.gentoo.org/wiki/EFI_System_Partition

Bobbbay wrote:
and here's my boot options: https://imgur.com/a/rpfSk6s.

Create one more for https://wiki.gentoo.org/wiki/EFI_stub_kernel
Back to top
View user's profile Send private message
Bobbbay
n00b
n00b


Joined: 15 Jul 2020
Posts: 47
Location: Everywhere

PostPosted: Fri Aug 21, 2020 3:32 pm    Post subject: Re: Finished installation, doesn't boot to Gentoo Reply with quote

charles17 wrote:
Bobbbay wrote:
... and wasn't exactly sure what an EFI directory is (so an explanation on the side would be nice :P).

See https://wiki.gentoo.org/wiki/EFI_System_Partition


Thanks that clears some things up :)

Quote:

Bobbbay wrote:
and here's my boot options: https://imgur.com/a/rpfSk6s.

Create one more for https://wiki.gentoo.org/wiki/EFI_stub_kernel


Before I start, I assume the ESP is /dev/sda1 if I followed the guide?

EDIT: Also, should I create for GRUB or BIOS?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46279
Location: 56N 3W

PostPosted: Fri Aug 21, 2020 5:59 pm    Post subject: Reply with quote

Bobbbay,

If you follow the guide, you have
Code:

(parted)print

Model: Virtio Block Device (virtblk)
Disk /dev/sda: 20480MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
 
Number   Start      End      Size     File system  Name   Flags
 1       1.00MiB    3.00MiB  2.00MiB               grub   bios_grub
 2       3.00MiB    131MiB   128MiB                boot   boot
 3       131MiB     643MiB   512MiB                swap
 4       643MiB     20479MiB 19836MiB              rootfs


bios_grub is for a piece of grub if you BIOS boot. Its not used with EFI booting.
boot is your ESP partition. Its formatted vfat and its the only partition that the EFI firmware can read.


Bobbbay wrote:
... I assume ...

Don't do that. Rule 1 is assume nothing :)
Closely followed by trust but verify.
Lilo does not support GPT partition tables, so that's not an option with EFI booting.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bobbbay
n00b
n00b


Joined: 15 Jul 2020
Posts: 47
Location: Everywhere

PostPosted: Fri Aug 21, 2020 8:53 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Bobbbay,

If you follow the guide, you have
Code:

(parted)print

Model: Virtio Block Device (virtblk)
Disk /dev/sda: 20480MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
 
Number   Start      End      Size     File system  Name   Flags
 1       1.00MiB    3.00MiB  2.00MiB               grub   bios_grub
 2       3.00MiB    131MiB   128MiB                boot   boot
 3       131MiB     643MiB   512MiB                swap
 4       643MiB     20479MiB 19836MiB              rootfs


bios_grub is for a piece of grub if you BIOS boot. Its not used with EFI booting.
boot is your ESP partition. Its formatted vfat and its the only partition that the EFI firmware can read.


That is what I have :)
Yeah I figured sda2 was my EFI partition a while later. Then I tried some EFI stub stuff and completely bricked it (the partition). Reinstalling!

Quote:

Bobbbay wrote:
... I assume ...

Don't do that. Rule 1 is assume nothing :)

Duly noted. :P

Quote:
Lilo does not support GPT partition tables, so that's not an option with EFI booting.

Well, I guess I won't use LILO!

My answer here for anyone in the future
I think I know what to do once I restart the install and get to the bootloader step (https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader). Mount /dev/sda2 to /boot, and keep going with the instructions. What makes me wonder is where in the world that other GRUB comes from, the one that was booting things. That's my last question (and that's a lie).

Cheers!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46279
Location: 56N 3W

PostPosted: Fri Aug 21, 2020 10:42 pm    Post subject: Reply with quote

Bobbbay,

Don't restart the install. Gentoo is not like a binary distro.

In the handbook, skip the partitioning and making filesystem steps. They are destructive.
Do all the mounting steps and the chroot steps.
Then you are back in your non booting Gentoo as if you never left.
You can get quite good at this until it boots for the first time.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bobbbay
n00b
n00b


Joined: 15 Jul 2020
Posts: 47
Location: Everywhere

PostPosted: Tue Aug 25, 2020 6:48 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Bobbbay,

Don't restart the install. Gentoo is not like a binary distro.

In the handbook, skip the partitioning and making filesystem steps. They are destructive.
Do all the mounting steps and the chroot steps.
Then you are back in your non booting Gentoo as if you never left.
You can get quite good at this until it boots for the first time.


Oh man sorry for my late reply :wink:

That's good to know. I'm aware that this is possible and have used it to fix tons of things, but a fresh installation image feels good to have :)

Cheers!
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