You are not logged in.

#1 2020-03-07 19:18:54

Tharbad
Member
Registered: 2016-02-27
Posts: 333

[SOLVED] PC sometimes fails to mount / on startup

Hi everyone,

On one of my PCs, root fails to mount on startup sometimes.
That system is now up. I run smartctl and disk seems to be OK.
Anything else I can run while the system is up and mounted?

Thanks

Edit:
Solved by adding kernel parameters.

Last edited by Tharbad (2020-04-20 07:13:31)

Offline

#2 2020-03-07 19:21:28

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

Re: [SOLVED] PC sometimes fails to mount / on startup

Read the journal from a failed boot...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-03-07 19:27:58

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC sometimes fails to mount / on startup

There is none...

Offline

#4 2020-03-07 19:33:28

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

Re: [SOLVED] PC sometimes fails to mount / on startup

There is no journal entries at all? Please paste the exact commands and the output.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2020-03-07 20:08:47

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC sometimes fails to mount / on startup

journalctl -b -1

It gives me the last successful boot where / was mounted.

Offline

#6 2020-03-07 21:09:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,009

Re: [SOLVED] PC sometimes fails to mount / on startup

If the root FS isn't mounted, there's no chance to write the journal to disk (though I guess you could direct ít somewhere else)

root fails to mount on startup sometimes

With what exact message?

Did you try to pass

	rootdelay=	[KNL] Delay (in seconds) to pause before attempting to
			mount the root filesystem

	rootwait	[KNL] Wait (indefinitely) for root device to show up.
			Useful for devices that are detected asynchronously
			(e.g. USB and MMC devices).

to the kernel?

Offline

#7 2020-03-07 21:46:09

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [SOLVED] PC sometimes fails to mount / on startup

seth wrote:

If the root FS isn't mounted, there's no chance to write the journal to disk (though I guess you could direct ít somewhere else)

root fails to mount on startup sometimes

With what exact message?

Did you try to pass

	rootdelay=	[KNL] Delay (in seconds) to pause before attempting to
			mount the root filesystem

	rootwait	[KNL] Wait (indefinitely) for root device to show up.
			Useful for devices that are detected asynchronously
			(e.g. USB and MMC devices).

to the kernel?

It waited for the root to show up (10 sec) and then I got the emergency cmd.

I'll add rootwait to linux-lts and rootdelay=90 to linux kernel.

Offline

Board footer

Powered by FluxBB