slackware64-current (16. 3. 2020)
install on USB disk
As kernel do not have compiled in USB devices, I created initrd.
Suggested by mkinitrd_command_generator.sh do not include USB modules:
Code:
mkinitrd -c -k 5.4.25 -f ext4 -r "UUID=202a8463-30c8-4806-8631-02a54da3090b" -m usb-storage:xhci-hcd:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
Also at boot time created initrd from above code returned
Quote:
errors:
jbd2: exports duplicate symbol jbd2_journal_restart (owned ky kernel)
modprobe ERROR: could not insert 'jbd2+: exec format error
|
The same error was with ext4 and mbcache modules.
So I created own code, I used years ago:
Code:
mkinitrd -c -k 5.4.25 -f ext4 -r UUID=202a8463-30c8-4806-8631-02a54da3090b -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:jbd2:mbcache:crc32c_intel:crc32c_generic:ext4 -u -o /boot/initrd.gz
As you can see, a root device is named by UUID.
/etc/fstab line for mount root partition:
Code:
PARTUUID=fe50e8fe-01 / ext4 defaults 1 1
The lilo.conf general par do not include boot= instead there is:
Code:
append=" root=PARTUUID=fe50e8fe-01 "
The boot partition part is:
Code:
image = /boot/vmlinuz
initrd=/boot/initrd.gz
# root = /dev/sdc1
label = Slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
The above settings worked with slackware64-current install two years ago.
Now at boot from USB disk ends with:
Quote:
mount: can't find /mnt in /etc/fstab
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when things are done.
|
Found a workaround on that forum:
Code:
mount -o ro -t ext4 /dev/sda1 /mnt
exit
After that, boot continues and finishes without error.
All works including KDE.
Have tried many versions in fstab and lilo.conf - naming of boot partition by PARTUUID, by /dev/sdXX. None works.
How to permanently solve that problem?