I have problems starting my raspberry running raspian. I get a
[ 55.174742484] systemd[1]: Failed to insert module 'ipv6'
[FAILED] Failed to start Load Kernel Modules.
Sooo little bit of background story what happened. My Raspberry corrupted my SD-Card again, finally had enough and decided to move rootfs to a flash USB drive. Basically followed this guide: https://www.pragmaticlinux.com/2020/08/move-the-raspberry-pi-root-file-system-to-a-usb-drive/. No magic here, i copyied my old boot partition on a new SD-Card (vfat) and the old roots fs to a ext4-formatted flash drive and adapted the entries in [boot]
cmdline.txt
and [rootfs]
/etc/fstab
to point to the PARTUUID
of the flash drives partition.
I did one little extra step, and i think this is what causes the error, i removed wait [...]/raspi_init_resize.sh
from my cmdline.txt
. This is probably where some initialisation was done which i am skipping now and why it is not working properly. But i wanted my filesystem not to be resized by the pi...
When i booted i realised that it was slow and and received above error. After which the raspberry still boots fine into GUI but my mouse and keyboard stopped working, but where before gui was loaded. (This guy had a simular problem after update: Failed to start Load Kernel Modules and now Keyboard & mouse won't work).
Next i added init=/bin/sh
to my cmdline.txt
so it boots into command line mode. I called systemctl status systemd.load-kernel-modules.system
as advised by the error and i get:
Failed to read /proc/cmdline. Ignoring: no such file or directory
Failed to get D-BUS connection: unknown error -1
So nothing in /proc
, empty according to ls
, seems weird to me. Probably due to me skipping the init script. Could this cause the error?
Some related questions:
a) boot is also way slower atm. Is it really just the wait for USB to be ready?
b) what is the important part of raspi_init_resize.sh
or how can i prevent file system resizing?
lsmod
,uname -r
, andls /lib/modules
; this will prove that theory one way or the other.lsmod
won't show anything even if it worked since there are no modules for the kernel to load. Raspbian is a bit different from normal linux distros in that the kernel is made for very specific hardware, so doesn't need modules to do basic things like mount the filesystem etc. -- the system will at least run, which a standard PC distro it would fail to boot. So probably you just need to run the kernel update over again, presuming you have internet.