LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-28-2024, 12:38 PM   #1
korvahannu
LQ Newbie
 
Registered: Jan 2024
Posts: 5

Rep: Reputation: 1
Unhappy First time installing LFS: Boot hangs after "md: ...autorun Done"


Hi!

I have installed LFS for the first time and the boot hangs after "md: ...autorun Done". I found only one topic related to this here: https://www.linuxquestions.org/quest...n-done-203250/

I am hesitant to recompile the kernel without RAID support, but should I do it or are there other options / troubleshooting steps I should take?

Any help would be appreciated!
 
Old 01-28-2024, 04:23 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
"md: ...autorun Done" is not an error, so unlikely to be the cause of your problem. Look at earlier lines for the error.
 
Old 01-28-2024, 07:21 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
May be missing drivers that need to be compiled into the kernel for a successful boot.
 
Old 01-29-2024, 02:56 AM   #4
korvahannu
LQ Newbie
 
Registered: Jan 2024
Posts: 5

Original Poster
Rep: Reputation: 1
Thanks for the replies! I get no other errors. Just information about what devices are found such as hard drives, USB-devices, etc. The screen just freezes and the computer can only be turned off via pulling the power plug.

I will take a look at the Kernel once more. I did all the configurations that the LFS book recommended me to do. I will recheck them. Are there any others I should check? I noted the BLFS book has a part about mesa drivers, so maybe I will do that as I have an AMD CPU.

Specs:
Gigabyte Technology Co., Ltd. X670 GAMING X AX
AMD Ryzen 7 7700X
AMD Radeon™ RX 6800 XT
RAM 32.0*GiB DDR5
 
Old 01-29-2024, 11:27 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
On what device is your root filesystem? Can you see it get mounted in the log?
 
Old 01-30-2024, 08:36 AM   #6
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
You didn't say what version of LFS you are building, sysvinit or systemd based, or what host you are using. If recent sysvinit based (udev extracted from systemd instead of separate eudev package) don't forget this line in your fstab:
Code:
cgroup2        /sys/fs/cgroup cgroup2  nosuid,noexec,nodev 0     0
- believe it or not, that can cause the issue you are describing. Also, make sure you have the required radeon GPU firmware in /usr/lib/firmware. Look in dmesg output of the host for the exact firmware being used or just install all of the radeon firmware.
 
Old 01-30-2024, 09:53 AM   #7
korvahannu
LQ Newbie
 
Registered: Jan 2024
Posts: 5

Original Poster
Rep: Reputation: 1
Hi! Thanks for the replies. I haven't had much time to work on this, but perhaps in the weekend. This is my fstab, which should be correct as I copy & pasted it from the book. I am building the sysvinit and I followed all the steps in the book.

Code:
/dev/sdb3     /              ext4    defaults            1     1
/dev/sb2     swap           swap     pri=1               0     0
proc           /proc          proc     nosuid,noexec,nodev 0     0
sysfs          /sys           sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts       devpts   gid=5,mode=620      0     0
tmpfs          /run           tmpfs    defaults            0     0
devtmpfs       /dev           devtmpfs mode=0755,nosuid    0     0
tmpfs          /dev/shm       tmpfs    nosuid,nodev        0     0
cgroup2        /sys/fs/cgroup cgroup2  nosuid,noexec,nodev 0     0
I did not install any firmware. I found this article from BLFS, https://www.linuxfromscratch.org/blf.../firmware.html, should I follow it as well?

I failed to find anything in the logs by checking /var/log, all is empty. I can try booting it later again and see if I can spot anything sus.
 
Old 02-01-2024, 06:58 AM   #8
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Rep: Reputation: 21
Moin,

Quote:
Originally Posted by korvahannu View Post
I did not install any firmware. I found this article from BLFS, https://www.linuxfromscratch.org/blf.../firmware.html, should I follow it as well?
This might be a good idea. Maybe pretty much the same happened to me here:
https://www.linuxquestions.org/quest...pc-4175717185/

cheers,
WK
 
Old 02-02-2024, 04:27 AM   #9
korvahannu
LQ Newbie
 
Registered: Jan 2024
Posts: 5

Original Poster
Rep: Reputation: 1
Hi! Thanks for all the responses. I installed the firmware and I was able to get past the original problem. I tried booting LFS and my PC was no longer freezing on the same line. Instead, I got a nice kernel panic about "unable to mount root fs", which is a better situation as I now have some output. I need to do some investigating on what causes this error. I did notice that the output (see image below) shows some problems on the hard-drive I have LFS installed on (/dev/sdb) as it lists only one partition instead of the three. I posted my fstab above and I did notice that my swap partition was listed as /dev/sb2 instead of /dev/sdb2, which I fixed. This didn't fix the kernel panic, but good progress anyways. I did check the kernel configuration that ext4 was ticker on with *. Any tips regarding this new issue is also appreciated :-) Thank you!

Here is an image I took of the kernel panic:
https://i.postimg.cc/pLQyt4nB/20240202-114934.jpg
 
Old 02-02-2024, 04:41 AM   #10
derguteweka
Member
 
Registered: Sep 2018
Distribution: BLFS
Posts: 74

Rep: Reputation: 21
Moin,

Quote:
Originally Posted by korvahannu View Post
I did notice that the output (see image below) shows some problems on the hard-drive I have LFS installed on (/dev/sdb) as it lists only one partition instead of the three.
This sounds weird. What does
Code:
fdisk -l /dev/sdb
tell, if your're running it from the Hostsystem (the one you used to build LFS)?

Cheers,
WK
 
Old 02-02-2024, 08:13 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
/dev/sdb doesn't show any partitions. If it isn't a missing driver problem in the kernel, the drive order may be changing when a usb drive is plugged in. To work around this use lsblk -f to find the uuids of the lfs install and change the fstab to use uuids something similar to this
Code:
UUID=xxxxxx-xxx-xx-xx /              ext4    defaults            1     1
If this is a uefi system did you look at this: https://www.linuxfromscratch.org/blf...ml#uefi-kernel
 
Old 02-02-2024, 12:16 PM   #12
korvahannu
LQ Newbie
 
Registered: Jan 2024
Posts: 5

Original Poster
Rep: Reputation: 1
Hi all and thank you all for your continuous support, great community! I have gotten the installation working now. I tweaked some of the kernel settings and messed about with my fstab -file. I also installed initramfs. It is unclear to me which one of these worked though �� the important thing is that I now have a running system and I can continue inspecting and learning it.

To recap, overall I had to do the following things:
- Went through the kernel configuration again and compiled it
- Installed firmware for my GPU and CPU
- Triple checked my /etc/fstab file
- Installed initramfs

https://i.postimg.cc/15x7rcqF/20240202-200455.jpg
 
1 members found this post helpful.
  


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] STUCK at first boot: LFS v9.0 First Boot Dell Inspiron 1545 Laptop bgii2000 Linux From Scratch 12 10-12-2019 05:43 PM
Debian hangs at boot with "random: crng init done"? patrick295767 Debian 8 12-29-2018 10:09 PM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
suse 10.0 => processes "sending kill signal": "done, done, missing"...!? ungua Linux - Newbie 2 01-18-2006 10:52 AM
Boot hangs after "md: ...autorun Done" The_fuzzy_cow Linux - Hardware 2 07-12-2004 08:50 AM

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

All times are GMT -5. The time now is 11:02 AM.

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