You are not logged in.

#1 2018-07-05 18:58:11

Kakashiy
Member
Registered: 2018-01-31
Posts: 13

[SOLVED] Booting without initramfs failed

Hi,

I tried to improve boot speed and get a bit more familiar with the linux kernel so i tried to compile my own kernel without an initramfs

Thats how it looks like 

efibootmgr -c -d /dev/sda -p 1 -l \vmlinuz-linux-custom -L  Arch_Linux_Custom -u "rootfstype=xfs rw elevator=noop quiet" 

I got the build in kernel commandline with

root=/dev/sda2

to generate the kernel i used localmodconfig and changed some things with nconfig (no initramfs support and enabled all efi features)

when i tried to boot i got an error

vfs unable to mount root fs on unknown-block

Do you have any idea what i am doing wrong if you need more information just tell me

Thanks for the help

Bene

Last edited by Kakashiy (2018-07-05 21:02:22)

Offline

#2 2018-07-05 19:29:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,652

Re: [SOLVED] Booting without initramfs failed

Did you enable the xfs configuration as a built-in rather than a module?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2018-07-05 20:19:44

Kakashiy
Member
Registered: 2018-01-31
Posts: 13

Re: [SOLVED] Booting without initramfs failed

ewaller wrote:

Did you enable the xfs configuration as a built-in rather than a module?


I guess i did not do it, i searched on the internet and find nothing, how can i do it?
I also searched in Nconfig but so far i found nothing.

Offline

#4 2018-07-05 20:25:32

loqs
Member
Registered: 2014-03-06
Posts: 18,950

Re: [SOLVED] Booting without initramfs failed

Offline

#5 2018-07-05 20:33:31

Kakashiy
Member
Registered: 2018-01-31
Posts: 13

Re: [SOLVED] Booting without initramfs failed

It is build in it looks like "[ * ] XFS Filesystem"

Offline

#6 2018-07-05 20:46:20

loqs
Member
Registered: 2014-03-06
Posts: 18,950

Re: [SOLVED] Booting without initramfs failed

Is this the series of error messages you are getting?

Offline

#7 2018-07-05 20:56:29

Kakashiy
Member
Registered: 2018-01-31
Posts: 13

Re: [SOLVED] Booting without initramfs failed

It worked SCSI and ahci modules were not included in the kernel i got it now thanks for the helo

Offline

#8 2018-07-05 21:04:14

Kakashiy
Member
Registered: 2018-01-31
Posts: 13

Re: [SOLVED] Booting without initramfs failed

loqs wrote:

Is this the series of error messages you are getting?


Yes, I got this error message.


I am reading "How Linux Works" right now this book helped me a lot to fix this Problem

Offline

Board footer

Powered by FluxBB