LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-21-2013, 10:54 AM   #1
mariner53
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Rep: Reputation: 0
booting with initrd vs huge kernel


Are there any significant advantages from booting with an initrd versus just booting from a huge kernel configuration? I have always used the huge kernel and have not had any problems, but am wondering if it would be advantageous to use an initrd?

I am running 14.0 with a hugesmp kernel on a quad core i3 with 4GB of Ram. I just got the 14.1 dvd and wondered if during the upgrade it made any sense to change the way I boot?

Thanks
Robert
 
Old 11-21-2013, 11:01 AM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by mariner53 View Post
...
I have always used the huge kernel and have not had any problems
...
If you had no problem then there is no advantage for a change. Fix it only when it's broken.
 
1 members found this post helpful.
Old 11-21-2013, 01:05 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,357
Blog Entries: 2

Rep: Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979
Quote:
Originally Posted by mariner53 View Post
Are there any significant advantages from booting with an initrd versus just booting from a huge kernel configuration?
Advantages? Yes. Significant? Well, that is up to you. You will save a few KB, maybe MB, of RAM (not really significant on a system with 4GB of RAM) and will have slightly shorter boottime.

Not significant enough for me to think about using the generic kernel and use an initrd. This would be different of course if I would run my OS from a LVM, RAID or encrypted partition, in which case an initrd is mandatory.
 
1 members found this post helpful.
Old 11-21-2013, 01:58 PM   #4
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 140

Rep: Reputation: Disabled
running my 14.1 (32bit) with 2gb ram with hughsmp here too.. all nice all fine. i dont see a reason to change it as long as it works.
 
Old 11-21-2013, 06:44 PM   #5
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Rep: Reputation: 0
Can't disagree with the above replies.
For me it's personal preference. First thing I do after a fresh install is build a custom kernel from the generic-config in /boot, that way I don't have to use a initrd. Follow Eric's kernel build and your set.
 
Old 11-21-2013, 08:08 PM   #6
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, Slackware-14.1, PCBSD-10.0
Posts: 2,786
Blog Entries: 15

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
I've ran both. To me the Huge Kernel is just less to setup and worry about.
 
1 members found this post helpful.
Old 11-23-2013, 10:21 AM   #7
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware
Posts: 204

Rep: Reputation: 28
I use the huge kernel... easier to update and I haven't had any issues. I tried setting up the generic kernel and did see a faster boot time, but I also had issues getting my wireless card working so I switched back to the huge kernel. If it ain't broke don't try to fix it. :-)
 
1 members found this post helpful.
Old 11-23-2013, 11:19 AM   #8
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 490
Blog Entries: 1

Rep: Reputation: 55
I started using Slackware by compiling my own kernel. I thought it worked better, & back in the day, maybe it did. Then I got to the point that I wanted to use "root=LABEL=foo" or "root=UUID=foo" while booting, instead of using a device name. Back then, this required editing the init file in an initrd, so I did that for a while, still compiling a kernel. When slackware went to the 2.6 series kernel & the generic & huge kernels, some maintainer modified the Slackware init file to allow using LABEL & UUID. I started using a generic kernel then & put my fs modules in the initrd. I'm still doing that & am quite happy.
Also note that Pat requires bugs to be reported only if using the generic kernel. See the first paragraph under "*** OTHER NOTABLE CHANGES AND HINTS ***" in CHANGES_AND_HINTS.txt.
Regards,
Bill
 
Old 11-24-2013, 04:53 AM   #9
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 194

Rep: Reputation: 26
If you've never had a problem, you've never had a problem; if it ain't broke, don't fix it.

Personally I have had problems, particularly on some of my older hardware where some device drivers have become buggy as the kernels get updated and regressions sneak in (I don't know why but I've had that happen a few times), so the ability to unload and reload kernel modules when the driver craps out is an attractive feature.

Other than for testing and getting something quickly up and running, I see no reason not to use a generic kernel with modules and an initrd. This isn't like the old days where we had to load modules manually... udev will detect hardware and load modules accordingly. Plus, the mkinitrd_command_generator.sh tool that comes with Slackware makes generating an initrd very simple.
 
1 members found this post helpful.
Old 11-24-2013, 05:08 AM   #10
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 445

Rep: Reputation: 113Reputation: 113
I use the generic kernel, but always keep an entry for the huge one in my lilo.conf, like this:

Quote:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-3.10.17
initrd = /boot/initrd.gz
root = /dev/sda2
label = generic-3.10.17
read-only
image = /boot/vmlinuz
root = /dev/sda2
label = huge-3.10.17
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
it uses the default vmlinuz link, just in case. I learned this the hard way...
 
Old 11-24-2013, 05:45 AM   #11
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,441
Blog Entries: 3

Rep: Reputation: 182Reputation: 182
I keep both but use the intrid.gz. I have found that for some hardware issues it made sense and it is is well documented by alien bob. we will see more hardware in the future needing an intrid.img. as the the hardware demands more set up in a working tree as the kernel is passed off to the system.
If it works for you that's all that matters.
 
  


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
"Problem with booting the kernel with initrd" AjayCelst Linux - Embedded & Single-board computer 11 08-13-2009 02:25 AM
Can't boot 12.1 - How to re-create huge initrd? JustInterested Slackware 10 10-17-2008 07:48 PM
kernel 2.6.18: booting without initrd launcelot Linux - General 3 09-19-2008 01:12 PM
Problem booting non-initrd kernel phytoman Linux - Kernel 7 12-04-2007 11:15 AM
Slackware 12: trouble booting 2.6.21.5-smp kernel. initrd problem? ErV Slackware 8 07-07-2007 09:23 AM


All times are GMT -5. The time now is 08:55 AM.

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