Linux - NewbieThis 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.
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.
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?
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.