Author Topic: Update went wrong, now initramfs is not found  (Read 1735 times)

0 Members and 1 Guest are viewing this topic.

Offline GalaxyMaster

  • Neuling
  • *
  • Posts: 12
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: Celeron N3050 iGPU
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Novice
Update went wrong, now initramfs is not found
« on: 09. May 2016, 22:39:20 »
When I was installing the latest update for the stable branch through the software updater, my screen froze during the checking space stage. After 10 seconds my laptop restarted on its own and now I can't boot into manjaro anymore because /boot/initramfs-4.4-x86_64.img is not found by grub. I assume it was in the middle of updating the kernel when it restarted, causing it to get corrupted or it was simply deleted. What can I do to get my laptop to a normal state again short of backing up /home and reinstalling?

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Update went wrong, now initramfs is not found
« Reply #1 on: 09. May 2016, 22:55:46 »
Boot with a Live CD and reinstall GRUB, e.g. https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline GalaxyMaster

  • Neuling
  • *
  • Posts: 12
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: Celeron N3050 iGPU
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Novice
Re: Update went wrong, now initramfs is not found
« Reply #2 on: 09. May 2016, 22:59:49 »
Boot with a Live CD and reinstall GRUB, e.g. https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader
Would this restore the initramfs.img if it was somehow deleted? Or would I have to do something else for that?

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Update went wrong, now initramfs is not found
« Reply #3 on: 09. May 2016, 23:19:53 »
Hm. You might also need to chroot and do a `mkinitcpio -P` (or reinstall the kernel which will trigger the same).

("-P" means "do it for all kernels" so you don't have to worry about which ones are missing).

It's wise to keep a second kernel installed for this reason - or you should be able to do this via the 'fallback' image.
« Last Edit: 09. May 2016, 23:22:03 by jonathon »
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline GalaxyMaster

  • Neuling
  • *
  • Posts: 12
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: Celeron N3050 iGPU
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Novice
Re: Update went wrong, now initramfs is not found
« Reply #4 on: 09. May 2016, 23:28:21 »
The fallback image doesn't work either, and grub gives the same error. How do I reinstall the kernel from a live USB?

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: Update went wrong, now initramfs is not found
« Reply #5 on: 10. May 2016, 09:45:57 »
Load the live environment
chroot
Install the kernel

More details on the wiki page (I'm assuming you're happy running `pacman -S linux44`).
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Update went wrong, now initramfs is not found
« Reply #6 on: 10. May 2016, 09:59:04 »
If chrooting via the manual method don't forget to mount --bind /run in rder to be able to install the kernel. Don't know if mhwd-chroot or manjaro-chroot commands do it automatically...
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/