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 |
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.
|
|
01-26-2010, 05:41 PM
|
#1
|
Member
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146
Rep:
|
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?
|
|
|
01-26-2010, 05:53 PM
|
#2
|
Member
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703
Rep:
|
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.
|
|
|
01-26-2010, 05:56 PM
|
#3
|
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:
|
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.
|
|
|
01-26-2010, 05:56 PM
|
#4
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
|
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 -c -k 2.6.32.5 -f ext4 -r /dev/sda1 -o /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.
|
|
|
01-26-2010, 06:03 PM
|
#5
|
Member
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:50 AM.
|
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
|
|