Hey,
I recently did a BIOS Update and my Windows+Linux were connected. For some reason Windows overwrite or just did write the Bootmanager to my EFI where my Linux usually was listed.
My Windows is on a SSD and I fixed that part. Created a new EFI partition and so on.
The Linux part is on a NVME. There I have a partition for my EFI part and a second partition is my root. I deleted the Bootmanager folder of Windows on that first partition. After that I did grub-install and grub-mkconfig. So mounted everything and executed that without any errors. I checked with efibootmgr -v and my bootloader id was present. But if I boot my nvme it always end in the grub shell. My linux does not appear. Did I miss something ?
#[Solved] GRUB does not list Linux anymore
519 messages · Page 1 of 1 (latest)
chroot, mount the efi, and reinstall the kernel, kernel heders, as well as any u-code package you have
@mighty pike should probably tag you as it's an hour later
oh and then after that re-run the grub-mkconfig
sorry, I'm kinda amped up from a real life situation, adnrenaline and near panic attack.
I did get a bit further. He see my bootloader id now. But when I try to it, it can't mount my boot anymore. Should I still try the way you described ?
yes, iso, chroot into root, with efi mounted, reinstall the kernel and kernel headers, and any ucode you have, and then redo the grub-mkconfig.
Also whilst there run lsblk -f and make sure that your /etc/fstab has that UUID for the /boot
Hope you are ok. More important is your health then my failing boot. ^^
just more liable to miss out obvious things, like the fstab, for example
mount /dev/nvmep1 /mnt/boot
That is correct or ? I did this all time but now where you say EFI mounted I'm not sure if that was my fail.
if the efi is p1, then yeah, did you do that before or after chrooting?
First I mount my root and then the boot
<command to print output> |& curl -F 'f:1=<-' ix.io
share lsblk -f
Is it ok if I share it as picture ?
if you don't have internet for some reason I guess, but then I don't see how you'd do pacman commands...
why not just do it how I said?
.s ix
<command to print output> |& curl -F 'f:1=<-' ix.io
Is it possible in chroot to post it in discord ?
share link
Hm, he did not provide me link. Just said no results to fetch.
try running grub-mkconfig -o /boot/grub/grub.cfg in chroot.
the problem appears now to be the fstab
Now I have wait
oh
should be like that
it's not showing the uuid, which is very strange
the issue isn't grub
the issue is you remade a partition
so the partition has a new UUID, as the UUID will change
but your fstab has not been updated with the new UUID
Ahh
if grub is an issue you don't need to reinstall grub, just follow the kernel installation grub-mkconfig I said above
Yeah, I did it now, still no UUID there.
I did run the ix.io again. It's the same link.
For the disk self or for the Partition ? Otherwise there is no UUID that he can find
Is for the /dev/nvme0n1
http://ix.io/4Ino that's it if I do it on first Partition where my boot is
Omg got you wrong sry
That's what you wanted see, sry my fail.
Could it be he generate the uuid for my root but not the boot ?
It looks so different of the size
I checked out the grub.cfg. There is a menu entry for the root. With the 'Arch Linux, with Linux linux (Fallback initramfs)' it's setting the first Partition (Boot Partition) as root.
I think there should be another entry for the boot or not ?
When I go with the submenu with fallback. I can see that. Still sayin can't boot and emergency mode.
her, I see UUID's!
awesome
show me cat /etc/fstab
I bet boot does not show as 43AE-C5D4
whilst you're there reinstall your kernel and re-do the grub-mkconfig command
(though mount the vfat partition first obviously)
(also spoken to the vet on the phone, they think my dog is absolutely fine, so just gotta calm myself down)
Reminder: That is not chroot. Above the last link was made while chroot.
There he listed it too
(Nice to hear, maybe I got it wrong. I thought it was the first time you had something.)
regardless, did you compare the fstab to the above uuid?
How do you mean that with the vfat first ? Because without mount /mnt first I can't mount it before that
do cat /etc/fstab and tell me the UUID of your /boot
that's interesting, it's the same as what you showed above
is the image above old?
That was some minutes ago. When I did boot with fallback initframs
I did reinstall linux linux-headers amd-ucode. That's correct or ?
yeah, and then you redid the grub-mkconfig right?
Now I'm in chroot again
I assume your CPU is amd
Yeah Ryzen
Like above that mentioned.
After that I did again cat fstab
It's the same link.
So I redid right now again
Interesting to is, can't enter emergency mode with "normal" arch. So my keyboard is not working then. Only if I start with the option above
efibootmgr -v you mean ?
don't think you'll need the v
BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0009,0001,0000,000A
Boot0000* arch_grub HD(1,GPT,32bab553-e9d3-ab45-939a-6741991a734c,0x800,0x190000)/File(\EFI\ARCH_GRUB\GRUBX64.EFI)
Boot0001* Windows Boot Manager HD(3,GPT,c2825457-cf15-4422-98c3-c8cd77404634,0x3a101800,0x12c000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0009* UEFI OS HD(1,GPT,32bab553-e9d3-ab45-939a-6741991a734c,0x800,0x190000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
Boot000A* UEFI: Intenso, Partition 1 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/Pci(0x8,0x0)/Pci(0x0,0x1)/USB(1,0)/HD(1,GPT,96ff0129-376f-4fb5-aa18-dfa4116051ec,0x800,0x1d7d7d0)0000424f
that's interesting
Boot0009* UEFI OS HD(1,GPT,32bab553-e9d3-ab45-939a-6741991a734c,0x800,0x190000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f is that perhaps your old one?
Yes
Hm sure, I press F11 to choose. Then there is that entry you mentioned and my arch_grub. I press arch_grub.
So when I start my PC and choose what to boot
Because if I choose that what you mentioned he is going into grub shell
Does it interfere with the other one ?
looking at it again I think it's actually a sort of, duplicate entry
try sudo efibootmgr -n 0000 just to be sure, and see if that works, if it doesn't, test something else for me, by editing the fstab to not mount /boot (just comment it out with # at the start) and then boot, I cannot for the life of me work out why it would not show all the options, or why it has an issue with your vfat partition
So 0000 is the arch_grub ? That's the boot up where I can see my Arch listed ?
next step I would say is remake the fat 32 filesystem on your efi, mount it, chroot, reinstall grub, reinstall kernel and ucode, re-do the grub-mkconfig again :/
.s tias
Not working 😦
By that you mean just to format it again ?
essentially
what commands have you run?
Before mounting
mkfs.fat -F 32 /dev/nvme0n1p1
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/boot
sudo arch-chroot /mnt
sudo pacman -S linux linux-headers amd-ucode
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=arch_grub --receck
(EFI folder was not present, so I created it at boot and rerun the command)
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=arch_grub --recheck
That failed.
you should mount it to /boot/efi if that's what you want to do
Ahh
oh wait
I see
you made /boot/efi
that should be fine actually I think
I do not understand, at all, why that has not worked.
So i can leave EFI folder and just write '/boot' ?
Fstab seems to be fine too
Looks like before everything
I try again to start it
hmmm
go into /boot, delete /boot/EFI, and then do:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_arch --recheck
just to be sure that that isn't related to the problem, and then reinstall the kernels again and redo the mkconfig
My fail, I said I created it but did not mount on /boot/EFI again. But I still did your way described way. Sadly now I'm having a different problem
what's the new issue?
yeah that's expected
the uuid should change after mkfs
so just change it to the new one
Through chroot or emergency mode ?
mount /mnt and /boot or /boot/efi and then before chrooting, try lsblk -f
Ach ok
chroot will be best way
don't know what was going wrong before but hopefully this is the end of it
if changing the UUID doesn't work temporarily comment out /boot and we'll try from live
After that I need to bake you a cake
I'll settle for a body guard for the dog during walks.
let me know if you can't get the uuid either inside of or outside of chroot
Then normal exit ?
yes, and then cat it to make sure you did it right
best to have both the uuid and the fstab uuid entry on the screen for comparison
Uff, did it. Now if I try to boot again failed to boot ... and 100% sure fstab is correct
So failed to mount boot again
it's failing to mount /boot?
Yes, instantly
did you remake the partition at the start?
No only formatting
so it's not like you changed it to be linux file system
gonna repeat myself here, you didn't use cfdisk or fdisk or anything similar?
Inside chroot btw I don't see the UUID
No
I did not touch the Partition
Only formatted it.
hmmm
That was before chroot
That was the new ID and I just enter it.
Seems for me to be correct
yeah even if I correct the address this is still wrong
can you recheck the link?
I also do wonder what sdb1 is
okay so
we're gonna comment out the /boot line with #
then we're gonna reboot
and then when it loads into the live system we're going to directly copy and paste the uuid
because something is amiss and I cannot see what
Sry but where is # on the keyboard en ? I have a ger and can't find in Google pictures of layout
just to the left of the enter button for me
alternaively, try changing the 2 to a 0 might work?
just under ]
just to the right of '
just above shift
just to the left of enter
it's the same on my keyboard, so not sure what's up
the very worst comes to the very worst:
cp /etc/fstab /etc/fstab2
then delete the entry from /etc/fstab
save, reboot
Like that yeah ?
cool
Yeah just copied it and parsed
wait, how?
Vim
did you manage to boot into your system live?
I don't understand where you copied it from?
yeah but how did you access discord from chroot?
ohhhhh
yeah
okay
lol
stupid cookies
now you can hopefully boot up correctly
though don't update your kernel or anything without /boot mounted
That's how my fstab look now
yeah, good
Ok I will just exit and reboot
this is, not a sustainable option for keeping your computer working to be clear, just a temporary setup
in fact, if this doesn't work, why am I making it difficult
iso, mount /mnt mount /mnt/boot, genfstab
maybe mount your windows partition somewhere as well
like mkdir /mnt/mnt/windows, mount ntfs /dev/<windows> /mnt/mnt/windows
I'm trying booting it, but it will timeout again I think.
if it does it'll likely show a different issue
Or do nothing like it seems
when you say nothing, what is it showing you?
I don't understand how that would have an effect
it feels like there's information missing
shall I see if someone more intelligent than me is around lol
I'm not sure either. I try to explain why I did the BIOS update.
I bought a new GPU (7700XT). Then I had some issues because it was laggy while gaming. I did a BIOS update. Before that I deinstalled my Nvidia driver from Linux and windows. After Windows somehow wrote his Boot manager to the Linux Boot Partition.
@civic sand can't boot with /boot active in the fstab (the uuid and everything else looks right), when we comment out /boot, we get this. This all started with a bios update apparently. But I don't know how that would effect these things.
ohhh
you don't have GPU drivers installed?
chroot with /boot mounted, and then install the nvidia drivers
But I have now the AMD RX 7700XT there. Still I should install it ?
oh wait, amd?
Yeah that's my new card
okay, yeah, install the drivers for that card
That's why I removed Nvidia before using that
Mesa is the correct driver or not ?
Hm I did install mesa or it is installed.
but I'm not really an amd person
I try the propertery
yeah you do want mesa installed
but not just mesa?
xf86-video-amdgpu - did you install that?
I did just install mesa. I thought that was enough
Wait I look
Nope...
Installed it now
Should I change the fstab now too ?
https://wiki.archlinux.org/title/AMDGPU_PRO
that's the proprietary one if you want it instead, but, you can try that later
you have /boot mounted to right?
Yes
yeah can try edited the fstab
did it trigger a mkinitcpio out of interest?
if not, reinstall kernel again
No it didn't
have you got linux-firmware installed?
Make sure you do not have nomodeset or vga= as a kernel parameter, since amdgpu requires KMS.
Check that you have not disabled amdgpu by using any kernel module blacklisting.
Linux Firmware is installed already
might be worth doing an -Syu whilst you're there as well
Did I get it correct that I need specify amdgpu in modules mkinitcpio ?
In conf file
So, it should now be everything be ready.
Do I need to do a grub-mkconfig again ?
Do you have idea what that's mean ? Unknown Filesystem type vfat ?
it seems to say on google it's likely a kernel version mis match, but, you reinstalled grub, so that makes 0 sense to me
I have no idea too anymore. I did downgrade my kernel from 6.5.5 to 6.5.3. Now it's stay endless in that screen. But not even throw any error something else
No timeout or so.
lol
Maybe you know that. When I start the Linux initframs it says uname 6.5.3
Even before I downgradr
But that should be normal or not ?
if uname says that, make sure that pacman -Qi linux is the same version, if it's not, install that version
that's the iso lol
Hm, maybe I get something wrong. What you mean with iso ? Mean the live USB ?
yeah we don't want the usb, we want the actual system itself
That's not working when I'm as chroot in ?
Ahh, now I get I think
That's what I use
Can't use keyboard by the normal
But I think I did it worse with the downgrade.
I upgrad again with chroot
No connection to create link
But like I said it's the fallback initframs. If I use the 'Arch Linux' normal one, my keyboard is not working. There it shows me the emergency mode too but can't enter something
can you chroot in and install 6.5.3? or have you already done that?
So I did it in that mode where I'm currently in. Should I try it again but now in chroot ?
yeah try it in chroot
Should I just downgrade like I did before ?
Then normally exit correct ?
you had boot mounted right?
Yes
yeah try unmounting and rebooting
Now it stays again in a loop. But first time the display is black for a second and then he seems to start again showing.
can you access TTY?
Omg forgot about that completely... yeah I can
don't need to upload it
lsblk -f will tell you what is and isnt mounted
just a are both mounted or not
I'd try an -Syu now I think
presumably it triggered a mkinitcpio?
Yes it installed 6.5.5 Linux again
Could be a coincidence, and that the kernel has a bug?
Yeah I tried to Google it now too. Seems like it does not matter what we do. Should I maybe just for the purpose try the 6.4 kernel ?
I can't see that doing anything but sure?
@pastel sage in case you're about, know much about needing to downgrade the kernel to get it to work because the uname -a and pacman -Qi versions are different?
Or should I try the linux-lts ?
you need to sort out the mismatch between your pac-man hooks and how you generate your boot environment
going forward i started forcing ALL drivers needed to get me to default target
wait...could not having nvidia drivers and having a hook for nvidia be causing this?
in ls /etc/pacman.d/hooks/is there an nvidia hook?
it’s possible, i’ve had pac-man hooks fail silently on kernel upgrade but still complete the system upgrade despite no working boot environment
if that's the issue I'll laugh my ass off
and by fail silently i mean allow the upgrade to complete and just give you the wall of text that is easy to ignore that it totally failed
Can you explain that part to me in German ? I did not get the problem 100%
I don’t speak german lol
ha it is because of my job and yea it’s german lol
most ppl think it’s from the techno song
I chrooted but hooks aren't even present
On mkinitcpio are there any errors?
Is there a command that I can check that or logs ?
Easiest way, reinstall the kernel 🤣
Is that so correct ? The fallback by 'Building image from preset' is a bit confusing for me
Still no hooks there hm
Mkinitcpio using default configuration should be fine I think
And this?
can you show me the end of the mkinitcpio?
Mean in the conf ?
I mean the end of this?
what's the vboxhost thing?
ah fair
Is it possible just to install linux-lts without removing linux?
Ahh I need to remove it and the do a grub-mkconfig or ?
You can but I don’t think it’ll solve anything
I’m busy right now so I can’t stick around to help, but that could be due to the boot partition not being mounted properly (fstab issue).
Hm
Appreciate the response, the fstab seems correct, tbat was my first thought too though
Remember if you do try the lts kernel to install the lts headers
You were right, it changed nothing.
Sorry, wish I was wrong
your grub is probably pointing somewhere else
could you mount only your root
and ls /mnt/boot
if you see vmlinuz there, then there's your kernel
if ur missing vmlinuz and for some reason pacman kernel install isnt putting it there, you might temporarily be able to get away with shoving a kernel binary in there urself
depending on what the uname -a and pacman -Qi are this might need a specific kver
and depending on that kver it could be unavailable from repos
the thing is they dont know where grub is pointing to
theres another kernel grub is pointing to
wtf
that can happen
manually run os prober see what it does
@mighty pike read iobz messages from here
it might have old concept of where kernel should be
do this first
i wanna know if it's inside the root filesystem and not the esp
Thing is though that efi got wiped, and grub reinstalled, then the kernel reinstalled, then the mkconfig done
Yeah I try it right now
lol is it unmounted and installing in directory /mnt/boot and not actually boot part
mount your root first
what does it show?
Ahh wait, my mistake. I did chroot
Then ls /boot
nah it's because sometimes when people install grub if you forget to mount your esp specially when in fstab it's on /boot
it will get installed on /boot of the root filesystem and not the esp
And that’s with efi not mounted?
Yes
@lofty turret damn that’s a good catch
@mighty pike you did grub install on /boot but without efi mounted to /boot
Sry, my english is not so good and I'm not 100% aware of the problem
just change the mountpoint of the esp in fstab
and update your kernel now
But that I need to do as chroot correct ?
yes
That's my current fstab
But if I update the kernel it should be mounted to boot ?
Tbh, I'm not sure what to do right now sry.
youre at chroot right?
change /boot to /boot/efi in fstab
mkdir /boot/efi
pacman -S linux
exit
reboot
Yeah, but without mounting boot correct ?
yeah
and now, from now on you will no longer mount it to /boot whenever to chroot
you will now mount it to /boot/efi since that's what we changed it to
Because I did no changes now in the fstab. I didn't get that what I need to change there
/boot to /boot/efi ?
you can open it again in a text editor and change it
Thx guys for your help. I will restart
Hm, still sayin that fails to boot. Now logically /boot/efi.
did you pacman -S linux at chroot?
just to test if it's actually what it's pointing
could you mount only your root and
rm /mnt/boot/vmlinuz-linux
then reboot and see if it proceeds to boot
if it does then that isnt where grub is pointing
if it doesnt try pacman -S linux again in chroot only mounting root
I think it's the first. I got again failed to mount /boot/efi
ok so,
mount your root
mount your efi partition to /mnt/boot/efi
chroot in
grub-install --target=x86_64-efi --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg```
exit and reboot
@mighty pike@mighty pike
i shouldve just said earlier to reinstall grub, mb quickest solutions sometimes go over my head
-efi
Hm I don't know if I'm doing something essentially wrong. Still got the error..
I did exactly that order.
aight we'll just use that
umount /mnt/boot/efi
rm -rf /mnt/boot/*
mount /dev/fkjfbndfkds /mnt/boot
arch-chroot /mnt
pacman -S linux
#not needed but just to make sure
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg
also change back the thing on fstab to /boot
if this still doesnt work im sorry i have no more ideas
No chroot after mount boot ?
there is
Ahh
Hm, thx for your help guys @jagged osprey @lofty turret @mint flicker Still not working but I don't want to waste your time anymore.
vegancookies, i0bz, and x86asm_ received a thank you cookie!
any error message?
Just failing to mount
The same error.
So the boot. Idk, if it is kernel relevant. With 6.5.3 I don't get that error but it still don't boot up completely. But I can use the console there. That error is so weird, make no sense to me
GPT or MBR
GPT
I don't consider it a waste of time, clearly there's a knowledge gap we all have, and experiences like these help us bridge them 🙂
Yeah of course, but it's your free time. For me that is cool too, learned a lot really. I don't want to steal someones free time. ^^
For me it's like that, I like to work with people who are motivated like me. I had that at a company where I was trainee. Sadly where I'm now there is big leak of passion. Was today a bit like the old days. ^^
have you backed up everything on your arch partition?
Not now. I want to try it later again, just sitting since yesterday. I needed a break. The thing is, even if I would delete everything and do it again. I'm not sure if it is working then. My lvim conf is safe and so on like some code projects. That's why I think what is the way to go and reading threads right now. But we did already the most things from now what I read. The only thing is the grub. I saw someone he said he did grub not in chroot and then grub-mkconfig
And I think it could relate to what iod said, but I still don't understand 100% what the reason is
I did check after the last try with fdisk if my boot partition is really an EFI System. That was my last attempt until nown
just want to make sure if you want to just try reinstalling from scratch that you don't lose any data
So finally I got a bit further. I can enter tty with 6.5.5 kernel. I saw that my root was vmlinuz and after deleting it, he did not find it. So somehow that grub pointed there. I can get in tty now. But it stays in the loading screen. So I think that is related to what @lofty turret said.
[Solved] GRUB does not list Linux anymore
So is the new issue the graphics drivers?
Yep ^^
So it's in a loop. But tty is working. Journal said sddm display server number find. But not sure if that could be the reason for it.