/dev/mapper/vg00-root does not exist - Advanced
  • 08 Feb 2023
  • 1 Minute to read
  • Dark
    Light

/dev/mapper/vg00-root does not exist - Advanced

  • Dark
    Light

Article summary

In some cases, during a failed upgrade for Ubuntu's Kernel, there is a bug if the machine is running on mdraid.

This is documented on the Ubuntu Launchpad since 2007: https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/147216

As a way around this, if you're seeing that your OS is failing to boot with the error stating the /dev/mapper/xx-root does not exist, you are able to use the following examples to manually scan for the VolGroup, and then mount the root, and boot into it.

From within BusyBox on a failed boot run:

/sbin/lvm vgscan

/sbin/lvm vgchange -a y

mount /dev/mapper/vg00-root /root

exit

Then, once you are back within the Operating System, you will then be able to resolve the issue with the /lib/udev/rules.d/85-lvm2.rules file by changing the following:

SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="lvm*|LVM*", \

RUN+="watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'"

SUBSYSTEM=="block", ACTION=="add|change", \

RUN+="watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'"

Then issue an update to the initramfs by running:

update-initramfs -u

On next boot, all should be working as intended.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence