You are not logged in.

#1 2020-11-07 14:25:08

javisid
Member
Registered: 2020-11-07
Posts: 5

Linux dont boot after every update Archlinux

Hello my friends, im newbie in ArchLinux.
I have the same problem every system update when i try reboot the server after update.
I have problem, the system doesn't mount /boot. My system boot on EFI Mode, i've /boot/efi mount point.
I have problem only after update.



 
pacman -Syu 

System dont boot, i have problems to mount /boot.

I can fix the problem from usb boot.

 
mount /dev/sda6 /mnt
  mount /dev/sda1 /mnt/boot/efi
  arch-chroot /mnt
  pacman -S linux
  mkinitcpio -p linux
  exit
  umount -R /mnt
  reboot

I've this configuration

$ cat /etc/fstab
# /dev/sda3
UUID=05438a23-ce0b-4500-9698-34706881ffff       /               ext4            rw,relatime     0 1

# /dev/sda2
UUID=0D55-EE6D          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro       0 2

# /dev/sda4
UUID=cac03599-90c4-4861-908e-8a6d93b500f4       none            swap            defaults        0 0
I've this configuration
[root@javiarch ~]# blkid

/dev/sda1: UUID="301A-397C" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ee5bf59d-3a52-4fae-bfaf-b2c1d2370f81"
/dev/sda2: UUID="0D55-EE6D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f4b6d6f6-0a6a-d448-b877-de0a6bf8e1d7"
/dev/sda3: UUID="05438a23-ce0b-4500-9698-34706881ffff" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="77ba52d3-c2b2-7741-bcf9-1951738bd397"
/dev/sda4: UUID="cac03599-90c4-4861-908e-8a6d93b500f4" TYPE="swap" PARTUUID="f01dd2b3-3388-1946-92ab-b8bc04925627"
[root@javiarch ~]# parted -l
Model: ATA ADATA SU630 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
1      1049kB  106MB   105MB   fat32           EFI system partition  boot, esp
2      106MB   1717MB  1611MB  fat32                                 boot, esp
3      1717MB  219GB   217GB   ext4
4      219GB   240GB   21.4GB  linux-swap(v1)

You can helpme? thank you very much!

Last edited by javisid (2020-11-07 14:39:25)

Offline

#2 2020-11-07 14:48:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,363

Re: Linux dont boot after every update Archlinux

How are you actually booting? If systemd-boot or efistub you make your live easier by mapping what's currently in your /boot/efi directly to /boot instead. Kernel images are written to /boot but if you load the actual image from /boot/efi you will always have an outdated kernel there.  What's the point of the second "EFI" partition that appears to be unused? What's your output for

efibootmgr -v

Offline

#3 2020-11-07 15:04:25

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Linux dont boot after every update Archlinux

Why do you have 2 EFI partitions?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2020-11-07 18:58:59

javisid
Member
Registered: 2020-11-07
Posts: 5

Re: Linux dont boot after every update Archlinux

Hello my friend, thenks you.
i have two efi  partition because /dev/sda1 is the boot from my windows.


