You are not logged in.

#1 2022-06-18 10:32:53

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

[solved]Can't boot after kernel upgrade

Hi,
Im doing upgrade with command pacman -Syu 
after that  I can't boot my archlinux

error msg :

mount: unknown filesystem type ‘vfat’


how can I repair my laptop?

Last edited by RyanHu (2022-06-19 12:26:20)

Offline

#2 2022-06-18 15:26:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [solved]Can't boot after kernel upgrade

You forgot to mount the boot partition during the update or are not in fact booting from the boot partition but the root partition.
Compare "uname -a" and "pacman -Qs linux"

You can fix this offline, eg. from the install iso.
https://wiki.archlinux.org/title/Pacman … an_upgrade

Offline

#3 2022-06-18 16:19:29

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

Re: [solved]Can't boot after kernel upgrade

seth wrote:

You forgot to mount the boot partition during the update or are not in fact booting from the boot partition but the root partition.
Compare "uname -a" and "pacman -Qs linux"

You can fix this offline, eg. from the install iso.
https://wiki.archlinux.org/title/Pacman … an_upgrade


THX for you help.

uname -a:
linux-5.16.14

pacman -Q linux:
linux-5.18.5

ls -alh /lib/modules:
linux-5.18.5


So, is that means my kernel version not equals for the boot version..?

I can downgrade my kernel version with pacman -U linux-5.16.14 to launch the system. But I back in the same situation when I upgrade linux kernel .

Offline

#4 2022-06-18 17:37:14

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved]Can't boot after kernel upgrade

Make sure the /boot partition is correctly mounted before running the upgrade. If it isn't mount it manually then check /etc/fstab for errors.


Jin, Jîyan, Azadî

Offline

#5 2022-06-19 02:57:00

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

Re: [solved]Can't boot after kernel upgrade

Head_on_a_Stick wrote:

Make sure the /boot partition is correctly mounted before running the upgrade. If it isn't mount it manually then check /etc/fstab for errors.

fstab show errors.

/dev/nvme0n1p3
UUID=xxxxxxx          /               ext4    rw,relatime     0 1

/dev/nvme0n1p2
UUID=xxxxxxx          /boot              ext4    rw,relatime     0 2

/dev/nvme0n1p1 
UUID=006c-B262     /boot/efi    vfat    rw,relatime,fmask=0022,dmask=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2

/dev/nvme0n1p4
UUID=xxxxxxx          /home               ext4    rw,relatime     0 2

/dev/nvme0n1p5
UUID=xxxxxxx          none              swap    defaults         0 0

Last edited by RyanHu (2022-06-19 02:57:52)

Offline

#6 2022-06-19 06:38:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [solved]Can't boot after kernel upgrade

