LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-22-2018, 12:05 AM   #1
rkmorgan
LQ Newbie
 
Registered: Sep 2017
Posts: 6

Rep: Reputation: Disabled
Ubuntu stopped booting forces GRUB selection


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.
 
Old 09-22-2018, 12:49 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
First step ? - get a new hard disk ready.

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.
 
Old 09-22-2018, 01:09 AM   #3
rkmorgan
LQ Newbie
 
Registered: Sep 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
First step ? - get a new hard disk ready.

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.
Single disk. Connections look fine.
 
Old 09-22-2018, 01:30 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
so it has been working well? for how long, how many reboots has it been ok?

Quote:
Originally Posted by rkmorgan View Post
[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?
 
Old 09-22-2018, 01:31 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Fire up a liveCD and run smartctl on the disk would be a reasonable start. At least you'll be able to see the logs if even that won't run.
 
Old 09-22-2018, 01:49 AM   #6
rkmorgan
LQ Newbie
 
Registered: Sep 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.
 
Old 09-22-2018, 05:58 PM   #7
rkmorgan
LQ Newbie
 
Registered: Sep 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Fire up a liveCD and run smartctl on the disk would be a reasonable start. At least you'll be able to see the logs if even that won't run.
According to smartctl, the disk is healthy.
 
Old 09-22-2018, 07:54 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by rkmorgan View Post
[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.
 
Old 09-22-2018, 08:00 PM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by rkmorgan View Post
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.
 
Old 09-22-2018, 09:04 PM   #10
rkmorgan
LQ Newbie
 
Registered: Sep 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
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

blkid is showing:
/dev/sda1: UUID="8ef078aa-b90a-451e-91dc-4ffcc4208e26" TYPE="ext2" PARTUUID="af8c41ca-01"
/dev/sda5: UUID="xPpdOR-RD0W-trBy-rfdn-nvGx-f88X-VOFMWy" TYPE="LVM2_member" PARTUUID="af8c41ca-05"
/dev/mapper/KodiBuntu--vg-root: UUID="7b63270b-1486-41f2-96a0-ed7446dbbab3" TYPE="ext4"
/dev/mapper/KodiBuntu--vg-swap_1: UUID="cbbae2f0-eabe-4ea2-abf8-47ba21132ac6" TYPE="swap"
 
Old 09-22-2018, 11:59 PM   #11
rkmorgan
LQ Newbie
 
Registered: Sep 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Interesting.....

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I try to install ubuntu but booting is stopped with the following jiucai Ubuntu 10 04-30-2012 05:41 PM
Grub 1.99 and multi-booting Ubuntu 11.04 32 bit and Ubuntu 11.04 64bit simw Linux - Newbie 10 07-01-2011 10:40 AM
Ubuntu 9.10 does not start after kernel selection from Grub menu jiteshdoshi Linux - Hardware 1 06-28-2010 03:44 AM
Dual boot with ubuntu 9.10 and windows xp - xp just hangs upon selection (GRUB) user1010 Linux - General 8 02-11-2010 01:54 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration