Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i can't install grub efi
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
DragonUser02
n00b
n00b


Joined: 05 Oct 2018
Posts: 6

PostPosted: Fri Oct 05, 2018 4:01 pm    Post subject: i can't install grub efi Reply with quote

I installing gentoo, but, i reached to install a bootloader, but, this error appers, im newbie in gentoo.

Code:

Installing for x86_64-efi platform.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: warning: disk does not exist, so falling back to partition device /dev/sda1.
grub-install: error: disk `hostdisk//dev/sda1' not found.
Back to top
View user's profile Send private message
joanandk
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2017
Posts: 80

PostPosted: Fri Oct 05, 2018 4:20 pm    Post subject: Re: i can't install grub efi Reply with quote

DragonUser02 wrote:
I installing gentoo, but, i reached to install a bootloader, but, this error appers, im newbie in gentoo.


Hi and welcome to Gentoo. I am not sure if you have done everything right:
a) You must have the boot drive with "gpt" partition table
b) You must have the first partition fat32, around 200 - 250MB with the boot flag set.
c) You must mount the first partition to /mnt/EFI prior to executing grub.
d) You must have booted via EFI (not BIOS emulation) and have efivars module loaded
e) If all above has been done, execute
Code:
grub-install --efi-directory=/mnt/EFI --target=x86_64-efi


BR
Back to top
View user's profile Send private message
DragonUser02
n00b
n00b


Joined: 05 Oct 2018
Posts: 6

PostPosted: Fri Oct 05, 2018 4:25 pm    Post subject: Re: i can't install grub efi Reply with quote

joanandk wrote:
DragonUser02 wrote:
I installing gentoo, but, i reached to install a bootloader, but, this error appers, im newbie in gentoo.


Hi and welcome to Gentoo. I am not sure if you have done everything right:
a) You must have the boot drive with "gpt" partition table
b) You must have the first partition fat32, around 200 - 250MB with the boot flag set.
c) You must mount the first partition to /mnt/EFI prior to executing grub.
d) You must have booted via EFI (not BIOS emulation) and have efivars module loaded
e) If all above has been done, execute
Code:
grub-install --efi-directory=/mnt/EFI --target=x86_64-efi


BR


I have a partition with 500MB of efi with boot flag.
and i used EFI, my computer is EFI.
and i run the code, but, still getting the same output.
i mounted the /dev/sda1 in the /mnt/

Code:

grub-install: error: disk `hostdisk//dev/sda1' not found.
Back to top
View user's profile Send private message
DragonUser02
n00b
n00b


Joined: 05 Oct 2018
Posts: 6

PostPosted: Fri Oct 05, 2018 5:07 pm    Post subject: Reply with quote

A bit weird thing, is a problem, inner of chroot, i can't see the hard drives partitions.
I think, is maybe a problem with the /dev ?
Back to top
View user's profile Send private message
DragonUser02
n00b
n00b


Joined: 05 Oct 2018
Posts: 6

PostPosted: Fri Oct 05, 2018 6:01 pm    Post subject: Reply with quote

Anyone?
Back to top
View user's profile Send private message
joanandk
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2017
Posts: 80

PostPosted: Fri Oct 05, 2018 8:28 pm    Post subject: Reply with quote

DragonUser02 wrote:
inner of chroot, i can't see the hard drives partitions.


You did bind mount the dev inside the chroot? For example
Code:
mount -o bind /dev /PATH_TO_CHROOT_ROOT/dev
Back to top
View user's profile Send private message
DragonUser02
n00b
n00b


Joined: 05 Oct 2018
Posts: 6

PostPosted: Fri Oct 05, 2018 9:03 pm    Post subject: Reply with quote

joanandk wrote:
DragonUser02 wrote:
inner of chroot, i can't see the hard drives partitions.


You did bind mount the dev inside the chroot? For example
Code:
mount -o bind /dev /PATH_TO_CHROOT_ROOT/dev

Like this:
Code:
mount --rbind /dev /mnt/gentoo/dev
Back to top
View user's profile Send private message
Marcih
Apprentice
Apprentice


Joined: 19 Feb 2018
Posts: 152

PostPosted: Fri Oct 05, 2018 9:22 pm    Post subject: Reply with quote

Hi,
please post your partition scheme (the "print" output of parted will do fine), what partitions are currently mounted (e.g. output of "cat /proc/mounts"), exactly what commands you're typing in when you're trying to install GRUB (not just the grub-install command but everything right from when you boot into the live medium) etc.
The more information you provide, the easier it is to debug the issue.
_________________
Bones McCracker wrote:
It wouldn't be so bad, if it didn't suck.

===
I refuse to move on from GTK+2.
Back to top
View user's profile Send private message
DragonUser02
n00b
n00b


Joined: 05 Oct 2018
Posts: 6

PostPosted: Fri Oct 05, 2018 9:35 pm    Post subject: Reply with quote

Marcih wrote:
Hi,
please post your partition scheme (the "print" output of parted will do fine), what partitions are currently mounted (e.g. output of "cat /proc/mounts"), exactly what commands you're typing in when you're trying to install GRUB (not just the grub-install command but everything right from when you boot into the live medium) etc.
The more information you provide, the easier it is to debug the issue.


Dont need, i installed the grub sucessfully, thanks for everyone helped me !
I crying, i trying to install since 2017!
Back to top
View user's profile Send private message
Marcih
Apprentice
Apprentice


Joined: 19 Feb 2018
Posts: 152

PostPosted: Sat Oct 06, 2018 7:23 am    Post subject: Reply with quote

DragonUser02 wrote:
Dont need, i installed the grub sucessfully, thanks for everyone helped me !
I crying, i trying to install since 2017!

Good to hear. :)
Could you also post what the problem was and how you fixed it and mark the thread as solved (edit the original post and edit to the "Subject" line) so others with a similar probelm can try the same steps?
_________________
Bones McCracker wrote:
It wouldn't be so bad, if it didn't suck.

===
I refuse to move on from GTK+2.
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