I compiled linux kernel and got the error seems like initrd can't read file system. I tried both in LVM and non-LVM but none of them work.
With LVM, the error showed:
**ALERT! /dev/mapper/vg0-root does not exist. Dropping to a shell!**https://i.stack.imgur.com/Xz0VO.png
With non-LVM, the error was slightly different:
ALERT! UUID=xxxxxxxx does not exist. Dropping to a shell! https://i.stack.imgur.com/PKmdD.png
blkid doesn't show anything. https://i.stack.imgur.com/81G2J.png
I guess there are some errors or any steps that I missed when I created initrd file.
Those steps that I did when compiling kernel:
- Grab source code from kernel.org
- Create config file with: make defconfig (I also tried copy the current config that my OS is running)
- Compile kernel: make -j $(nproc)
- Copy file bzImage and System.map to /boot
- Create initrd file: mkinitramfs –o /boot/initrd-5.15.80.img 5.15.80
Any small help will be so helpful, I stuck with this error for many days without proper solution. Thanks for your time.