Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-14-2013, 09:52 AM
|
#1
|
LQ Newbie
Registered: Sep 2013
Posts: 3
Rep: 
|
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 
|
|
|
09-15-2013, 09:46 AM
|
#2
|
Member
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 881
|
Quote:
Originally Posted by Nitrogen1
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
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
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.
|
09-15-2013, 10:38 AM
|
#3
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
|
|
|
09-15-2013, 11:32 AM
|
#4
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,374
Rep: 
|
Quote:
Originally Posted by Nitrogen1
if I want to compile the kernel using only the necessary modules for my hardware where should I start?
|
- Don't do that, it's useless as you won't see any performance increase.
- 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.
|
09-15-2013, 12:37 PM
|
#5
|
Member
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176
Rep:
|
Quote:
Originally Posted by Nitrogen1
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
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.
|
09-15-2013, 02:32 PM
|
#6
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,374
Rep: 
|
Isn't it time to move to UTF-8?
Quote:
Originally Posted by kikinovak
|
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.
|
|
|
All times are GMT -5. The time now is 05:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|