LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2010, 05:41 PM   #1
MrChilly0
Member
 
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
kernel modules vs built-in


HEre's the thread that confused me:

Quote:
Originally Posted by MrChilly0 View Post
Is ext4 built as a module? THat'd be the problem...it has to be built into the kernel...
/EndQuote


Reply
What? No it doesn't.
/Reply


My question is pretty simple...if you are booting to your root partition which is ext4, the ext4 filesystem should be built in and not compiled as a module, or your bootup will fail. Am I wrong?
 
Old 01-26-2010, 05:53 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I'm not sure what you're asking about and what text and you're quoting.

ext4 support does not need to be in the kernel, providing that you have
an initrd file that supports it.
 
Old 01-26-2010, 05:56 PM   #3
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Yes and no, actually.

Back in the old days, you *did* need your root's filesystem support bundled into the kernel. That was because if you compiled it as a module, you needed to mount the root filesystem first... But how can you mount, if your kernel didn't have the support for it? It was kind of a chicken-and-egg problem.

Now, some distros use the module approach, and solve that problem by making heavy use of initrd/initramfs techniques. Basically, that involves creating a small "memory hard disk" which can be mounted as root filesystem, load from there all needed modules (like ext4 fs support), and *then and only then*, mount your real root filesystem.
 
Old 01-26-2010, 05:56 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
You could use an initrd (initial ramdisk) to load the module for ext4. A "generic" slackware kernel does this, whereas a slackware "huge" kernel has support for the filesystems (and almost everything else) built into the kernel.

For instance
PHP Code:
mkinitrd --k 2.6.32.5 -f ext4 -/dev/sda1 -/boot/initrd.gz 
would create a file /boot/initrd.gz to load ext4 support for a kernel that doesn't have it built in on my slackware box.
 
Old 01-26-2010, 06:03 PM   #5
MrChilly0
Member
 
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Original Poster
Rep: Reputation: 23
you answered it...I didn't have ext4 built into the initrd...
my setup was /boot ext3 / ext4 /swap ext4 was built as a kernel module. Upon boot, I would get the "unable to mount vfs blah blah blah" error. Once I built ext4 into the kernel I booted fine. But the problem was when I built the initrd...so thanks for the answer
 
  


Reply



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
how to tell which modules have been built into kernel? MrUmunhum Linux - General 4 08-20-2009 07:28 AM
Detect what built-in kernel components (not modules) are actually being used? MaxIBoy Linux - Kernel 2 05-24-2009 07:44 AM
Kernel upgrade: built-in or modules ? sl4ckw4re Slackware 6 07-16-2006 11:22 AM
kernel: modules or built in? sh4d0w13 Linux - Newbie 1 10-31-2005 07:00 PM
new kernel built....no modules linuxhippy Slackware 11 03-10-2005 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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