You are not logged in.

#1 2017-02-08 11:52:42

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Linux-4.9.8-1 Upgrade Problem

I upgraded this morning to 4.9.8 and subsequently could not boot the pc. The erreor was

A start job running for dev-sdaX.device

Where sdaX wa my root partition (not boot)

The fix was to downgrade to 4.9.7-1

Sorry - no further information on why this occurred

Andrew

Offline

#2 2017-02-08 13:12:35

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Linux-4.9.8-1 Upgrade Problem

So what is 'sdaX'? What does the journal from the failed boot say?

Mod note:moving to NC


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-02-08 13:56:23

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

So what is 'sdaX'? What does the journal from the failed boot say?

Where sdaX was my root partition (not boot)
The journal does not say anything because the pc would not boot into linux

Mod note:moving to NC

As you wish - looks like a kernel problem to me.

Andrew

Offline

#4 2017-02-08 14:41:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: Linux-4.9.8-1 Upgrade Problem

Do you actually use /dev/sda in your bootloader config to refer to your root partition? You shouldn't use those, they aren't stable, they can change on a whim if the kernel enumerates some other device first, use something more persistent. However this has always been true and should have nothing to do with that update, so this issue could have been merely coincidental. Even so the journal could still contain information, and you can read the contents of that even on the older kernel.

Offline

#5 2017-02-08 14:45:09

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Linux-4.9.8-1 Upgrade Problem

The message you were getting was from systemd, not the kernel, so the kernel was loading fine, it is the initramfs that is having difficulty. It may yet be a kernel problem (e.g. missing/broken modules), but you haven't provided enough information about the problem to say for sure.

See https://wiki.archlinux.org/index.php/Ge … leshooting, particularly the section regarding debug output, but read the whole thing.

If you are dropped to an emergency shell, and can use your keyboard, post the output of

uname -a

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2017-02-08 17:10:05

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

The kernel may have booted fine, but the boot process could not continue because it could not proceed beyond the error message:

A start job running for dev-sdaX.device

where /dev/sdaX is my root partition.
There was no emergency shell, or if there was the shell was broken smile
Just to re-iterate journalctl shows no entries whatsoever in the period.
Downgrading linux solved the problem.
I posted this in case anyone else had the same problem. If they do let me know and we can compare notes.

@V1del Thanks and I understand, but this was not the problem in this case.

Andrew

Offline

#7 2017-02-08 17:24:33

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Linux-4.9.8-1 Upgrade Problem

fdservices wrote:

The fix was to downgrade to 4.9.7-1

So you are running testing?

Offline

#8 2017-02-08 17:40:19

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Linux-4.9.8-1 Upgrade Problem

4.9.8-1 is the latest stable. I'd assume he downgraded using the package cache.

Other than that, is there no timeout for the mentioned start job? If there is none, that might be why you aren't dropped to a recovery shell.
You can try to force one by appending 'systemd.unit=rescue.target' to your kernel boot arguments.

Lastly, since the root partition is not being mounted, that probably explains why there are no journalctl entries for that period since the logs can never persist a reboot without writing them out somewhere.

Offline

#9 2017-02-08 17:55:25

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Linux-4.9.8-1 Upgrade Problem

Omar007 wrote:

4.9.8-1 is the latest stable. I'd assume he downgraded using the package cache.

As far as I am aware 4.9.7-1 was never moved from the testing repositories to the main repositories.
So my explanation for how 4.9.7-1 was present on the system was that pacman was configured to use the testing repositories.
edit:

Omar007 wrote:

You can try to force one by appending 'systemd.unit=rescue.target' to your kernel boot arguments.

systemd.unit=rescue.target applies to the systemd after the root filesystem has been loaded and systemd has switched root to there,  rd.systemd.unit=rescue.target applies to the ramdisk
Also note rescue.target will still try and mount the root filesystem while emergency.target will not.

Last edited by loqs (2017-02-08 19:17:58)

Offline

#10 2017-02-08 18:45:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Linux-4.9.8-1 Upgrade Problem

