View previous topic :: View next topic |
Author |
Message |
nottobay n00b
Joined: 22 Feb 2018 Posts: 12
|
Posted: Thu Feb 22, 2018 1:23 am Post subject: Grub is giving me errors. |
|
|
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 |
|
|
sillen102 n00b
Joined: 13 Mar 2018 Posts: 2
|
Posted: Wed Mar 21, 2018 6:55 pm Post subject: |
|
|
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 |
|
|
|