efibootmgr -v

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000,0003,0002,0004,0005
Boot0000* Windows Boot Manager  HD(1,GPT,ee5bf59d-3a52-4fae-bfaf-b2c1d2370f81,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...I................
Boot0001* Arch Linux    HD(2,GPT,f4b6d6f6-0a6a-d448-b877-de0a6bf8e1d7,0x32800,0x300000)/File(\EFI\Arch Linux\grubx64.efi)
Boot0002* UEFI:CD/DVD Drive     BBS(129,,0x0)
Boot0003* UEFI: SanDisk, Partition 1    PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(12,0)/HD(1,GPT,291dc4b1-01eb-4cf6-9254-446e311cb3b1,0x800,0x1dcf7df)..BO
Boot0004* UEFI:Removable Device BBS(130,,0x0)
Boot0005* UEFI:Network Device   BBS(131,,0x0)

do you suggest, map /dev/sda2 to /boot ?
actually i have mount in /boot/efi, and i dont have problems.



when i installed the system I follow this guide.


grub-install --efi-directory=/boot/efi --bootloader-id='Arch Linux' --target=x86_64-efi

thanks guys!

Offline

#5 2020-11-07 19:29:24

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: Linux dont boot after every update Archlinux

From the install media,  what is the output of:

mount -U 301A-397C /mnt
find /mnt -name vmlinuz-linux -execdir file {} \;
umount /mnt
mount -U 0D55-EE6 /mnt
find /mnt -name vmlinuz-linux -execdir file {} \;
umount /mnt
mount -U 05438a23-ce0b-4500-9698-34706881ffff /mnt
find /mnt -name vmlinuz-linux -execdir file {} \;
unmount /mnt

Last edited by loqs (2020-11-07 19:30:04)

Offline

#6 2020-11-08 01:29:26

javisid
Member
Registered: 2020-11-07
Posts: 5

Re: Linux dont boot after every update Archlinux

Hello i'm updating the system now
the problem is that the update, installs the kernel in / boot instead of / boot / efi.
but i don't know to fix this.

Thank you very much

linux-5.9.6.arch1-1-x86_64                                                    73.8 MiB   311 KiB/s 04:03 [###############################################################] 100%
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.9.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.9.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(4/5) Reloading system bus configuration...
(5/5) Warn about old perl modules
root@javiarch ~]# mount -U 301A-397C /mnt
[root@javiarch ~]# find /mnt -name vmlinuz-linux -execdir file {} \;
[root@javiarch ~]# umount /mnt

[root@javiarch ~]# mount -U 0D55-EE6 /mnt
mount: /mnt: can't find UUID="0D55-EE6".

[root@javiarch ~]# mount -U 05438a23-ce0b-4500-9698-34706881ffff /mnt
[root@javiarch ~]# find /mnt -name vmlinuz-linux -execdir file {} \;
./vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.9.6-arch1-1 (linux@archlinux) #1 SMP PREEMPT Thu, 05 Nov 2020 21:00:46 +0000, RO-rootFS, swap_dev 0x8, Normal VGA

[root@javiarch ~]# df -h /mnt
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       198G  129G   60G  69% /mnt


[root@javiarch ~]# find /boot -name vmlinuz-linux -execdir file {} \;
./vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.9.6-arch1-1 (linux@archlinux) #1 SMP PREEMPT Thu, 05 Nov 2020 21:00:46 +0000, RO-rootFS, swap_dev 0x8, Normal VGA
./vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.9.4-arch1-1 (linux@archlinux) #1 SMP PREEMPT Wed, 04 Nov 2020 21:41:09 +0000, RO-rootFS, swap_dev 0x8, Normal VGA


[root@javiarch ~]# find /boot/efi -name vmlinuz-linux -execdir file {} \;
./vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 5.9.4-arch1-1 (linux@archlinux) #1 SMP PREEMPT Wed, 04 Nov 2020 21:41:09 +0000, RO-rootFS, swap_dev 0x8, Normal VGA


root@javiarch boot]# blkid

/dev/sda1: UUID="301A-397C" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ee5bf59d-3a52-4fae-bfaf-b2c1d2370f81"
/dev/sda2: UUID="0D55-EE6D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f4b6d6f6-0a6a-d448-b877-de0a6bf8e1d7"
/dev/sda3: UUID="05438a23-ce0b-4500-9698-34706881ffff" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="77ba52d3-c2b2-7741-bcf9-1951738bd397"
/dev/sda4: UUID="cac03599-90c4-4861-908e-8a6d93b500f4" TYPE="swap" PARTUUID="f01dd2b3-3388-1946-92ab-b8bc04925627"

[root@javiarch boot]# df -h
Filesystem      Size  Used Avail Use% Mounted on
dev              16G     0   16G   0% /dev
run              16G  1.5M   16G   1% /run
/dev/sda3       198G  129G   60G  69% /
tmpfs            16G  132M   16G   1% /dev/shm
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
tmpfs            16G  248K   16G   1% /tmp
/dev/sda2       1.5G   49M  1.5G   4% /boot/efi
tmpfs           3.2G  116K  3.2G   1% /run/user/1000
[root@javiarch boot]# 

Offline

#7 2020-11-08 01:32:22

javisid
Member
Registered: 2020-11-07
Posts: 5

Re: Linux dont boot after every update Archlinux

Last update works ok.
i dont know why before fail and the last update work fine.

thanks

Offline

#8 2020-11-08 10:15:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,363

Re: Linux dont boot after every update Archlinux

GRUB can handle kernel files residing on a linux filesystem so your original setup should work fine granted the GRUB config got created properly.

Offline

Board footer

Powered by FluxBB