The startup error was as follows:
Code: Select all
Loading Linux linux-lts ...
error: file '/boot/vmlinuz-linux-lts' not found.
Loading initial ramdisk ...
error: you need to load the kernel first
Press any key to continue
Code: Select all
$ pacman -S linux-lts
Furthermore, the # mkinitcpio -P command, sometimes suggested to reconfigure the system, said that it did not find the /boot/vmlinuz-linux-lts image.
I have a system encrypted with LUKS, dual booted with Windows. I didn't want to reinstall and absolutely had to fix the problem. I solved it as follows, using a live image of ArcolinuxL and timeshift.
Once you have started a live USB of Arcolinux, open the terminal and set your keyboard:
Code: Select all
$ setxkbmap it
Then you list the existing disks and partitions:
Code: Select all
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 2.4G 1 loop /run/archiso/airootfs
sda 8:0 1 3.8G 0 disk
├─sda1 8:1 1 2.5G 0 part /run/archiso/bootmnt
└─sda2 8:2 1 15M 0 part
sdb 8:16 1 0B 0 disk
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 183.3G 0 part
└─nvme0n1p4 259:4 0 293.5G 0 part
Code: Select all
$ lsblk -lf | grep LUKS
nvme0n1p4 crypto_LUKS 1 db33046b-75b2-4c2f-94e6-1d9b4c1bf252
Code: Select all
$ sudo fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WDC PC SN720 SDAQNTW-512G-1001
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: 5E9B4EC5-42C5-4AF5-914F-84BB48536F81
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 384718230 384478615 183.3G Microsoft basic data
/dev/nvme0n1p4 384718231 1000215182 615496952 293.5G Linux filesystem
Disk /dev/sda: 3.77 GiB, 4048551936 bytes, 7907328 sectors
Disk model: Transcend 4GB
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: dos
Disk identifier: 0x5e5ace90
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 64 5255039 5254976 2.5G 0 Empty
/dev/sda2 5255040 5285759 30720 15M ef EFI (FAT-12/16/32)
Disk /dev/loop0: 2.38 GiB, 2550525952 bytes, 4981496 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Code: Select all
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
Code: Select all
/dev/nvme0n1p4 384718231 1000215182 615496952 293.5G Linux filesystem
Code: Select all
$ sudo cryptsetup luksOpen /dev/nvme0n1p4 arcolinuxrestore
Enter passphrase for /dev/nvme0n1p4:
Code: Select all
$ sudo su -
# mount /dev/mapper/arcolinuxrestore /mnt
Code: Select all
# mount /dev/nvme0n1p1 /mnt/boot/efi
Code: Select all
# cd /mnt
# mount -t proc /proc proc/
# mount -t sysfs /sys sys/
# mount --rbind /dev dev/
# mount --rbind /run run/
# mount --rbind /sys/firmware/efi/efivars sys/firmware/efi/efivars/
Code: Select all
# chroot /mnt /bin/bash
[root@ArcolinuxL /#
Code: Select all
[root@ArcoLinuxL /]# timeshift --restore
Mounted '/dev/dm-0 (nvme0n1p4)' at '/run/timeshift/8585/backup'
Select snapshot:
Num Name Tags Description
------------------------------------------------------------------------------
0 > 2023-10-02_00-00-01 M
1 > 2023-10-16_13-00-01 W
2 > 2023-10-19_16-00-01 D
3 > 2023-10-20_16-00-02 D
Enter snapshot number (a=Abort, p=Previous, n=Next):
Code: Select all
Enter snapshot number (a=Abort, p=Previous, n=Next): 3
******************************************************************************
To restore with default options, press the ENTER key for all prompts!
******************************************************************************
Press ENTER to continue...
Code: Select all
Re-install GRUB2 bootloader? (recommended) (y/n):
Code: Select all
Re-install GRUB2 bootloader? (recommended) (y/n): y
Select GRUB device:
Num Device Description
------------------------------------------------------------------------------
0 > sda JetFlash Transcend 4GB [MBR]
1 > sdb Generic- SD/MMC [MBR]
2 > nvme0n1 WDC PC SN720 SDAQNTW-512G-1001 [MBR]
3 > nvme0n1p4 luks, 315.1 GB GB
[ENTER = Default (/dev/nvme0n1), a = Abort]
Enter device name or number (a=Abort): /dev/nvme0n1p1
Code: Select all
******************************************************************************
GRUB Device: /dev/nvme0n1p1
******************************************************************************
======================================================================
WARNING
======================================================================
Data will be modified on following devices:
Device Mount
--------------------- ---------
/dev/dm-0 (nvme0n1p4) /
/dev/nvme0n1p1 /boot/efi
Please save your work and close all applications.
System will reboot after files are restored.
======================================================================
DISCLAIMER
======================================================================
This software comes without absolutely NO warranty and the author takes no responsibility for any damage arising from the use of this program. If these terms are not acceptable to you, please do not proceed beyond this point!
Continue with restore? (y/n):
Cheers