If that's your literal fstab, it's broken as fuck.
If you just obfuscated the partition UUIDs for no reason (they're not private, the only point is to prevent collisions) it's still broken as fuck.
Post your *actual* fstab.

From the arch iso, mount nvme0n1p3, nvme0n1p2 and nvme0n1p1 and inspect each for kernel files (on nvme0n1p3 in the /boot path)
"file /path/to/vmlinuz-linux-whatever" will then tell you what exact kernel it is and the drive w/ the version you keep booting is your actual boot device.

Otherwise post your /proc/cmdline from the installed system (NOT when you booted the arch install iso)

Offline

#7 2022-06-19 10:14:25

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

Re: [solved]Can't boot after kernel upgrade

seth wrote:

If that's your literal fstab, it's broken as fuck.
If you just obfuscated the partition UUIDs for no reason (they're not private, the only point is to prevent collisions) it's still broken as fuck.
Post your *actual* fstab.

From the arch iso, mount nvme0n1p3, nvme0n1p2 and nvme0n1p1 and inspect each for kernel files (on nvme0n1p3 in the /boot path)
"file /path/to/vmlinuz-linux-whatever" will then tell you what exact kernel it is and the drive w/ the version you keep booting is your actual boot device.

Otherwise post your /proc/cmdline from the installed system (NOT when you booted the arch install iso)


OKay... sad

 ~  cat /etc/fstab                                                                                                                                                                                1 err  17:53:44 
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p3
UUID=e0204aa6-b82c-4f3e-bafa-c7ebc461edc7       /               ext4            rw,relatime     0 1

# /dev/nvme0n1p2
UUID=4914c679-d14c-41bd-8db5-8ee47d6c4bdd       /boot           ext4            rw,relatime     0 2

# /dev/nvme0n1p1
UUID=006C-B262          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/nvme0n1p4
UUID=d2a39544-9f22-4613-be61-8ab0bae562ab       /home           ext4            rw,relatime     0 2

# /dev/nvme0n1p5
UUID=687e72d8-2ecc-43b5-85ea-e1d9e28f1644       none            swap            defaults        0 0
 ~  sudo fdisk -l                                                                                                                                                                                    ok  17:56:00 
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: PM8512GPTCB4B8TF-E13T4                  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6BBD7F4D-98A2-49F0-B63B-EDB873E84740

Device             Start        End   Sectors  Size Type
/dev/nvme0n1p1      2048     616447    614400  300M EFI System
/dev/nvme0n1p2    616448    2713599   2097152    1G Linux filesystem
/dev/nvme0n1p3   2713600  212428799 209715200  100G Linux root (x86-64)
/dev/nvme0n1p4 212428800  967403519 754974720  360G Linux filesystem
/dev/nvme0n1p5 967403520 1000215182  32811663 15.6G Linux swap
 ~  cat /proc/cmdline                                                                                                                                                                             1 err  17:58:31 
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e0204aa6-b82c-4f3e-bafa-c7ebc461edc7 rw loglevel=3 quiet

file /boot/vmlinuz-linux:
/boot/vmlinuz-linux : Linux kernel x86 boot executable bzImage,version 5.18.5-arch1 (linux@archlinux) #1 SMP_DYNAMIC Thu ,16 Jun 2022 20:40:45 +0000 ,R0-rootFS ,swap_dev 0XA, Normal VGA

Last edited by RyanHu (2022-06-19 11:13:59)

Offline

#8 2022-06-19 11:22:36

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved]Can't boot after kernel upgrade

RyanHu wrote:
~  cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e0204aa6-b82c-4f3e-bafa-c7ebc461edc7 rw loglevel=3 quiet

Check your bootloader configuration. Looks like it's trying to boot from /boot/vmlinuz-linux on the root partition rather than the version on the /boot partition (for which the path would just be "/vmlinuz-linux").

If you can't fix things yourself you should post the method by which you configured the bootloader so we can correct you. Be sure to post the exact commands used.


Jin, Jîyan, Azadî

Offline

#9 2022-06-19 12:11:31

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

Re: [solved]Can't boot after kernel upgrade

Head_on_a_Stick wrote:
RyanHu wrote:
~  cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e0204aa6-b82c-4f3e-bafa-c7ebc461edc7 rw loglevel=3 quiet

Check your bootloader configuration. Looks like it's trying to boot from /boot/vmlinuz-linux on the root partition rather than the version on the /boot partition (for which the path would just be "/vmlinuz-linux").

If you can't fix things yourself you should post the method by which you configured the bootloader so we can correct you. Be sure to post the exact commands used.


THX.
Issue has been solved.
I reformat the efi-partition..

Offline

#10 2022-06-19 12:59:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [solved]Can't boot after kernel upgrade

There's no way in hell that "reformart the efi-partition" has solved any problems here.

Offline

#11 2022-06-19 15:58:48

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

Re: [solved]Can't boot after kernel upgrade

seth wrote:

There's no way in hell that "reformart the efi-partition" has solved any problems here.

Sorry for my English..

After upgrade kernel  version to 5.18.5 , I do that:

In arch iso command line :\

lsblk mkfs.vfat -F32 /dev/nvme0n1p1

mount /dev/nvme0n1p1   /mnt/boot/efi

arch-chroot /mnt

grub-install –target=x86_64-efi –efi-directory=/boot/efi –bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg

exit

rm -rf /mnt/etc/fstab

genfstab -U /mnt » /mnt/etc/fstab

Successfully launched the system with new kernel~~~

Offline

#12 2022-06-19 18:30:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,411

Re: [solved]Can't boot after kernel upgrade

grub-install –target=x86_64-efi –efi-directory=/boot/efi –bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg

was the crucial step

genfstab -U /mnt » /mnt/etc/fstab

also means that you're now skipping the /boot partion, right?

Offline

#13 2022-06-20 03:18:27

RyanHu
Member
From: Beijing
Registered: 2022-06-18
Posts: 8

Re: [solved]Can't boot after kernel upgrade

seth wrote:
grub-install –target=x86_64-efi –efi-directory=/boot/efi –bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg

was the crucial step

genfstab -U /mnt » /mnt/etc/fstab

also means that you're now skipping the /boot partion, right?


/boot partion not skiped.


 ~  cat /etc/fstab

# /dev/nvme0n1p3
UUID=e0204aa6-b82c-4f3e-bafa-c7ebc461edc7       /               ext4            rw,relatime     0 1

# /dev/nvme0n1p2
UUID=4914c679-d14c-41bd-8db5-8ee47d6c4bdd       /boot           ext4            rw,relatime     0 2

# /dev/nvme0n1p1
UUID=FED4-BE9B          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

# /dev/nvme0n1p4
UUID=d2a39544-9f22-4613-be61-8ab0bae562ab       /home           ext4            rw,relatime     0 2

# /dev/nvme0n1p5
UUID=687e72d8-2ecc-43b5-85ea-e1d9e28f1644       none            swap            defaults        0 0

 ~  cat /proc/cmdline                                                                                                                                                                                ok  13:15:01 
BOOT_IMAGE=/vmlinuz-linux root=UUID=e0204aa6-b82c-4f3e-bafa-c7ebc461edc7 rw loglevel=3 quiet

Last edited by RyanHu (2022-06-20 05:18:02)

Offline

#14 2023-01-03 10:13:36

komi7
Member
Registered: 2022-08-21
Posts: 1

Re: [solved]Can't boot after kernel upgrade

Just re-install Nvidia (with internet connection).

Offline

Board footer

Powered by FluxBB