LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-24-2022, 10:29 PM   #1
Kalixx
LQ Newbie
 
Registered: Sep 2022
Posts: 3

Rep: Reputation: 0
LFS doesn't boot


Problem explanation:

Hey there, I have a serious problem building LFS everytime EFI/Legacy, doesn't matter, my LFS doesn't boot at all!, I mean after setting up grub to boot the kernel, nothing changes, screen remains on its own (grub screen), I just saw some disk activity light blinking for around 6/7 seconds, then nothing, literally nothing, I've tried to wait utill maybe something happens, nothing happened, disk activity remains inactive, no errors, screen shows grub loading Linux..., and of course system was not responsible to any inputs, even the power button, I should press it down for full 3 seconds to turn it off.


OK let me show you how I built LFS and grub, first of all I haven't got any unexpected build errors and tried to build packages and test them carefully one by one, until I reached GRUB, I haven't built grub using what LFS said, I built grub after installing efivar and efibootmgr, and after that I tried to use
Code:
grub-install /dev/sdb
(sdb is my host disk on ubuntu live cd), but grub was asking me for efi directory which I passed in as an argument
Code:
--efi-directory=/mnt/efi
after mounting /dev/sdb4 to /mnt/efi, I listed files inside and I'm sure that's the correct partition, so I made my own grub.cfg file based on LFS tutorial and set it up, so I rebooted and tried to boot after pressing enter and yes, as I said at first, nothing happened, I checked kernel build config file and verified
Code:
CONFIG_EFI_STUB=y
, so still got no luck, I tried to use grub-mkconfig utility to overwrite my grub.cfg file, so I did, rebooted and tried to boot, but still no lock, same thing?

My questions:
1. What should be the cause of this issue?, because I remember the last time I tried to build LFS inside QEMU using Legacy and exact tutorial, I got the exact same situation.
2. Am I missing an option of something to debug kernel boot? Maybe there is a kernel panic that I am aware of.
3. Can it be fixed?

Thank you so much, any help appreciated!
 
Old 09-25-2022, 03:16 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Did look like double post, but maybe not.

Last edited by Emerson; 09-25-2022 at 03:17 PM.
 
  


Reply



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
[SOLVED] i cant boot into new LFS installation (lfs 7.5) sholizar Linux From Scratch 33 12-20-2021 06:55 AM
LFS error: boot lfs, Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0) XinyuLi Linux From Scratch 4 05-16-2017 01:17 AM
[SOLVED] My LFS doesn't connect to the internet by itself on the boot-up giuliom_95 Linux From Scratch 12 04-07-2013 02:18 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
Can't boot LFS ( kernel panic - not syncing ) LFS 6.6 Lyle Linux From Scratch 14 05-15-2010 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:06 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