1

So I was buys performing an update and upgrade of the raspberry pi using

sudo apt-get update
sudo apt-get upgrade

While that was being performed The system accidentally shut down during the last few steps of the upgrade process. Now I receive the error on boot up

[FAILED] Failed to start Load Kernel Modules

See 'systemctl status systemd-modules-load.service' for details

The very weird thing is that the USB mouse and keyboard do not work. The wifi connection doesn't work but the Raspberry pi can boat perfectly fine into the Rasbian desktop GUI. I can even see the percentage of processing power changing as the Pi sits idle.

Is there a way to fix from this? I don't mind formating back to a prior backup if I have to but first I need to pull some data from the RPi as It hasn't been backed up since the last backup.

As a note: I can access the root@(none) and use keyboard by adding init=/bin/bash the cmdline.txt on the SD card.

Hojo.Timberwolf
  • 177
  • 2
  • 9

2 Answers2

1

The error message is not itself a cause of concern, BUT a crash during upgrade IS

Edit cmdline.txt and add init=/bin/sh to the end of that line. This will make Raspbian skip the normal boot up procedure and dump you into the root shell.

You should then be able to copy your files.

You COULD try apt upgrade but it is safer to restore from your backup (to a new card) then mount the old and copy files.

Milliways
  • 62,573
  • 32
  • 113
  • 225
-1

open: /etc/modules-load.d/*.conf by

sudo nano /etc/modules-load.d/*.conf

and commend all lines like:

# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
#lp
#ppdev
#parport_pc
Kokul Jose
  • 101
  • 1