Score:0

"ALERT! /dev/mapper/vg0-root does not exist. Dropping to a shell!" when compile linux kernel

tm flag

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:

  1. Grab source code from kernel.org
  2. Create config file with: make defconfig (I also tried copy the current config that my OS is running)
  3. Compile kernel: make -j $(nproc)
  4. Copy file bzImage and System.map to /boot
  5. 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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.