Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UEFI/GPT lost my grub!
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
generallylost
n00b
n00b


Joined: 30 Oct 2017
Posts: 5

PostPosted: Mon Oct 30, 2017 4:10 am    Post subject: UEFI/GPT lost my grub! Reply with quote

Hey guys and thanks in advance for the help.
Ok so I installed Gentoo and was just starting to get the hang of some of the oddities associated wit this distro (USE etc)...when I decided that it was time to install my second distro, Arch.

Let me back up, although I've used several distros of Linux over the years (all mbr/bios), and love Arch and several others, I've 1) never used Gentoo and 2) never used UEFI nor GPT...so it was kind of all new for me. This time, I decided to forgo the bios and mbr to see how the alternate setup would be...well, I toasted it...somewhere.

After installing Arch (second distro following Gentoo), I decided to share the boot (UEFI) partition that Gentoo was using. I was under the impression that I can indeed do that...no? yes?

[Idiot warning: I am not entirely sure if I installed grub on the uefi partition or if I installed it on the 2mb bios/grub partition...which I do now realize I shouldn't have created...but to be honest, this is the ONE (and only really) area of the documentation that was rather ambiguous...it was great except for UEFI/GPT....]

But now Grub only shows Arch....if I hit 'e' on grub and enter the edit mode, I can indeed launch a .gentoo kernel (through Arch...which doesn't work obviously) but there's no gentoo installation available.

I used the minimal installation usb to boot up and chroot over and I think it's pretty much in order...but I can't locate grub.conf for instance..

It's late...or maybe I'm just tired...or perhaps just stupid...either way, what would YOU do in my situation?

I'm thinking what I need to do is either reinstall/update grub in the arch...or else back to the usb and chroot over to the gentoo installation and then reinstall grub there...ensuring I use the same uefi partition as I used with arch?

Can ya help an old geezer re-grab his grub? (does that sound as wonky to you as it does me?) or should I just reinstall?

Thanks again folks! =)
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Mon Oct 30, 2017 6:10 am    Post subject: Re: UEFI/GPT lost my grub! Reply with quote

generallylost wrote:
After installing Arch (second distro following Gentoo), I decided to share the boot (UEFI) partition that Gentoo was using. I was under the impression that I can indeed do that...no? yes?

Yes.
https://wiki.gentoo.org/wiki/EFI_System_Partition wrote:
... containing the boot loaders or kernel images for all installed operating systems.

You should have there something like /boot/EFI/Grub/grubx64.efi. And you should make also grub handle all operating systems installed on that computer.
Back to top
View user's profile Send private message
generallylost
n00b
n00b


Joined: 30 Oct 2017
Posts: 5

PostPosted: Tue Oct 31, 2017 6:43 am    Post subject: Reply with quote

Thank you Charles.

I realize that i've screwed up somewhere...I *think* I installed arch boot correctly on the EFI partition, but Gentoo in a subdirectory....
so how do I go about fixing that?
Would I need to reinstall grub on gentoo?
---------------
here's the listings I have from my archlinux box.
===============
Code:
/boot#ls

config-4.12.12-gentoo
EFI
grub
initramfs-linux-fallback.img
initramfs-linux.img
initramfs-linux-lts-fallback.img
initramfs-linux-lts.img
intel-ucode.img
System.map-4.12.12-gentoo
vmlinuz-4.12.12-gentoo
vmlinuz-linux
vmlinuz-linux-lts

----------------------------------------------------

Code:
/boot/EFI#ls

BOOT
gentoo
grub

------------------------------------------------------
Code:
/boot/EFI/BOOT#ls

BOOTX64.EFI

-------------------------------------------------------
Code:
/boot/EFI/gentoo# ls

grubx64.efi

--------------------------------------------------------
Code:
/boot/EFI/grub# ls

grubx64.efi

===================================
===================================

/boot/grub

fonts
grub.cfg
grub.cfg.example
grub.cfg.pacnew
grubenv
locale
themes
x86_64-efi ******************************************
-----------------------------------------------------------------
/boot/grub/x86_64-efi# ls ******************************

Code:
acpi.mod
adler32.mod
affs.mod
afs.mod
ahci.mod
all_video.mod
aout.mod
appleldr.mod
archelp.mod
ata.mod
at_keyboard.mod
backtrace.mod
bfs.mod
bitmap.mod
bitmap_scale.mod
blocklist.mod
boot.mod
boottime.mod
bsd.mod
bswap_test.mod
btrfs.mod
bufio.mod
cacheinfo.mod
cat.mod
cbfs.mod
cbls.mod
cbmemc.mod
cbtable.mod
cbtime.mod
chain.mod
cmdline_cat_test.mod
cmp.mod
cmp_test.mod
command.lst
configfile.mod
core.efi
cpio_be.mod
cpio.mod
cpuid.mod
crc64.mod
cryptodisk.mod
crypto.lst
crypto.mod
cs5536.mod
ctz_test.mod
datehook.mod
date.mod
datetime.mod
diskfilter.mod
disk.mod
div.mod
div_test.mod
dm_nv.mod
echo.mod
efifwsetup.mod
efi_gop.mod
efinet.mod
efi_uga.mod
ehci.mod
elf.mod
eval.mod
exfat.mod
exfctest.mod
ext2.mod
extcmd.mod
fat.mod
file.mod
fixvideo.mod
font.mod
fshelp.mod
fs.lst
functional_test.mod
gcry_arcfour.mod
gcry_blowfish.mod
gcry_camellia.mod
gcry_cast5.mod
gcry_crc.mod
gcry_des.mod
gcry_dsa.mod
gcry_idea.mod
gcry_md4.mod
gcry_md5.mod
gcry_rfc2268.mod
gcry_rijndael.mod
gcry_rmd160.mod
gcry_rsa.mod
gcry_seed.mod
gcry_serpent.mod
gcry_sha1.mod
gcry_sha256.mod
gcry_sha512.mod
gcry_tiger.mod
gcry_twofish.mod
gcry_whirlpool.mod
geli.mod
gettext.mod
gfxmenu.mod
gfxterm_background.mod
gfxterm_menu.mod
gfxterm.mod
gptsync.mod
grub.efi
gzio.mod
halt.mod
hashsum.mod
hdparm.mod
hello.mod
help.mod
hexdump.mod
hfs.mod
hfspluscomp.mod
hfsplus.mod
http.mod
iorw.mod
iso9660.mod
jfs.mod
jpeg.mod
keylayouts.mod
keystatus.mod
ldm.mod
legacycfg.mod
legacy_password_test.mod
linux16.mod
linux.mod
loadbios.mod
loadenv.mod
loopback.mod
lsacpi.mod
lsefimmap.mod
lsefi.mod
lsefisystab.mod
lsmmap.mod
ls.mod
lspci.mod
lssal.mod
luks.mod
lvm.mod
lzopio.mod
macbless.mod
macho.mod
mdraid09_be.mod
mdraid09.mod
mdraid1x.mod
memdisk.mod
memrw.mod
minicmd.mod
minix2_be.mod
minix2.mod
minix3_be.mod
minix3.mod
minix_be.mod
minix.mod
mmap.mod
moddep.lst
modinfo.sh
morse.mod
mpi.mod
msdospart.mod
mul_test.mod
multiboot2.mod
multiboot.mod
nativedisk.mod
net.mod
newc.mod
nilfs2.mod
normal.mod
ntfscomp.mod
ntfs.mod
odc.mod
offsetio.mod
ohci.mod
part_acorn.mod
part_amiga.mod
part_apple.mod
part_bsd.mod
part_dfly.mod
part_dvh.mod
part_gpt.mod
partmap.lst
part_msdos.mod
part_plan.mod
part_sun.mod
part_sunpc.mod
parttool.lst
parttool.mod
password.mod
password_pbkdf2.mod
pata.mod
pbkdf2.mod
pbkdf2_test.mod
pcidump.mod
play.mod
png.mod
priority_queue.mod
probe.mod
procfs.mod
progress.mod
raid5rec.mod
raid6rec.mod
random.mod
read.mod
reboot.mod
regexp.mod
reiserfs.mod
relocator.mod
romfs.mod
scsi.mod
search_fs_file.mod
search_fs_uuid.mod
search_label.mod
search.mod
serial.mod
setjmp.mod
setjmp_test.mod
setpci.mod
sfs.mod
shift_test.mod
signature_test.mod
sleep.mod
sleep_test.mod
spkmodem.mod
squash4.mod
syslinuxcfg.mod
tar.mod
terminal.lst
terminal.mod
terminfo.mod
test_blockarg.mod
testload.mod
test.mod
testspeed.mod
tftp.mod
tga.mod
time.mod
trig.mod
tr.mod
true.mod
udf.mod
ufs1_be.mod
ufs1.mod
ufs2.mod
uhci.mod
usb_keyboard.mod
usb.mod
usbms.mod
usbserial_common.mod
usbserial_ftdi.mod
usbserial_pl2303.mod
usbserial_usbdebug.mod
usbtest.mod
verify.mod
video_bochs.mod
video_cirrus.mod
video_colors.mod
video_fb.mod
videoinfo.mod
video.lst
video.mod
videotest_checksum.mod
videotest.mod
xfs.mod
xnu.mod
xnu_uuid.mod
xnu_uuid_test.mod
xzio.mod
zfscrypt.mod
zfsinfo.mod
zfs.mod


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Tue Oct 31, 2017 8:11 am    Post subject: Reply with quote

generallylost wrote:
===============
/boot#ls

config-4.12.12-gentoo
EFI
grub
initramfs-linux-fallback.img
initramfs-linux.img
initramfs-linux-lts-fallback.img
initramfs-linux-lts.img
intel-ucode.img
System.map-4.12.12-gentoo
vmlinuz-4.12.12-gentoo
vmlinuz-linux
vmlinuz-linux-lts
----------------------------------------------------

/boot/EFI#ls

BOOT
gentoo
grub
------------------------------------------------------
/boot/EFI/BOOT#ls

BOOTX64.EFI
What is the origin of /boot/EFI/BOOT/BOOTX64.EFI?

generallylost wrote:

-------------------------------------------------------
/boot/EFI/gentoo# ls

grubx64.efi
imho, the /boot/EFI/Gentoo/ directory should be reserved for a Gentoo EFI stub kernel.

Unfortunately, Gentoo's grub documentation is a mess. So I can only recommend you to install rEFInd and, once it works, to remove all grub stuff.
Back to top
View user's profile Send private message
generallylost
n00b
n00b


Joined: 30 Oct 2017
Posts: 5

PostPosted: Tue Oct 31, 2017 8:33 am    Post subject: Reply with quote

The Origin of it? Sorry, I don't quite understand. Where did it come from? I don't recall if I created it myself or it spawned via the installation process.
Back to top
View user's profile Send private message
generallylost
n00b
n00b


Joined: 30 Oct 2017
Posts: 5

PostPosted: Tue Oct 31, 2017 8:38 am    Post subject: Reply with quote

Thank you kindly for the advice, Charles.
When you say that I should delete all the grub stuff...what do you mean exactly? absolutely everything grub from both systems and let rEFInd do everything?

I'll definitely look into this...hopefully I don't break my system and can no longer get into either! lmao

Thanks again.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Tue Oct 31, 2017 8:57 am    Post subject: Reply with quote

generallylost wrote:
Thank you kindly for the advice, Charles.
When you say that I should delete all the grub stuff...what do you mean exactly?

On one computer usually you have only one bootloader. So if you have a working arch, ubuntu, debian, whatever, and install Gentoo, you would use the existing bootloader.
Once rEFInd works for maybe Gentoo, then it should also work for all the other systems on that computer. So grub could be removed from them all.
Sorry for not being more clear in my first answer.
Back to top
View user's profile Send private message
generallylost
n00b
n00b


Joined: 30 Oct 2017
Posts: 5

PostPosted: Tue Oct 31, 2017 8:12 pm    Post subject: Reply with quote

No, don't be sorry at all. I appreciate your help. Thank you again!
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