Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not able to install 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
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 465
Location: India

PostPosted: Mon Feb 17, 2020 5:22 pm    Post subject: Not able to install gentoo Reply with quote

Hi Experts, I am trying to install gentoo on a new server , however after multiple tries unable to do so. Below are the error I get -

Quote:
(chroot) livecd / #cd /usr/src/linux

(chroot) livecd /usr/src/linux # make menuconfig

(chroot) livecd /usr/src/linux # make install

(chroot) livecd /usr/src/linux # grub-install /dev/sda
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
(chroot) livecd /usr/src/linux #



below is the partition table I have configured -

Quote:
livecd /mnt/gentoo # parted -a optimal /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB xfs grub bios_grub
2 3146kB 527MB 524MB xfs boot boot, esp
3 527MB 42.9GB 42.4GB xfs root
4 42.9GB 85.9GB 42.9GB xfs var
5 85.9GB 250GB 164GB xfs home


I have formatted the above partition with xfs file system and have mounted them as below -

Quote:
mkfs.xfs /dev/sda2
mkfs.xfs /dev/sda3
mkfs.xfs /dev/sda4
mkfs.xfs /dev/sda5

mount /dev/sda3 /mnt/gentoo/
cd /mnt/gentoo/
mkdir boot
mkdir var
mkdir home
mount /dev/sda2 /mnt/gentoo/boot/
mount /dev/sda4 /mnt/gentoo/var/
mount /dev/sda5 /mnt/gentoo/home/



I am completely out of ideas and need assistance how to get this installed. Thanks in advance.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Mon Feb 17, 2020 5:35 pm    Post subject: Reply with quote

The ESP should be formatted Fat32 if it is to be readable by the UEFI firmware.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 465
Location: India

PostPosted: Mon Feb 17, 2020 6:08 pm    Post subject: Reply with quote

I am not sure if I understood what you are saying. Below are my partions -

/dev/sda3 --> /mnt/gentoo/
/dev/sda2 --> /mnt/gentoo/boot/
/dev/sda4 --> /mnt/gentoo/var/
/dev/sda5 --> /mnt/gentoo/home/

All of the above are formatted with file system xfs except sda1 which is my bios_grub

If I go through the below link, it does not ask me to do a grub-install, but directly goes to grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.gentoo.org/wiki/GRUB2

Is grub-install /dev/sda really required now ?

please suggest
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6337

PostPosted: Mon Feb 17, 2020 7:51 pm    Post subject: Reply with quote

Are you trying to boot from EFI or are you trying to boot from BIOS?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Feb 17, 2020 8:52 pm    Post subject: Reply with quote

manu_leo,

bios_grub is used raw, by grub if you install grub to the MBR on a GPT partitioned HDD.
That means you are mixing BIOS and GPT, which should be avoided.
The bios_grub partition is not yours. You do not make a filesystem there, nor list it in /etc/fstab.

UEFI system can only boot from a vfat partition. grub stage2 is a UEFI compatible program, so if you want a UEFI system to start grub, or any UEFI compatible program, it must reside on a vfat filesystem.
The files that grub loads need not be on the vfat filesystem but whatever the UEFI firmware loads to get your started must be.
_________________
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
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