Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 739250

Summary: genkernel-4.1.1 fails to mount root: mounting /dev/sda1 on /newroot failed: No such file or directory
Product: Gentoo Hosted Projects Reporter: Michal Jakubowski <kajanos>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal CC: kajanos, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michal Jakubowski 2020-08-27 12:05:33 UTC
Hello on genkernel-4.1.1 I cannot boot Gentoo on version 4.1.0-r2 works fine.
During boot I have error:
mounting /dev/sda1 on /newroot failed: No such file or directory

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-27 14:14:02 UTC
I've assigned this but really some more information will be needed. emerge --info, the genkernel log, probably the logs from boot / screenshots.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-27 15:17:39 UTC
Please set

  gk.hw.use-modules_load=yes

on kernel command-line and see if this will make a difference.

If it does, please share kernel config and system details.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-28 11:19:28 UTC
And please share kernel command-line, used root fs and kernel config.
Comment 4 Larry the Git Cow gentoo-dev 2020-08-28 20:18:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=05f968fda2c6839744b36c442b3feaa6de974e63

commit 05f968fda2c6839744b36c442b3feaa6de974e63
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-08-28 13:38:41 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-08-28 16:35:59 +0000

    defaults/linuxrc: Try to determine filesystem type
    
    'mount -t auto' will not trigger module loading for filesystem kernel modules.
    Therefore we try to determine filesystem to trigger module loading in case
    filesystem isn't built into the kernel.
    
    Bug: https://bugs.gentoo.org/739250
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/initrd.scripts | 42 +++++++++++++++++++++++++++++++++++++++++-
 defaults/linuxrc        |  6 +++++-
 2 files changed, 46 insertions(+), 2 deletions(-)
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-28 21:40:30 UTC
Should be fixed in >=genkernel-4.1.2! Would be nice if you could test and report back!
Comment 6 Michal Jakubowski 2020-08-31 10:34:24 UTC
On 4.1.2 is OK.

Thank you.