LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-05-2013, 12:00 AM   #1
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
mkinitrd suggestion / ext4 support in generic kernel question


I sent this to Patrick, but figured I could ask the ext4 question here: Why isn't ext4 fs support included in the generic kernel? How much overhead would it add?

Quote:
Minor suggestion...

I switched from the huge to generic kernel, forgetting generic doesn't have ext4 support.

So after I got back in , I ran mkinitrd to create a RD image. mkinitrd ran fine and exited with a message to re-run lilo if I use the newly created image...

but didn't remind me to edit lilo.conf to use the new RD image.

In my mind, if it's worth it to mention to users to re-run lilo, it's also worth mentioning to add the appropro "initrd =" to lilo.conf,

or add ext4 support to the generic kernel .
 
Old 11-05-2013, 02:21 AM   #2
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
well, the README.initrd is right there in /boot and says:

Quote:
4. Now that I've built an initrd, how do I use it?

Now that you've got an initrd (/boot/initrd.gz), you'll want to load
it along with the kernel at boot time. If you use LILO for your boot
loader you'll need to edit /etc/lilo.conf and add a line to load the
initrd. Here's an example section of lilo.conf showing how this is
done:

# Linux bootable partition config begins
image = /boot/vmlinuz-generic-3.2.28
initrd = /boot/initrd.gz
root = /dev/sda6
label = 3228
read-only
# Linux bootable partition config ends
 
Old 11-05-2013, 03:11 AM   #3
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by Andy Alkaline View Post
Why isn't ext4 fs support included in the generic kernel? How much overhead would it add?
Short answer:
Code:
-rw-r--r-- 1 root root 115960 Jun 21 06:32 /lib/modules/3.8.13/kernel/fs/ext2/ext2.ko
-rw-r--r-- 1 root root 344399 Jun 21 06:32 /lib/modules/3.8.13/kernel/fs/ext3/ext3.ko
-rw-r--r-- 1 root root 806287 Jun 21 06:32 /lib/modules/3.8.13/kernel/fs/ext4/ext4.ko
(Yes, that's an -older current kernel.)

One could also remove ext2 and ext3, because ext4 should be able to mount ext2 and ext3 filesystems, too.
 
  


Reply

Tags
initrd, lilo. ext4



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
[SOLVED] initrd and generic kernel fails to boot with errors after using mkinitrd generator adamschock Slackware 8 06-26-2010 02:30 PM
Slackware 12, changing to generic kernel on raid1, mkinitrd issue [GOD]Anck Slackware 15 02-14-2008 07:25 PM
A question about generic-kernel in /testing mardanian Slackware 7 07-10-2004 04:13 AM
mkinitrd kernel-related question Tino27 Slackware 1 03-26-2004 11:14 PM
mkinitrd doesnt exist in slackware? Newbie kernel compile question! nmoog Slackware 3 01-08-2004 06:22 PM

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

All times are GMT -5. The time now is 06:46 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