Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub is giving me errors.
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
nottobay
n00b
n00b


Joined: 22 Feb 2018
Posts: 12

PostPosted: Thu Feb 22, 2018 1:23 am    Post subject: Grub is giving me errors. Reply with quote

I have an encrypted root participation that is not on in lvm. Could someone help me understand what the problem is and how to fix it? I'll link an image of the errors. http://imgur.com/WsA2wQe
Back to top
View user's profile Send private message
sillen102
n00b
n00b


Joined: 13 Mar 2018
Posts: 2

PostPosted: Wed Mar 21, 2018 6:55 pm    Post subject: Reply with quote

First of all you are trying to install Grub to a disk that is not mounted as /boot

You have to mount your file system properly, then you have to chroot into that system before trying to install Grub.

Here is where you can find info about mounting your file system and chroot into it: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base
You can read more about installing and configuring Grub here: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader

Asuming you mounted your root partition properly (as /mnt/gentoo) it would go something like this:
Code:
$ mount --types proc /proc /mnt/gentoo/proc
$ mount --rbind /sys /mnt/gentoo/sys
$ mount --make-rslave /mnt/gentoo/sys
$ mount --rbind /dev /mnt/gentoo/dev
$ mount --make-rslave /mnt/gentoo/dev

$ chroot /mnt/gentoo /bin/bash
$ source /etc/profile
$ export PS1="(chroot) ${PS1}"

$ mkdir /boot
$ mount /dev/sda1 /boot



The correct command for installing Grub then is:

Code:
$ grub-install --target=x86_64-efi --efi-directory=/boot


Second problem you can encounter is that you might not have configured your partition tables correctly. You need to have a MBR (Master Boot Record) or GPT (GUID Partition Table) set up on the drive you want to install Grub to. And I'm asuming since you're trying to mount dev/sda1 as boot that you have no MBR or GPT since they usually are set up on the first partition. Then your boot partition would be sda2.

You can read about setting up your drives here: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
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