How to rebuild initramfs?

Hello,

i have a question about how to rebuild initramfs. i need to do it since its neccesary for a program to work. that program is for managing FAN and Power control on my razer blade 15. but i dont know how to do it, and i cant find anything that points me in the right direction, or i am blind :wink:
Could anyone help me with this problem?

Kind regards

MagicGnome

sudo mkinitcpio -p linux

Replace linux with linux-lts if u have lts kernel

when i do that i get
sudo mkinitcpio -p linux
/usr/bin/mkinitcpio: line 268: /etc/mkinitcpio.d/linux.preset: No such file or directory
==> ERROR: Failed to load preset: `/etc/mkinitcpio.d/linux.preset’

sudo mkinitcpio -p linux56
/usr/bin/mkinitcpio: line 268: /etc/mkinitcpio.d/linux56.preset: No such file or directory
==> ERROR: Failed to load preset: `/etc/mkinitcpio.d/linux56.preset’

What if you use an existing kernel then?

Just regenerate all available ones with sudo mkinitcpio -P

3 Likes

thanks!

Btw. I hope you’re not running that kernel version anymore, it’s EOL (since that statement failed though I guess you’re not). :wink:

can you please return

sudo mhwd-kernel -li
sudo ls /etc/mkinitcpio.d/*.preset 

number and kernels version must match

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.