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 09-14-2013, 09:52 AM   #1
Nitrogen1
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
Cool A new Slackware use need help about kernel and initrd


Hello guys!
First of all I apologize for my bad English, but now come to my questions.
I'm new to linux and I recently installed slackware64 14.0 on my laptop. I followed the slackbook at www.slackbook.com and the documentation at docs.slackware.com to configure what i can, but I would like to understand a few things about the kernel and the initrd. After creating the initrd with the utility mkinitrd_command_generator.sh and started the generic kernel, now I want to understand the function of the initrd and when i need to recreate it. For example, if I upgrade my kernel to a new version I have to recreate the initrd? Or I can use the same?
About to the kernel, if I want to compile the kernel using only the necessary modules for my hardware where should I start? I know that the process of compiling the kernel is more or less in this manner http://stackoverflow.com/questions/8869931/compiling-the-2-6-0-kernel-on-slackware and that there are different ways to configure the kernel as the "config file" or "xconfig" "menuconfig" but how do I find during this process the modules strictly necessary?

Thanks in advance for your answers and i will appreciate any links, HowTo or resource that can help me
 
Old 09-15-2013, 09:46 AM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 697
Blog Entries: 1

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by Nitrogen1 View Post
Hello guys!
First of all I apologize for my bad English, but now come to my questions.
Your English seems great to me.

Quote:
Originally Posted by Nitrogen1 View Post
For example, if I upgrade my kernel to a new version I have to recreate the initrd? Or I can use the same?
You should recreate a new initrd and reinstall lilo.

Quote:
Originally Posted by Nitrogen1 View Post
About to the kernel, if I want to compile the kernel using only the necessary modules for my hardware where should I start?
Sorry, I cannot help you here, have not had to compile a kernel for ages and forgot how. This guide (alien bob's site) may be helpful.

John
 
1 members found this post helpful.
Old 09-15-2013, 10:38 AM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I don't know if you speak French, but I've written a few HOWTOs on the subject.

http://www.microlinux.fr/slackware/L...rnel-HOWTO.txt

http://www.microlinux.fr/slackware/L...LILO-HOWTO.txt
 
Old 09-15-2013, 11:32 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by Nitrogen1 View Post
if I want to compile the kernel using only the necessary modules for my hardware where should I start?
  1. Don't do that, it's useless as you won't see any performance increase.
  2. You still want to do that? Follow Alien BOB's guide as suggested by jmccue, but after "make oldconfig" run "make localmodconfig". This will remove all modules not currently loaded, so plug-in all your removable devices before, otherwise you won't have support for them. If you don't have enough slots (e.g. USB ports), you can unplug a device then plug-in another, provided each device stays plugged-in in at least 30 seconds so that the kernel have enough time to load modules it needs. If for some reason a module doesn't get automatically loaded you will have to "modprobe" it manually instead.

Last edited by Didier Spaier; 09-17-2013 at 02:30 PM. Reason: Typo corrected
 
1 members found this post helpful.
Old 09-15-2013, 12:37 PM   #5
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
Quote:
Originally Posted by Nitrogen1 View Post
Hello guys!
[...] now I want to understand the function of the initrd and when i need to recreate it. For example, if I upgrade my kernel to a new version I have to recreate the initrd? Or I can use the same?
Purpose of initrd is to include as many kernel modules and utilities, which are not included in kernel itself, as needed to boot system. Huge kernel includes almost everything and it's capable of booting by itself most of the time, while generic kernel needs initrd to boot.

Quote:
Originally Posted by jmccue View Post
You should recreate a new initrd and reinstall lilo.
I believe it's a typo. You only need to run lilo to update MBR, not reinstall, after every change with kernel or initrd.
 
1 members found this post helpful.
Old 09-15-2013, 02:32 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Isn't it time to move to UTF-8?

Quote:
Originally Posted by kikinovak View Post
I don't know if you speak French, but I've written a few HOWTOs on the subject.

http://www.microlinux.fr/slackware/L...rnel-HOWTO.txt

http://www.microlinux.fr/slackware/L...LILO-HOWTO.txt
Sorry Nitrogen1, this is clearly off topic...

Nicolas, loading your files in Firefox, one was recognized as Windows-1252 and the other one as UTF-8, though both be encoded in ISO-8859-1 (as set in vim and confirmed by iconv here). There is nothing we can actually do about that (probing the encoding of a file is too tricky), but I'd suggest you always use UTF-8. As a reminder, converting an existing file is just a matter of:
Code:
iconv -f ISO8859-1 -t UTF-8 -o filename.utf8 filename
mv filename.utf8 filename
I did that with your files and that doesn't increase their size much.

Only my of course

PS Your HOW-TOs are well written, as usual.

Last edited by Didier Spaier; 09-15-2013 at 02:33 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] kernel 3.10.0 won't run initrd (Slackware 14.0) Ser Olmy Slackware 2 07-04-2013 08:59 AM
Choosing a kernel for Slackware 12 and is an initrd needed? Lufbery Slackware 26 01-22-2008 07:52 PM
Slackware 12: trouble booting 2.6.21.5-smp kernel. initrd problem? ErV Slackware 8 07-07-2007 09:23 AM
Kernel Panic (no initrd) after Slackware 10.1 Install kinadian Slackware 3 08-14-2006 07:37 PM
slackware 10.2, kernel 2.6.16, and initrd alphisb0t Slackware 3 03-22-2006 01:58 PM

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

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