Trying to install Gentoo on a virtual box and it's not letting me install GRUB2 for some inane reason.
Any help?
Install Gentoo
>>61428278
Install gentoo
>>61428278
why did you make a gpt partition table?
it's confused because it thinks that you are booting in efi mode, even though you don't have an efi boot partition
It seems that you have not partitioned your disk correctly. I'd recommend going back to the part of the handbook where you partition your disk.
>>61428278
Is the bootable flag on?
Is the /boot partition a format that can have GRUB, such as ext2?
Have you created the partition correctly?
>>61428278
It's because you lied and sacrificed a baby to Bill Gates. Linux JUST WERKZ! Kek.
>>61428278
make /boot an EFI partition
>>61428353
GPT uses 64-bit identifiers. I thought it was correct to go with the GPT method.
>>61428370
Pic related is my fstab file where I configured the boot order.
>>61428380
>Is the bootable flag on?
If it said to do so in the doc then probably.
>Is the /boot partition a format that can have GRUB, such as ext2?
Yes.
>>61428455
>make /boot an EFI partition
Do you know how? I can't use parted anymore because I've chrooted.
>>61428482
Here's my config also.
>>61428465
read this
https://wiki.archlinux.org/index.php/GRUB#GUID_Partition_Table_.28GPT.29_specific_instructions
>On a BIOS/GPT configuration a BIOS boot partition is required. GRUB embeds its core.img into this partition.
>>61428499
if you don't want to mess around with >>61428514 just repartition into mbr
>>61428532
If I need to repartition does that mean all my progress gets nullified?
>>61428553
whatever you have on the virtual hdd gets nullified, so I guess
>>61428578
That's bullshit. It took me all day to get this point without a mistake, and this insignificant shit fucks the entire thing? I followed the manual step by step and double checked.
>>61428606
you should have informed yourself about what booting from gpt requires
this was your choice
>>61428679
I thought I did know what it required.
If I didn't wouldn't you think I'd make a mistake earlier?
>>61428737
You did make a mistake earlier.
>>61428781
What mistake?
>>61428781
You used GPT without reading the GPT documentation
perhaps you should install ubuntu instead
echo 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.conf
emerge --ask --update --newuse --verbose sys-boot/grub:2
grub-install --target=x86_64-efi --efi-directory=/boot
>>61428606
I've never booted from gpt myself, but if an extra boot partition is all it needs, why not make space by shrinking some partition and create it
>>61428831
Didn't work (Pic). I don't why it's telling me boot is not EFI, because when I first created it, it had esp flags.
>>61428891
I don't know a means of doing so in chroot.
>>61428940
you have a vm just attach your favorite recovery iso and boot that
>>61428940
>I don't know a means of doing so in chroot.
leave the chroot, unmount whatever you have mounted, google how to shrink a partition on the command line and do it faggot
>>61428278
can you lsblk? also does your vm default to EFI or BIOS?
>>61428940
>>61429003
btw you don't have to do it on the command line, you can just boot a live ubuntu iso or something and shrink via gparted and make the boot partition
>>61428940
post fdisk -l
>>61429011
read the thread faggot
his "issue" is already solved
>>61429037
Here.
>>61429033
Wrong.
>>61429011
EFI - boot partition wouldn't have had esp flag otherwise.
>>61429060
try mount /dev/sda2 /boot
then
grub-install --target=x86_64-efi --efi-directory=/boot
>>61429086
Already mounted.
>>61429086
see >>61429044
>>61429081
>>61429060
see >>61428514
either make the damn boot partition or repartition into mbr
>>61429181
>either make the damn boot partition or repartition into mbr
I'm still looking for a way to solve this without nullifying my day long progress.
>>61429208
then make the damn boot partition
boot a live iso with gparted, shrink whatever you've got there, and the partition
if this is too hard for you, then you're beyond retarded
>>61429241
>and the partition
and create the partition*
>>61429208
you've only got 2 choices m8
>>61428278
The error says that your boot partition is not an EFI partition.
Looking at your fstab, I can see that you mount /dev/sda2 as /boot and it is an ext2 partition. Unfortunately, EFI can work only with fat32 filesystems. You need to unmount /boot and format it as fat32.
# umount /boot
# mkfs.vfat -F 32 /dev/sda2
change ext2 to vfat in fstab
# nano /etc/fstab
# mount /boot
Don't forget to set boot flag on that partition
>how to do if I'm chrooted?
simply type exit command:
# exit
You are now not chrooted.
Set boot flag
# parted /dev/sda set 2 boot on
Now chroot again
# chroot /mnt/gentoo /bin/bash
Now you can install grub:
grub2-install --target=x86_64-efi --efi-directory=/boot
>>61429280
he's booting from gpt via bios
see >>61428514
>>61428321
>>61428332
thank you sherlock
>>61429280
here's proof that he's booting via bios
https://www.virtualbox.org/manual/ch03.html#efi
>By default, VirtualBox uses the BIOS firmware for virtual machines.
he needs the boot partitiion if he's gonna boot gpt from bios (which he doesn't have)
>>61428606
>without a mistake
your mistake was trying to use gpt/efi instead of mbr/bios
>>61429415
he was trying to use gpt/bios
gpt doesn't works in virtualbox, try mbr or even msdos.
But if you really want gpt use qemu
>>61429431
oh then all of my why
>>61429435
>gpt doesn't works in virtualbox
it does
what doesn't work is booting gpt from bios without the boot partition
>mbr or even msdos
literally the same thing
>>61429435
>gpt doesn't works in virtualbox, try mbr or even msdos.
lmao
>>61428278
The partition isn't formatted right. Is it fat32 or ext3?
>>61429435
hello pajeet
just use mbr/bios there is literally no reason to do otherwise unless you have severe crippling autism
>>61429562
read the thread before replying
>>61429318
>>61429391
Gentoo is a meme, install arch linux. It's what professionals use.
don't listen to this faggot >>61429605
install Source Mage GNU/Linux