Choosing a kernel for Slackware 12 and is an initrd needed?
Hi all,
I finally got around to installing the new hard drive in my laptop and installing Slackware 12 on it. So far, I've got just two questions. First, did I change kernels correctly? -- I've read here, and in the readmes the recommendation to use the generic SMP kernel for day-to-day operations. I did a full installation and the default kernel is the huge smp kernel. So, I went to the boot directory and changed the System.map, bzImage, and config symbolic links to link to the corresponding generic SMP files. The laptop boots correctly and everything seems to work, but is there anything else I need to do? Second, why would I need to make an initrd? The ANNOUNCE.12_0 file states: Quote:
Thanks, -Drew |
Quote:
|
So if I can boot without the initrd, then I can assume that the root file system is mounting just fine without it?
I've got my hard drive in four partitions with one formatted as swap and the other three as JFS. I think the JFS support is in the kernel, so I shouldn't need the initrd if I'm understanding things correctly. Of course, I could be confused... -Drew |
No, you don't need initrd if you have fs support in the kernel.
|
Quote:
|
What file system are you running? Have you redone lilo? I would be very suspicious that you are actually still running the huge kernel. I am pretty sure that Pat's generic kernel will not run ext3 without an initrd.
|
Quote:
|
Hi folks,
I'm a guy, by the way. As Nylex said, I'm using JFS, and I'm pretty sure I'm using the generic SMP kernel. But, I'm not sure. So, I changed the links for Code:
System.map, bzImage, and config Otherwise, I'll need to make the initrd. Do I do that first and then switch Lilo to it? Regards, -Drew |
Are you sure you don't mean "vmlinuz" when you said "bzImage"? This is my LILO config (the important bit) for my system running the generic SMP kernel:
Code:
image = /boot/vmlinuz-generic-smp-2.6.21.5-smp Show us what yours looks like. |
I guess that there is a command which tells you what kernel you are running; I don't know what it is :-)
You need to be careful not to burn your bridges. When you try a different kernel it makes sense to leave the option of booting the old kernel. So rather than change symlinks I prefer to add a new option in lilo.conf to give the choice of the old and new kernel. If all goes well you can delete the old option. |
Nylex,
You're right, I meant vmlinuz. Arubin, That's great advice! I'll be back to post my lilo.conf tomorrow. I really like the idea of leaving the option to boot to the huge kernel. Regards, and thanks for the help. -Drew |
If you want to know what kernel you are running then open a console and run:
$ uname -a And I agree with the others; I specifically remember having to make an initrd when using reiserfs for my root partition and the 2.6 kernel in slack 11. I had to include both reiserfs and the module for my sata controller in that initrd. Given this specific warning: Quote:
|
I don't think "uname -a" helps much (which is probably why it hasn't been suggested before). For example, on my system, with the generic SMP kernel, I get
Linux rigel 2.6.21.5-smp #1 SMP Tue Jun 19 14:52:25 CDT 2007 i686 Mobile Intel(R) Celeron(R) CPU 2.20GHz GenuineIntel GNU/Linux, which doesn't tell me whether I'm using the huge or the generic kernel, only that it's SMP. I'm not sure what the output would be like for the huge kernel! |
uname -v ?
|
|
Here's what I do (this is on -current, but the idea is the same):
Code:
image = /boot/vmlinuz-generic-smp-2.6.23.12-smp Also notice that I use the same initrd.gz file for both the smp and non-smp generic kernels; if you don't pass the -c switch to the second run of mkinitrd, it will add the non-smp modules to the existing initrd tree and recreate it. In other words, you can have support for as many different generic kernels as you'd like in one initrd. |
Hi all,
Thanks for the advice folks. First of all, my vmlinuz was pointing to the generic SMP kernel, and it was booting. So, the JFS file system must be compiled in the kernel. There's no other explanation that I can find. However, I did create an initrd and point it to the generic SMP kernel. So now I'm doing it correctly, even if it was accidentally working before. :) Regards, -Drew |
That's strange:
nick@rigel:/boot$ grep JFS config-generic-smp-2.6.21.5-smp CONFIG_JFS_FS=m CONFIG_JFS_POSIX_ACL=y CONFIG_JFS_SECURITY=y # CONFIG_JFS_DEBUG is not set # CONFIG_JFS_STATISTICS is not set Oh well, at least it works. |
It's impossible.
|
Quote:
In any event, I've got an initrd now and LILO points to the generic SMP kernel after loading the initrd. Thanks for your help folks. Regards, -Drew |
Lufbery, I never saw where you posted your lilo.conf? Would it make sense to see your ftsab file also. I think that will tell us what your root file systems is formated as, ext3 or JFS.
On the topic of the generic vs huge kernels, I'm curious if anyone get's a peformance boost from the generic kernel? I know loading only the needed modules saves memory, but does it really matter in this case? |
Quote:
I can post both. I partitioned and formatted my hard drive with GParted prior to installing Slackware and I chose JFS then. Regards, -Drew |
Hi all,
As requested, and for the record, here's the relevant portions of my /etc/lilo.conf: Code:
image = /boot/vmlinuz-generic-smp-2.6.21.5-smp Code:
/dev/hda2 swap swap defaults 0 0 -Drew |
Quote:
|
Quote:
http://slackware.osuosl.org/slackwar.../README.initrd |
Quote:
Thanks for the help, guys. Things are running ver well now. Regards, -Drew |
Looks good, man. Thanks for posting.
|
All times are GMT -5. The time now is 07:40 AM. |