You are not logged in.
Hello, I'm a little lost right now. I used windows' default 100MB efi partition when I installed arch and a few updates later I ran out of space. So I created a new fat32 partition with esp flag at the end of the disk, copied all files over, updated /etc/fstab, ran
sudo grub-install --efi-directory=/boot/efi
# (it couldn't find the efi dir by itself, I suppose it wants the dir on the old partition?)
grub-update -o /boot/grub/grub.cfg
# and finally
pacman -Syu
# which installed a new kernel (linux-6.0.11.arch1-1).When I rebooted the old kernel was loaded (uname -a didn't match pacman -Qi). I downgraded the kernel, ran pacman -Syu again, same problem.
I suppose I missed a crucial step when I switched boot partitions. Can you tell me which one?
PARTED:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition msftdata
2 106MB 30.0GB 29.9GB ext4 root
3 30.0GB 256GB 226GB ext4 home
4 256GB 256GB 524MB fat32 boot boot, esp---
FSTAB:
# /dev/sda2
UUID=b76b6e2f-2efa-47ce-bea8-479e46f70d22 / ext4 rw,relatime 0 1# /dev/sda4
UUID=6425-774B /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2# /dev/sda3
UUID=abcd7dda-b55d-4631-9e7a-3a14e448e952 /home ext4 rw,relatime 0 2/swapfile none swap defaults 0 0
---
❯ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Dec 10 13:04 6425-774B -> ../../sda4 (new /boot)
lrwxrwxrwx 1 root root 10 Dec 10 13:04 abcd7dda-b55d-4631-9e7a-3a14e448e952 -> ../../sda3
lrwxrwxrwx 1 root root 10 Dec 10 13:04 b76b6e2f-2efa-47ce-bea8-479e46f70d22 -> ../../sda2
lrwxrwxrwx 1 root root 10 Dec 10 13:04 E8E8-1248 -> ../../sda1 (old /boot)---
/boot
├── EFI
│ ├── Boot
│ ├── EFI
│ └── GRUB
├── grub
│ ├── fonts
│ ├── grub.cfg
│ ├── grubenv
│ ├── locale
│ ├── themes
│ └── x86_64-efi
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── System Volume Information
└── vmlinuz-linux
Last edited by lincore (2022-12-10 12:32:35)
Offline
Ok I fixed it. Apparently 'grub-install --efi-dir' expects the efi partition root (/boot), not /boot/EFI. I don't know why so many sources say otherwise, maybe the behaviour was changed?
Offline