Article 5E54B [SOLVED] Unable to dual-boot between Slackware 14.2 and Slackware Current

[SOLVED] Unable to dual-boot between Slackware 14.2 and Slackware Current

by
mfoley
from LinuxQuestions.org on (#5E54B)
I have partitions /dev/sda2 installed with Slackware 14.2 and /dev/sda3 installed with Slackware Current. I have the following in lilo.conf on 14.2:
Code:append=" vt.default_utf8=1"
boot = /dev/sda

bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255

prompt
timeout = 1200
change-rules
reset
vga = normal
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only

image = /boot/vmlinuz
root = /dev/sda3
label = Slackware15
read-onlyI have the same on 15.0, but with images switched and different labels.

If I am booted 14.2, reboot and selected Slackware15 from the lilo boot menu. It starts booting, but I see errors on the screen like:
Code:fsck from util-linux 2.36.2
/dev/sda3: clean, 603394/45178880 files, 6651645/180686438 blocks
Remounting root device with read-write enabled.
[ 11.535821] EXT4-fs (sda3): re-mounted. Opts: (null)
Creating module dependency list for 4.4.240: /sbin/depmod --al ...
depmod: ERROR: could not open directory /lib/modules/4.4.240: No such file or directory
depmod: FATAL: could not search modules: No such file or directoryIt proceeds to complete the boot, but the keyboard and screen are non-responsive. What I have to do is reset the computer, boot off the Slackware current installation disk, and re-lilo /dev/sda3. Likewise, I have the same failure when trying to boot back to 14.2. I have to boot from the 14.2 installation disk and re-lilo /dev/sda2.

In the above error snippet, it is trying to boot from /dev/sda3 which has the Slackware 15.0, but of course there is no /lib/modules/4.4.240 on that partition. 4.4.240 is the kernel for 14.2. 15.0 has kernel 5.10.15. So why is lilo trying to look for the 14.2 kernel modules?

I must be doing something wrong. After all, lilo can dual boot Linux and Windows, and Windows certainly has no /lib/modules to worry about.

Thankslatest?d=yIl2AUoC8zA latest?i=kC8oiWBv-tw:Oh5oZo6tqAk:F7zBnMy latest?i=kC8oiWBv-tw:Oh5oZo6tqAk:V_sGLiP latest?d=qj6IDK7rITs latest?i=kC8oiWBv-tw:Oh5oZo6tqAk:gIN9vFwkC8oiWBv-tw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments