SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I have noticed since switching to grub that the modules added by mkinitrd (jbd2, mbcache, ext4) fail to load at boot. I'd post the bootup messages, but I can't find them in dmesg output.
They don't show up in the output of lsmod.
When I look at the entries in /boot/grub/grub.cfg, I see
Code:
menuentry 'Slackware-14.2 GNU/Linux' --class slackware-14.2 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea
else
search --no-floppy --fs-uuid --set=root 5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea
fi
echo 'Loading Linux 4.4.9 ...'
linux /boot/vmlinuz-huge-4.4.9 root=UUID=5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
... why 'msdos'? Is this causing the loading of ext4, mbcache and jbd2 to fail?
You are booting a huge kernel, maybe the problem is some kind of conflict. Try not loading the initrd with the huge kernel and then try booting a generic kernel with the initrd, then compare.
I have noticed since switching to grub that the modules added by mkinitrd (jbd2, mbcache, ext4) fail to load at boot. I'd post the bootup messages, but I can't find them in dmesg output.
They don't show up in the output of lsmod.
It's not grub, you're using kernel huge which has drivers as built-in, not as modules
Normally, the initrd for a specific kernel is created for that specific kernel.
The initrd for each contains things that may be specific to that kernel (either by version number, driver identification, specific drivers included/missing).
The initrd for the huge kernel would/should not try to load modules that are already built in - it WILL cause problems.
OK. Why is the initrd not getting read correctly? or maybe the boot messages are spurious?
I've been having lots of issues with my Slackware installs lately, and have a large project due Saturday -- would love to start getting them ironed out. Since this one seems fundamental, I'm starting here.
Because, as others have already pointed out, there is no need to load as modules drivers that are already included in the kernel.
In other words, you can either use:
a huge kernel without an initrd.
or a generic kenel with an initrd.
Using an initrd with a huge kernel, although probably harmless, is pointless. Why are you doing that?
Sometimes, a minimal initrd is useful for catching hardware errors. The initrd IS, after all, a minimal root system and can be used to rebuild/recover a system.
I have noticed since switching to grub that the modules added by mkinitrd (jbd2, mbcache, ext4) fail to load at boot. I'd post the bootup messages, but I can't find them in dmesg output.
They don't show up in the output of lsmod.
When I look at the entries in /boot/grub/grub.cfg, I see
Code:
menuentry 'Slackware-14.2 GNU/Linux' --class slackware-14.2 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea
else
search --no-floppy --fs-uuid --set=root 5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea
fi
echo 'Loading Linux 4.4.9 ...'
linux /boot/vmlinuz-huge-4.4.9 root=UUID=5b9e6f1c-e84c-4b09-b9f6-0cacb682f2ea ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.gz
}
... why 'msdos'? Is this causing the loading of ext4, mbcache and jbd2 to fail?
The modules that grub loads are modules for the grub kernel. For example, part_msdos is the module that reads the partition table of a msdos-partitioned disk (i.e. a traditional disk with an mbr).
What modules get loaded into your Linux kernel once it's loaded depends on how the kernel reads your hardware and what you have in your initrd's /etc/modprobe.d directory.
I've removed what I thought was everything having to do with the 'huge' kernel from my system, re-ran both 'grub-install' and 'grub-mkconfig' ... and when I try to boot the first selection presented to me upon restarting, I find that the menu entry still has 'huge' where it should have 'generic'.
Of course I can edit it upon boot, but that's a drag. And I'd love to know where 'grub-mkconfig' is getting its information (somewhere in /etc/grub.d/ I guess). I could also disobey the orders at the top of grub.cfg and edit it directly, but I assume those edits would be overwritten next kernel upgrade when I have to run 'grub-mkconfig' again.
Next I'm going to try uninstalling and re-installing the grub package, in case something is set during that process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.