Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

custom Linux kernel build failure in vmware workstation

While trying to compile/build and boot custom kernel inside vmware workstation, while booting new kernel, it fails and falls to shell with error "failed to find disk by uuid". I tried this with both ubuntu and centos.


Things I tried but didn't help


  1. check mapping by uuid in boot entry and existence in directory.
  2. initramfs-update
  3. replaced root=uuid=<> with /dev/disk/sda3

enter image description here

is it issue with vmware workstation? how can it be rectified..??

like image 710
Himanshu Sourav Avatar asked Dec 26 '15 17:12

Himanshu Sourav


1 Answers

I had a similar fault with my own attempts to bootstrap Fedora 22 onto a blank partition using a Centos install on another partition. I never did solve it completely, but I did find the problem was in my initrd rather than the kernel.

The problem is the initrd isn't starting LVM because dracut didn't tell the initrd that it needs LVM. Therefore if you start LVM manually you should be able to boot into your system to fix it.

I believe this is the sequence of commands I ran from the emergency shell to start LVM:

vgscan
vgchange -ay
lvs

this link helped me remember

Followed by exit to resume normal boot.

You might have to mount your LVM /etc/fstab entries manually, I don't recall whether I did or not.

like image 194
Adam J Richardson Avatar answered Oct 20 '22 13:10

Adam J Richardson