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 05-28-2006, 05:27 PM   #1
a_priebe47
Member
 
Registered: Jul 2004
Location: British Columbia, Canada
Distribution: Slackware 10.2
Posts: 50

Rep: Reputation: 15
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
 
Old 05-28-2006, 05:29 PM   #2
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
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).
 
Old 05-28-2006, 05:49 PM   #3
Brian1
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: Reputation: 65
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
 
Old 05-28-2006, 08:20 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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.
 
Old 05-28-2006, 09:57 PM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
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.
 
Old 05-28-2006, 11:06 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 05-28-2006, 11:21 PM   #7
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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.
 
  


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
Help with mkinitrd paddyjoy Linux - Newbie 2 07-02-2005 07:05 AM
mkinitrd beaucox Linux - Software 6 03-29-2004 09:44 AM
mkinitrd vmniza Linux - General 1 03-10-2004 02:05 AM
No Mkinitrd?????? sovietpower Linux - General 5 02-08-2004 05:10 AM
mkinitrd welsh2000836 Debian 2 08-31-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration