View previous topic :: View next topic |
Author |
Message |
MatrixVector n00b
Joined: 12 Aug 2016 Posts: 3
|
Posted: Fri Aug 12, 2016 8:59 pm Post subject: Solved Grub2 issue Solved |
|
|
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 |
|
|
jonathan183 Guru
Joined: 13 Dec 2011 Posts: 318
|
Posted: Sat Aug 13, 2016 11:11 am Post subject: |
|
|
Does grub2-install rather than grub-install work ? |
|
Back to top |
|
|
MatrixVector n00b
Joined: 12 Aug 2016 Posts: 3
|
Posted: Sun Aug 14, 2016 12:33 am Post subject: That was rockstar |
|
|
jonathan183 wrote: | Does grub2-install rather than grub-install work ? |
That appears to have worked nice job jonathan183 |
|
Back to top |
|
|
MatrixVector n00b
Joined: 12 Aug 2016 Posts: 3
|
Posted: Sun Aug 14, 2016 12:38 am Post subject: Next Step in Gentoo handbook |
|
|
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 |
|
|
|