#[Solved] Grub Update
400 messages · Page 1 of 1 (latest)
what website
yeah but replace grub-install ... with
you know
Can I mount the EFI partition while the computer is running?
yeah
many people have it always mounted
beats me why but you can technically do it
So I should run:
$ sudo pacman -Syu
$ grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB
$ grub-mkconfig -o /boot/grub/grub.cfg
right?
mhm
Got it
grub-install: error: /boot/EFI doesn't look like an EFI partition.
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
|-sda1
| vfat FAT32 4B95-E7F5
`-sda2
LVM2_m LVM2 KGrk8P-sxLR-r2bO-Rxhd-6GSV-Aaov-c8y6j6
|-volgroup0-lv_root
| ext4 1.0 6e51680b-0108-4b0e-93a8-9688047ace06 1G 91% /
`-volgroup0-lv_home
ext4 1.0 dd7f016d-f500-458b-a029-efeae6fdb983 875G 46% /home
your boot partition is likely on
/dev/sda1
how are you mounting it?
what's your fstab (cat /etc/fstab)
I tried running mount /dev/sda1 /boot/EFI, but got an error
what error
❯ sudo mount /dev/sda1 /boot/EFI
mount: /boot/EFI: unknown filesystem type 'vfat'.
dmesg(1) may have more information after failed mount system call.
what's your fstab (cat /etc/fstab)
# /dev/mapper/volgroup0-lv_root
UUID=6e51680b-0108-4b0e-93a8-9688047ace06 / ext4 rw,relatime 0 1
# /dev/mapper/volgroup0-lv_home
UUID=dd7f016d-f500-458b-a029-efeae6fdb983 /home ext4 rw,relatime 0 2
/swapfile none swap sw 0 0
your boot partition doesn't seem to be mounted anywhere
only your main root partition is
Alright
Yes
what's in it
EFI grub initramfs-linux-fallback.img initramfs-linux-lts-fallback.img initramfs-linux-lts.img initramfs-linux.img intel-ucode.img vmlinuz-linux vmlinuz-linux-lts
hmmm
EFI and grub are folders
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
EFI is empty, grub has stuff in it
try installing grub to /boot
instead of
/boot/EFI
oh wait hold on
is your pc
uefi or bios
probably uefi given the fact
uefi I'm pretty sure
you have a vfat?
sda1 is vfat
ok try the commands i've given to install and configure grub to /boot
does it matter what's in /boot/grub?
no that's where the configuration files for grub are normally stored
grub-install: error: /boot doesn't look like an EFI partition.
what's mounted currently?
huh???
cat /proc/mounts
what does configuration have to do with where you install
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
dev /dev devtmpfs rw,nosuid,relatime,size=16385868k,nr_inodes=4096467,mode=755,inode64 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/mapper/volgroup0-lv_root / ext4 rw,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=19026 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,nr_inodes=1048576,inode64 0 0
/dev/mapper/volgroup0-lv_home /home ext4 rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=3280248k,nr_inodes=820062,mode=700,uid=1000,gid=984,inode64 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=984 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=984 0 0```
pro tip: mount command (with no args)
✅
anyways it doesn't look like the efi partition is mounted to /boot
but the /boot directory
is there
could you unmount /boot
and remount /dev/sda1 to /boot
the efi partition is /dev/sda1 right? just to be clear
well yes since that's the vfat file system
It doesn't look like that's mounted at all
what why
i mean
why not /mnt or /boot/efi or /efi
mounting to non empty directories generally doesnt make sense
I'm not sure anything is mounted to /boot right now
hm
just forgot this isn't systemd boot
but grub
I have systemd
empty
doesnt matter :p
yeah pretty much everyone does if using arch
mount | grep boot?
empty
some ppl have esp mounted to /boot
most common esp partition mount point
Can I just mount /dev/sda1 to /mnt or something temporarily? will that work?
but yea since it's full nah
u can mount it wherever for now really
what error did you get when you tried to mount the boot partition again?
mount: /mnt: unknown filesystem type 'vfat'.
dmesg(1) may have more information after failed mount system call.
yeah ik
Just got it again
then sda1 instead of boot?
dmesg | tail
can you run it
and see if that helps
it can
source??
also esp partition means efi system partition partition
no run has run a poll yet on where they mount their partition
plus yes i know esp is efi system partition 😭
installation guide has /mnt/boot as the mount point and most beginners follow that anyways
so you wouldnt know
Well yes but no
/boot/efi and /efi are super common esp mountpoints
many people use it, especially when using installers
is that dmesg
Yes
sudo dmesg | tail
we wouldn't know where he originally mounted the esp anyways
gave me that
do u have dosfstools installed?
i highly, highly doubt its needed
Yes
¯_(ツ)_/¯
what is the output of lsmod | grep vfat
nothing
Yes
modprobe: FATAL: Module vfat not found in directory /lib/modules/5.19.4-arch1-1
5.19.4-arch1-1
it's probably a different version installed on their system since they updated

Yes I have linux installed 
q has version
oh i wasnt sure about that
it says 5.19.5
reboot?
no
can't
yeah im fairly sure you need to use an iso at this point
ah
reboot = gurb bork
oh true
any last ditch efforts? try to load a kernel module anyways?
maybe you need older kernel headers
not sure
btw is this in a live usb
no
or in your current arch install
yeah
usb drive, followed a video
current install
thats irrelevant rn
it doesnt rlly matter
I only learned that later, and I know it was up to date
this is like way past install and has to do with grub being broken on all the arch stuff
oh ok
I think I still have the same usb around
do I need to update it or will a year(ish) old iso still be fine?
No, Debian was
💀
eh it'll probably work fine if u chroot before running the grub install stuff
Why would I do that?
what
why??
That's like 20 steps ahead of this
tofu why do you keep insisting on never using anything you consider flawed ever
that would make no sense
i mean unofficial guides and manjaro
we get it arch is great
now can we tackle the real problem
anyway @vital crane so it seems like you dont have the driver for mounting vfat drives
so im not quite sure how youd get that
It looked like I have a driver, it's just not turned on
right so
just boot up the iso
yeah but a working one
oh wait
Like, I have mtools installed
To downgrade?
usually it's fixed by rebooting but since the issue is a possible grub breaking that's not a great idea
mhm
right but before we go to the iso we could try this
No matches found
right and then you'll have drivers to mount your efi partition
oh well no harm in booting up the iso really
found it
or that
~/tempcache
Nothing still
so no output or
no output
try mounting esp to /mnt
Okay no error this time
do you hate cow that much
❯ ls /mnt
EFI

Installation finished. No error reported.
this but /mnt not /boot/EFI
do the gurb shit and dont forget to update ur kernel again before u reboot
/mnt or /mnt/EFI?
then try rebooting
make sure you didn't grub-install'ed in root (/mnt)
should be /mnt
I ran sudo grub-install --target=x86_64-efi --efi-directory=/mnt/EFI --bootloader-id=GRUB

welp im sure it works either way
Hmm
i hate wurgchamp
what
wug
Alright will it overwrite itself?
what
If I run it with the right directory now?
also you might wanna reinstall the new kernel
no
youd have to delete it manually
I will do that then
ummm... enjoy? idk
lmao
np
Rebooted, it works
cool
Time to do this on my laptop as well
now you can pacman -Syu if you want the latest kernel
I did before the reboot
ok but this time mount the esp first so you dont have to downgrade kernels
Yeah probably a better way to do it
@pseudo dew Sorry for the necro ping, but I’m having issues again.
This time it’s on my laptop, which is running effectively the same system. I ran grub-install, restarted, and it failed. I booted a usb, chrooted in, ran grub-install in the chroot, rebooted, and it’s still not working
nHail
Here is the exact message shown when I turn on the laptop:
Welcome to GRUB!
error: symbol `grub_debug_malloc’ not found.
Entering rescue mode
grub rescue>
This is traditionally a mis match in how arch was installed and how grub was installed.
When you boot the iso does it have the arch logo or not at the first menu?
No. I got it from the official mirror list though
What is the grub install command you used?
Up to you, but it implies if not that you have a uefi and not bios boot
I have UEFI, yes
What’s the grub install command you used?
I'm checking
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
Run from inside the chroot
Interesting, that looks right
Yeah
You sure you installed the OS as uefi?
99%, but how can I check?
I honestly don’t know
I have uefi on the computer, I know when I go into the bios screen it talks about uefi
("bios screen" being what I get to by holding f2 during startup, maybe not the right name)
There is an efi there
Have you tried deleting grub, reinstalling it, reinstalling the kernel and then re mkconfig?
I don’t think it necessarily does
Try doing that in chroot with efi mounted is my suggestion
Would that just be rm -rf /boot/EFI?
If that’s where you installed it yes but be careful you don’t delete another bootloader E.G. if you have windows installed and that’s also in the EFI partition
Nope, no dual boot
# ls /boot/EFI
EFI boot grub
Does this look like an average grub install?
EFI grub initramfs-linux-fallback.img initramfs-linux.img vmlinux-linux
I’d just nuke all of /boot and then:
Install grub
Install linux
Install intel-ucode or amd-ucode assuming relevance
And then run grub-mkconfig -o /boot/grub/grub.cfg
lsblk says /dev/sda1 is on /boot/EFI, which is where I mounted it.
Can install to boot or boot/efi
Alright, so uh
Can you provide more detail?
What do you need more detail on?
So I umount /dev/sda1, rm -rf /boot, then remount it where?
Don’t need to unmount it
Well, you will be not first
You want to wipe that partition
dd from /dev/zero?
I’d rm -rf the boot directory
But with the efi mounted
cannot remove /boot/EFI: device or resource busy
So I do need to unmount it?
I’ll go to my computer
do lsblk -f
let me see what you've mounted and unmounted basically
and if I sort out your grub issue maybe you can sort out my grub issue XD
try: rm -rf /boot/*
cannot remove /boot/EFI: device or resource busy again
rm -rf /boot/EFI/*
Worked
now unmount it
wipe /boot/* like above
and if you want to install it to EFI just do mkdir /boot/EFI or /boot/efi etc. and remount it there
and then that's your ESP for the grub install
Finished, no error reported.
are you amd or intel?
Intel
pacman -S linux linux-headers intel-ucode
replace that with the kernel you want
if you use zen for instance linux-zen linux-zen-headers
then grub-mkconfig -o /boot/grub/grub.cfg
even if you installed it at /boot/efi don't modify the mkconfig line
the cfg needs to go into /boot/grub/grub.cfg
that's where grub will look for it
I don't think my wifi is on, one sec
Uh
I ran iwctl, now it just says Waiting for IWD to start...
do you need to start a service perhaps? or can you just plug Ethernet in?
systemctl status iwd says it won't run in chroot
I do have a spare ethernet cable
if it won't work exit chroot and try it and if it works rechroot
up to you which you try
it's only a temporary thing
could not contact networkmanager
exit chroot
If I connect via iwctl outside chroot, will that carry over inside?
mkconfig
Alright finished grub-mkconfig
upload a picture?
exixt, umount -a, shutdown, take the media out, boot up, and make sure that grub is selected in your bootloader if you need to
It defaults to hard drive over a usb for some reason, so I've been disabling hard drive booting whenever I use the usb lol
remember if you can boot you have to solve my grub issue
do pacman -Syu when you're fully in and then reboot, just to test things
Most things were up to date already, but I'll reboot anyways
Yep, it's booting again
lesson here, when you grub-install, destroy it with fire first
Yeah, checks out
I await your help here @vital crane :
https://discordapp.com/channels/399812551963049995/1016759433080086638/1016807143392936056
Remember to change your thread to say 'solved' 🙂

