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.
|
|
05-28-2006, 05:27 PM
|
#1
|
Member
Registered: Jul 2004
Location: British Columbia, Canada
Distribution: Slackware 10.2
Posts: 50
Rep:
|
mkinitrd?
Well I've been in the process of trying to build kernel 2.6.16.13 for a while but when I last built it my Madwifi wouldn't co-operate, anyways! Reading some material I've read a lot about needing to make this initrd disk to boot the 2.6 kernels from if you aren't using an ext2 filesystem. However I read somewhere else that if you build in your filesystem to the kernel and not load it as a module, you don't need the initrd. I'm using reiserfs and the reason I ask is because I've tried building the initrd but I always get an error while doing the following
Code:
root@terminal:/boot# mkinitrd -c -k 2.6.16.13 -m reiserfs
WARNING: Could not find module for "reiserfs"
root@terminal:/boot#
Is this step even necessary for me as I have opted to build reiserfs into my kernel. Thanks.
Andrew
|
|
|
05-28-2006, 05:29 PM
|
#2
|
Member
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350
Rep:
|
I assume ReiserFS is your root filesystem? And no, if you build the FS into the kernel (not as a module) then you do not need an initrd image (at least I have never had to).
|
|
|
05-28-2006, 05:49 PM
|
#3
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
I am not sure but I thought when you did the ' make install ' command it created the initrd file and installs to /boot as well as adding to your grub boot manager. I is possiable the make does it. I build so many kernels as long as there is no errors I just ignore what it shows. If the first couple build okay in a version level I just use the command after the xconfig. ' make ; make modules install ; make install ; make rpm '
The make rpm is for redhat distros since I have a few machines with the same setup. No need to build on each, just make an rpm and install on them and reboot.
make xconfig
make
make modules_install
make install
Brian1
|
|
|
05-28-2006, 08:20 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
If the fs support is compiled into the kernel instead of as a module no initrd is needed. initrd is just a way to get the fs module loaded if it isn't already in the kernel.
compiling a kernel doesn't create an initrd image.
|
|
|
05-28-2006, 09:57 PM
|
#5
|
Member
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770
Rep:
|
Not quite right, mkinitrd is then method to get a kernel to load a module early into a temporary ramdisk. Normal module loading has a chicken and eggs problem that the kernel cannot read the filesystem to load the module to read the filesystem.
|
|
|
05-28-2006, 11:06 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Two solutions:
1: Make the fs as a module, then run 'mkinitrd'
2: Include the fs in the kernel
Personally, I like #2
Either way, you have to compile the kernel.
|
|
|
05-28-2006, 11:21 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
Quote:
Originally Posted by davidsrsb
Not quite right, mkinitrd is then method to get a kernel to load a module early into a temporary ramdisk.
|
Yeah, that's basically what I said in different words.
|
|
|
All times are GMT -5. The time now is 04:23 PM.
|
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
|
|