Apologies, I think I may have locked this topic by accident. Re-opening.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2017-02-08 20:36:43

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

@loqs No I am not running testing, 4.9.7-1 must have been released - I do tend to stay pretty much up to the minute.

@Omar007 That is correct - from the package cache. Sorry, there was indeed a 1min 30sec timout which I did not report. Re journalctl - yes I think so.

Andrew

Edit: typos

Last edited by fdservices (2017-02-08 20:38:16)

Offline

#12 2017-02-08 20:47:28

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Linux-4.9.8-1 Upgrade Problem

fdservices wrote:

@loqs No I am not running testing, 4.9.7-1 must have been released - I do tend to stay pretty much up to the minute.

Apologies I was mistaken

Offline

#13 2017-02-08 20:50:09

Omar007
Member
Registered: 2015-04-09
Posts: 368

Re: Linux-4.9.8-1 Upgrade Problem

@loqs; Ah thank you for correcting me. I did indeed forget to write down the rd prefix. My bad :V
I did not know that the rescue.target would actually fail without root. Good to know about the emergency.target. You learn something new every day smile
Also, fwiw, 4.9.7-1 was in the normal repositories for about 2 days or so wink

@fdservices; It doesn't drop you to a shell after the timeout either? Did you give the emergency.target as loqs suggested a try?

@WorMzy; I was wondering why it was closed without any mod-note whatsoever xD

Offline

#14 2017-02-08 20:58:20

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Linux-4.9.8-1 Upgrade Problem

Looking at ChangeLog-4.9.8 changes seem to be divided into only two categories xfs patches and networking patches.
Is your root filesystem xfs if not it would seem to me somewhat strange that this patchset caused the breakage.

Offline

#15 2017-02-08 21:00:44

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

Yes, I think it may have dropped me to the emegency.target, but there is does not seem to be much point, especially with no root partition.

"emergency" is little more than an equivalent to init=/bin/sh on the kernel command like. i.e. you get a shell, but almost nothing else

Andrew

Offline

#16 2017-02-08 21:02:29

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

May be something went wrong with the upgrade process, although nothing was reported. I may try again if no one else has any problems.

Andrew

Offline

#17 2017-02-08 21:20:36

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: Linux-4.9.8-1 Upgrade Problem

Silly question, but did you have /boot mounted at the time? I get those messages almost everytime I upgrade the kernel on my laptop since it's on a USB drive and in fstab with noauto. Downgrading would fix it since the image in /boot would be for the old kernel, and there would be no error message since there is a /boot directory, it's just not the right one.

Last edited by nstgc (2017-02-08 21:21:22)

Offline

#18 2017-02-08 21:35:11

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

Well I don't have a USB hard drive, and I have never had the problem before.

Andrew

Offline

#19 2017-02-08 21:41:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Linux-4.9.8-1 Upgrade Problem

It has nothing to do with a USB drive. If your /boot was not mounted during an upgrade, you will experience this issue.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#20 2017-02-08 21:45:36

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

Sorry, misunderstood the question.

Yes, of course /boot was mounted during the upgrade.

Andrew

Offline

#21 2017-02-08 22:10:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Linux-4.9.8-1 Upgrade Problem

How can you be so sure? Please paste your fstab.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#22 2017-02-09 07:39:35

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Linux-4.9.8-1 Upgrade Problem

#
# /etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
# /dev/sda2
UUID=49819f85-4211-488f-b989-c74c6eff6f39    /             ext4          rw,relatime,data=ordered    0 1

# /dev/sda1
UUID=9041-5D11          /boot         vfat          rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname
=mixed,errors=remount-ro    0 2

# /dev/sda4
UUID=5e09a5be-0b0f-4ffc-8e60-8239f7756487    /home         ext4          rw,relatime,data=ordered    0 2

# /dev/sda3
UUID=116c0842-24cf-4153-8d2a-721dda6770ea    none          swap          defaults      0 0

Offline

#23 2017-02-09 07:44:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Linux-4.9.8-1 Upgrade Problem

So your fstab uses UUIDs, but your boot{loader,manager} uses sdx?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB