Did you run lilo and reboot?
Assuming all is well there, to return to the initrd, you seem to have forgotten our discussion a number of pages back about the script used to work out the right command to generate it. It will also output a nice LILO stanza for you to copy and paste into lilo.conf.
I suggest that rather than deleting the existing Salix stanza there, you comment it out, so it can easily be recovered if the new one doesn't work.
This is the command to run the script:
Code: Select all
sudo /usr/share/mkinitrd/mkinitrd_command_generator.sh /boot/vmlinuz
In my case the output is as follows, but it will be different on your system:
Code: Select all
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:
mkinitrd -c -k 4.4.111 -f btrfs -r /dev/sda2 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:btrfs -u -o /boot/initrd.gz
# An entry in 'etc/lilo.conf' for kernel '/boot/vmlinuz-huge-4.4.111' would look like this:
# Linux bootable partition config begins
# initrd created with 'mkinitrd -c -k 4.4.111 -f btrfs -r /dev/sda2 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:btrfs -u -o /boot/initrd.gz'
image = /boot/vmlinuz-huge-4.4.111
initrd = /boot/initrd.gz
root = /dev/sda2
label = 4.4.111
read-only
# Linux bootable partition config ends
So in my case, I would need to select and paste this command into the terminal to make the initrd:
Code: Select all
sudo mkinitrd -c -k 4.4.111 -f btrfs -r /dev/sda2 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:btrfs -u -o /boot/initrd.gz
Note that I needed to prepend 'sudo', because root priviliges are needed. Yours will be different (for instance, you probably didn't choose to format any partitions with btrfs).
Edit lilo.conf by inserting the new suggested stanza and commenting the old one, run lilo, cross your fingers, and reboot.
Edit It may be as well, before rebooting, to download the generic kernel just in case it is needed later:
Code: Select all
wget http://mirrors.nix.org.ua/linux/salixos/x86_64/slackware-14.2/patches/packages/linux-4.4.118/kernel-generic-4.4.118-x86_64-1.txz
As you may recall, I don't think we need the generic kernel in order to boot with an initrd, though you do need an initrd to boot the generic kernel and that is when it is normally used. The advantage of sticking with huge is it will be simpler to recover from any problems.