LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2022, 03:43 PM   #1
rickster3313
LQ Newbie
 
Registered: Nov 2021
Posts: 13

Rep: Reputation: Disabled
How To Determine If Initrd Is In Use?


Hello. I've configured Slackware 14.2, on an old laptop that dual boots with BunsenLabs Linux(Debian). I've created the initrd.gz, & modified 40_custom grub entry which includes reference to the initrd.gz. I don't see any glaring messages when I select Slackware from the updated menu at boot time. Unfortunately, the messages scroll by so quickly I have knowing if there is any other problem. I can see something that indicates the kernel is being decompressed. Once, Slackware is loaded, I only see one message in Dmesg which references initrd. The gist being "Freeing initrd memory: 6080K." & that is it. Is there any other way to confirm the initrd.gz file is actually being found, & working properly.
Thanks in advance, -Rick
 
Old 01-17-2022, 04:39 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
The main reason for using an initrd is for filesystem support, without which the kernel won't be able to mount your root partition.

I guess the obvious question is: Does your system boot to a login prompt? If so, then chances are that you got it right.

Please note that if you're using the "huge" kernel, then it has filesystem support for the most common ones built in, so the advice above won't apply.
 
Old 01-17-2022, 04:47 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
If you see the message "Freeing initrd memory:" indeed an initrd was used. But it is no more in use when you get the login prompt, that's why the memory it used can (and should) be freed for other purposes.

Last edited by Didier Spaier; 01-17-2022 at 05:03 PM.
 
1 members found this post helpful.
Old 01-18-2022, 02:21 AM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I would hit "e" on the used grub entry to check the last line that should mention the right initrd.
 
Old 01-18-2022, 03:00 AM   #5
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by rkelsen View Post
The main reason for using an initrd is for filesystem support, without which the kernel won't be able to mount your root partition.

I guess the obvious question is: Does your system boot to a login prompt? If so, then chances are that you got it right.

Please note that if you're using the "huge" kernel, then it has filesystem support for the most common ones built in, so the advice above won't apply.
According with our BDFL himself, the usage of "huge" kernels is NOT supported and recommended, see CHANGES_AND_HINTS.TXT of (to be) Slackware 15.0
Code:
Use one of the provided generic kernels for daily use.  Do not report
  bugs until/unless you have reproduced them using one of the stock.
  generic kernels.  You will need to create an initrd in order to boot
  the generic kernels - see /boot/README.initrd for instructions.
  The huge kernels are primarily intended as "installer" and "emergency".
  kernels in case you forget to make an initrd.  For most systems, you.
  should use the generic SMP kernel if it will run, even if your system is.
  not SMP-capable.  Some newer hardware needs the local APIC enabled in the.
  SMP kernel, and theoretically there should not be a performance penalty.
  with using the SMP-capable kernel on a uniprocessor machine, as the SMP.
  kernel tests for this and makes necessary adjustments.  Furthermore, the.
  kernel sources shipped with Slackware are configured for SMP usage, so you.
  won't have to modify those to build external modules (such as NVidia or.
  ATI proprietary drivers) if you use the SMP kernel.

  If you decide to use one of the non-SMP kernels, you will need to follow the
  instructions in /extra/linux-5.13.9-nosmp-sdk/README.TXT to modify your
  kernel sources for non-SMP usage.  Note that this only applies if you are
  using the Slackware-provided non-SMP kernel - if you build a custom kernel,
  the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
  correct kernel source so long as you don't (re)move it.
So, nope! The people should NOT use the "huge" kernels with Slackware 15.0 and should NOT recommend them in any situation.

Last edited by LuckyCyborg; 01-18-2022 at 03:16 AM.
 
5 members found this post helpful.
Old 01-18-2022, 06:25 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by LuckyCyborg View Post
So, nope! The people should NOT use the "huge" kernels with Slackware 15.0 and should NOT recommend them in any situation.
I don't know if you actually read my post, but I was not making any such recommendation.
 
  


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
to initrd or not to initrd... svu Slackware 34 01-18-2023 02:09 AM
[SOLVED] Determine mapped name of encrypted rootpartition when generating initrd crts Slackware 2 12-22-2016 01:58 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
How do i determine my IP address? How do i determine my host name? jwymore Linux - Networking 5 02-07-2007 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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