# Error: file '/boot/initramfs-linux.img' not found

**URL:** <https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280>\
**Category:** General system\
**Created:** [August 23, 2020, 2:56am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280 "2020-08-23T02:56:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![snarfel](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@snarfel](https://forum.endeavouros.com/u/snarfel)\
**Post date:** [August 23, 2020, 2:56am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/1 "2020-08-23T02:56:54Z")

</div>

So I was pretty stupid today in that I started the update to 5.8.3-arch(?) and a few other things, but after 45+ minutes the complete bar in Discover was at 100% but not actually complete (i.e. the bar vanishes altogether), so I figured it was being buggy and the UI got stuck since it was in the state for a while so I did a physical power cycle. Now booting into the partition or using the failback option gives a:

> Loading Linux linux …  
> Loading initial ramdisk …  
> error: file ‘/boot/initramfs-linux.img’ not found
> 
> Press any key to continue…

Unfortunately pressing any key does nothing nor does Ctrl+C to try to exit out of whatever. Is there any way to recover to this or should I resign to reinstalling the partition from a flash drive?

---

<div class="post-metadata">

**Author:** ![alenbasic](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/alenbasic/32/11699_2.png) [@alenbasic](https://forum.endeavouros.com/u/alenbasic)\
**Post date:** [August 23, 2020, 2:58am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/2 "2020-08-23T02:58:59Z")

</div>

Do you have the backup kernel as an option in grub to boot from? If so, do that and try reinstalling the kernel update.

---

<div class="post-metadata">

**Author:** ![snarfel](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@snarfel](https://forum.endeavouros.com/u/snarfel)\
**Post date:** [August 23, 2020, 3:40am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/3 "2020-08-23T03:40:32Z")

</div>

Unfortunately no back up anything to my knowledge beyond what is on the SSD w/ the messed .img as my external HDD I use for easy weekly backups fell to the floor at the beginning of COVID and wasn’t able to find an open store at the time to try to recover and transfer to a new HDD. Fun situation altogether, but at least I have a semi-fresh copy my KeePass DB in the cloud I guess.

---

<div class="post-metadata">

**Author:** ![csteinforth](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/csteinforth/32/69942_2.png) [@csteinforth](https://forum.endeavouros.com/u/csteinforth)\
**Post date:** [August 23, 2020, 5:36am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/4 "2020-08-23T05:36:24Z")

</div>

> [@snarfel](#):
>
> Is there any way to recover to this or should I resign to reinstalling the partition from a flash drive?

You could try to repair the update in terminal in a live session. Mount your root and do a `arch-chroot`:

```auto
mount /dev/sdXY /mnt
arch-chroot /mnt

```

where XY is your root partition. If you have additional partitions (e.g. separate boot or an efi partition) mount them accordingly before the `arch-chroot`:

```auto
mkdir -p /mnt/boot/efi
mount /dev/sdXZ /mnt/boot
mount /dev/sdXA /mnt/boot/efi

```

Then check if the update was ok by

```auto
pacman -Syyu

```

If this was ok then do a

```auto
mkinitcpio -p linux

```

and

```auto
grub-mkconfig -o /boot/grub/grub.cfg

```

Then cross fingers and reboot…

---

<div class="post-metadata">

**Author:** ![snarfel](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@snarfel](https://forum.endeavouros.com/u/snarfel)\
**Post date:** [August 23, 2020, 7:30am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/5 "2020-08-23T07:30:18Z")

</div>

You are an absolute savior!

It was luks encrypted so I had to tweak things w/ what I found online, but overall it worked:

```auto
sudo cryptsetup luksOpen /dev/nvme0n1p1 encryp
sudo mkdir /mnt
sudo mount /dev/mapper/encryp /mnt
sudo arch-chroot /mnt
pacman -Syyu

```

(unable to lock db so `rm /var/lib/pacman/db.lck`)

```auto
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg

```

Found the linux and fallback image, but then output at the very end:

```auto
grub-probe: cannot find a GRUB drive for /dev/sda
done

```

That probably isn’t a concern as I use nvme so I don’t think I should have anything on /dev/sda, but Grub removed the boot into Windows option which is on /dev/nvme1n1 (so can only select Endeavour image+failback on /dev/nvme0n1, which I’m mildly concerned about as I use Windows every two weeks or so, but nowhere near as much as the heavy daily usage of Endeavour! 🙂 I’m hoping the boot selection will refind/self-repair the missing Windows option as part of some upgrade soon given how much upgrades happen on Arch.

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [August 23, 2020, 7:40am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/6 "2020-08-23T07:40:06Z")

</div>

> [@snarfel](#):
>
> but Grub removed the boot into Windows option

You could try running

`sudo os-probe`r

from EOS. If it finds your Windows then:

`grub-mkconfig -o /boot/grub/grub.cfg`

Actually you could run only the second command since it will call os-prober.

---

<div class="post-metadata">

**Author:** ![snarfel](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@snarfel](https://forum.endeavouros.com/u/snarfel)\
**Post date:** [August 23, 2020, 7:44am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/7 "2020-08-23T07:44:16Z")

</div>

> [@pebcak](#):
>
> grub-mkconfig -o /boot/grub/grub.cfg

Thanks, that did the trick, perhaps it was because it was originally ran on a live stick that it couldn’t find it. Any who, you all are truly amazing! Your right off the bat correct and quick responses saved me a great deal of hair loss today. 🙂

---

<div class="post-metadata">

**Author:** ![marteng69](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@marteng69](https://forum.endeavouros.com/u/marteng69)\
**Post date:** [August 23, 2020, 10:30am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/8 "2020-08-23T10:30:35Z")

</div>

> [@snarfel](#):
>
> Found the linux and fallback image, but then output at the very end:
> 
> ```auto
> grub-probe: cannot find a GRUB drive for /dev/sda
> done
> 
> ```

This message is related to the USB stick you used with the live system. It can be ignored.

---

<div class="post-metadata">

**Author:** ![marteng69](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@marteng69](https://forum.endeavouros.com/u/marteng69)\
**Post date:** [August 23, 2020, 10:33am UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/9 "2020-08-23T10:33:22Z")

</div>

> [@snarfel](#):
>
> Thanks, that did the trick, perhaps it was because it was originally ran on a live stick that it couldn’t find it.

No. Looking at your commands in the post above you missed to mount the EFI-partition before the chroot. If you do not mount the EFI-partition, grub can not include Windows in the boot menue.

---

<div class="post-metadata">

**Author:** ![nylio](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/nylio/32/66843_2.png) [@nylio](https://forum.endeavouros.com/u/nylio)\
**Post date:** [October 9, 2022, 11:13pm UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/10 "2022-10-09T23:13:47Z")

</div>

Hello everyone. Following this thread and others on the forum related to this topic, I found that it was most appropriate to post my problem here.  
 ![Screenshot_2022-10-09_23-07-04](https://forum.endeavouros.com/uploads/default/original/3X/e/0/e009b3d88af5eb36c8989744ecdcd72b035649fd.jpeg)

Similar to the author of the thread. after the last update, only the following information appears:  
Loading Linux …  
Loading initial …  
error: file’ boot …’  
Press any key …

unfortunately, the solution given by “csteinforth” from 1 Aug '20, does not work in my case. Other attempts to solve the problem via ArchWiki to chroot also failed

---

<div class="post-metadata">

**Author:** ![sradjoker](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/sradjoker/32/64224_2.png) [@sradjoker](https://forum.endeavouros.com/u/sradjoker)\
**Post date:** [October 9, 2022, 11:26pm UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/11 "2022-10-09T23:26:24Z")

</div>

Welcome to :enos: !!  
Please create a new post with proper logs as per:  
[https://discovery.endeavouros.com/forum-log-tool-options/how-to-include-systemlogs-in-your-post/2021/03/](https://discovery.endeavouros.com/forum-log-tool-options/how-to-include-systemlogs-in-your-post/2021/03/)

Don’t necrobump a 2 year old thread.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/139011_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [October 9, 2022, 11:27pm UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/12 "2022-10-09T23:27:42Z")

</div>

Closed on October 9, 2022, 11:27pm UTC



---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/139011_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [October 9, 2022, 11:28pm UTC](https://forum.endeavouros.com/t/error-file-boot-initramfs-linux-img-not-found/7280/13 "2022-10-09T23:28:06Z")

</div>

you can link to this thread if needed…
