Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved Grub2 issue Solved
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
MatrixVector
n00b
n00b


Joined: 12 Aug 2016
Posts: 3

PostPosted: Fri Aug 12, 2016 8:59 pm    Post subject: Solved Grub2 issue Solved Reply with quote

Following the documentation for install for amd64

Mysystem is using EFI method of booting the system

Windows is already installed on the system and say partition /dev/sda2 is the vfat efi partition

When using UEFI, users will need to add GRUB_PLATFORMS="efi-64" to make.conf before emerging GRUB2 so that the package will be built with EFI functionality:

root #echo GRUB_PLATFORMS="efi-64" >> /etc/portage/make.conf

ran this command verified the entry was added to make.conf

next

root #emerge --ask sys-boot/grub:2

I'm still in the directory on /usr/src/linux because just build the kernel documentation did not stat to move into another directory in the chrooted environment

reading ahead in the instructions lucky i seen it said you need to mount the boot partition first so i did that and ran command
When I go to Configuring GRUB 2
ran the command: grub-install --target=x86_64-efi --efi-directory=/boot

Getting message: (chroot) ubuntu / # grub-install --target=x86_64-efi --efi-directory=/boot
bash: grub-install: command not found

Any Idea's on what i am doing wrong here?


(chroot) ubuntu / # nano -w /etc/fstab

(chroot) ubuntu / # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 96M 28M 69M 29% /boot

(chroot) ubuntu / # ls
bin dev home lib32 lost+found mnt proc run stage3-amd64-20160804.tar.bz2 tmp var
boot etc lib lib64 media opt root sbin sys usr www
(chroot) ubuntu / # ls /boot


Last edited by MatrixVector on Sun Aug 14, 2016 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
jonathan183
Guru
Guru


Joined: 13 Dec 2011
Posts: 309

PostPosted: Sat Aug 13, 2016 11:11 am    Post subject: Reply with quote

Does grub2-install rather than grub-install work ?
Back to top
View user's profile Send private message
MatrixVector
n00b
n00b


Joined: 12 Aug 2016
Posts: 3

PostPosted: Sun Aug 14, 2016 12:33 am    Post subject: That was rockstar Reply with quote

jonathan183 wrote:
Does grub2-install rather than grub-install work ?


That appears to have worked nice job jonathan183
Back to top
View user's profile Send private message
MatrixVector
n00b
n00b


Joined: 12 Aug 2016
Posts: 3

PostPosted: Sun Aug 14, 2016 12:38 am    Post subject: Next Step in Gentoo handbook Reply with quote

Code:
root #grub-mkconfig -o /boot/grub/grub.cfg

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.16.5-gentoo
Found initrd image: /boot/initramfs-genkernel-amd64-3.16.5-gentoo
done


by default this command did not work
used
grub2-mkconfig and it worked
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