LinuxQuestions.org
Visit Jeremy's Blog.
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: 133

Rep: Reputation: 35
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
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,756

Rep: Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851
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
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,411

Rep: Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122
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
Posts: 156

Rep: Reputation: 21
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
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,411

Rep: Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122Reputation: 1122
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 12:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration