UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been running Ubuntu 18.04 as a HTPC and autostarting Kodi.
It now hangs and stops at GRUB wanting a selection, and going to emergency mode.
As it tries to boot it gives the following errors:
Warning: Failed to connect to lvmetad. Falling back to device mapping.
/dev/mapper/KodiBuntu--vg-root: clean, {I clipped files/blocks info}
[Time] Timed out waiting for device dev-disk-by\x2duuid-8ef078aa\x2db90a\x2d451e\x2d91dc\x2d4ffcc4208e26.device.
[Depend] Dependency failed for File System Check on /dev/disk/by-uuid/8ef078aa-b90a-451e-91dc-4ffcc4208e26.
[Depend] Dependency failed for /boot.
[Depend] Dependency failed for Local File Systems.
[Time] Timed out waiting for device dev-mapper-KodiBuntu\x2d\x2dvg\x2dswap_1.device.
[Depend] Dependency failed for /dev/mapper/KodiBuntu--vg-swap_1.device.
[Depend] Dependency failed for Swap
What should be my first step to getting this straightened out? TIA.
Ignore the lvmetad warning, but the rest look like you're not talking to the disk properly. How many disks, how are they configured ?.
Might try reseating/cleaning everything and hope for the best. Note my sigline.
Ignore the lvmetad warning, but the rest look like you're not talking to the disk properly. How many disks, how are they configured ?.
Might try reseating/cleaning everything and hope for the best. Note my sigline.
so it has been working well? for how long, how many reboots has it been ok?
Quote:
Originally Posted by rkmorgan
[Time] Timed out waiting for device dev-disk-by\x2duuid-8ef078aa\x2db90a\x2d451e\x2d91dc\x2d4ffcc4208e26.device.
clearly this is the issue.
either you or the system did "something" that caused this - then try to find out what.
i think i remember having to boot some live distro, and adjust the UUIDs in /etc/fstab.
if you or the system really did "nothing", means the hard drive has changed somehow?
so it has been working well? for how long, how many reboots has it been ok?
clearly this is the issue.
either you or the system did "something" that caused this - then try to find out what.
i think i remember having to boot some live distro, and adjust the UUIDs in /etc/fstab.
if you or the system really did "nothing", means the hard drive has changed somehow?
I have a couple possibilities in mind as to what happened. The most likely being an improper shutdown.
[Time] Timed out waiting for device dev-disk-by\x2duuid-8ef078aa\x2db90a\x2d451e\x2d91dc\x2d4ffcc4208e26.device.
If I may toss out a few suggestions: blkid to confirm UUIDs on your disk. dmesg to check for driver messages. pvs, vgs, lvs and pvscan to look into LVM. udevadm info --path=/dev/sdX (or was it /sys/block/sdX?) to get udev's opinion. What happens if you access that disk, e.g. dd if=/dev/disk/by-uuid/<UUID> or dd if=/dev/sdX?
I wonder if the /dev/disk link is just missing for some reason, like udev having a cold, and otherwise everything is fine.
Last edited by berndbausch; 09-22-2018 at 07:56 PM.
It now hangs and stops at GRUB wanting a selection, and going to emergency mode.
I understand this as "Grub displays the menu but doesn't boot automatically". If that is the case, it seems Grub has lost its default menuentry. At the emergency prompt, I would ensure /boot is mounted, check /etc/default/grub and re-run grub-mkconfig.
If I may toss out a few suggestions: blkid to confirm UUIDs on your disk. dmesg to check for driver messages. pvs, vgs, lvs and pvscan to look into LVM. udevadm info --path=/dev/sdX (or was it /sys/block/sdX?) to get udev's opinion. What happens if you access that disk, e.g. dd if=/dev/disk/by-uuid/<UUID> or dd if=/dev/sdX?
I wonder if the /dev/disk link is just missing for some reason, like udev having a cold, and otherwise everything is fine.
Booting from a LiveCD gives the following values.
According to Gparted sda is configured as:
/dev/sda1 - ext2 - blank mount point - boot
/dev/sda2 - extended - blank mount point - blank flag
/dev/sda5 - lvm2 pv - KodiBuntu-vg - lvm
When it gets to the GRUB selection menu, I select:
Advanced options for ubuntu
Then I am presented with other options, and I select this:
Ubuntu with linux 4.15.0-34 generic (recovery mode)
Once the menu comes up with recovery options, I select this:
grub - update grub boot loader
It gives me this message:
Continuing will remount your / filesystem in read/write mode and mount any other filesystem defined in /etc/fstab.
Do you wish to continue?
I allow it by selecting:
Yes
After it goes through its process, it goes back to the recovery menu. Then I select this:
Resume - resume normal boot
At this point the system loads as it should. It loads up directly into KODI as it previously has and is completely functional as it should be.
If I restart, the GRUB menu still appears. If I select the option to load Ubuntu, it fails with the same messages as I originally posted.
When booting it is supposed to load directly into KODI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.