Edit: this is now solved and i want to add a message: For anyone reading this post in the future: Don’t just read the last solution, everything from @pebcak is of value and you’ll probably need some of the steps mentioned in the thread!
As the title says my system won’t boot. I’m getting: Error: file ‘/boot/initramfs-linux.img’ not found
I’m aware that there are multiple posts with the same thing here, and I pretty much followed this one but it doesn’t fix my problem. These are the steps i took one by one: fdisk -l
I identified that the disk i need is sda. This was the output:
Device Start End Sectors Size Type
/dev/sda1 4096 2052095 2048000 1000M EFI System
/dev/sda2 2052096 234436544 232384449 110.8G Linux filesystem
sudo su mount /dev/sda2 /mnt mount /dev/sda1 /mnt/boot/efi arch-chroot /mnt pacman -Syyu
I had 2 boot folders, one of was /boot/grub/grub.cfg the other was /@/boot/grub/grub.cfg. The second one contained the grub.cfg file so i did this: grub-mkconfig -o /@/boot/grub/grub.cfg.
The result was still the same so i reinstalled the kernel and repeated the steps, it booted once to TTY after that but later went back to the same error. I think the original problem was lack of space that I wasn’t aware of before (i’m assuming) the update that broke the system, so i deleted the files from a steam game i had (20GB aprox) and it still shows lack of space when i try to install a KDE de for the new linux i installed: sudo pacman -S linux pacman -S xorg plasma plasma-wayland-session kde-applications
I also had timeshift installed and i have snapshots that I can see the folder but it won’t recognise the timeshift command, so i reinstalled timeshift from chroot: sudo pacman -S timeshift
Now it recognizes the command but it won’t find the snapshots: timeshift --list
First run mode (config file not found)
Selected default snapshot type: RSYNC
Device : Not Selected
** (process:27867): CRITICAL **: 18:14:50.235: gee_abstract_collection_get_size: assertion 'self != NULL' failed
No snapshots found
From everything above you can obviously see that i’m a real Linux noob so any help is appreciated. I have a lot of browser tabs that i need from that system for a project that i’m working on, if i can extract only those it would be sufficient for me. Browsers that i used are Brave and Firefox if that helps. Thanks!
There is an update, I deleted some extra files form the game i mentioned earlier, i guess i missed the main folder so now i have the room needed ( about 21GB), and i also installed a vanilla KDE on top of the new arch i had installed. So now there is basically 2 parallel systems on that hd, and i can boot to the new one. I can still see all the files form the EndeavourOS i had previously. I don’t know id manually replacing folders will work (ex: old /home with the new /home etc.)
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you're sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck
grub-install
Installing for x86_64-efi platform.
Installation finished. No error reported.
grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background: /usr/share/endeavouros/splash.png
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
I noticed the error on the first command but i i didn’t know if i should delete the /var/lib/pacman/db.lck file
Loading Linux linux ...
Loading initial ramdisk ...
_
Without the Error: file ‘/boot/initramfs-linux.img’ this time and it wasn’t a black background but the Endeavour os grub shoewed first and it was the Endeavour grub background.
Now following this steps, error on
pacman -S grub linux
But it think it’s because it’s already installed.
warning: linux-6.7.5.arch1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Package (1) Old Version New Version Net Change Download Size
core/linux 6.7.5.arch1-1 6.7.5.arch1-1 0.00 MiB 130.67 MiB
Total Download Size: 130.67 MiB
Total Installed Size: 130.76 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux-6.7.5.arch1-1-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'linux-6.7.5.arch1-1-x86_64.pkg.tar.zst' from mirror.bahnhof.net : The requested URL returned error: 404
error: failed retrieving file 'linux-6.7.5.arch1-1-x86_64.pkg.tar.zst' from ftp.lysator.liu.se : The requested URL returned error: 404
error: failed retrieving file 'linux-6.7.5.arch1-1-x86_64.pkg.tar.zst' from ftp.acc.umu.se : The requested URL returned error: 404
error: failed retrieving file 'linux-6.7.5.arch1-1-x86_64.pkg.tar.zst' from mirror.osbeck.com : The requested URL returned error: 404
error: failed retrieving file 'linux-6.7.5.arch1-1-x86_64.pkg.tar.zst' from ftp.myrveln.se : The requested URL returned error: 404
error: failed retrieving file 'linux-6.7.5.arch1-1-x86_64.pkg.tar.zst' from geo.mirror.pkgbuild.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.