redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Raspberry Pi 4 not booting correctly

Sun Jun 21, 2020 7:28 pm

Recently I ran

Code: Select all

sudo apt-get update && sudo apt-get upgrade
on my Raspberry Pi 4 and now it will go through the normal boot process, but it gives me errors and I cannot use my mouse and keyboard (along with some other issues) when it loads the desktop. The errors it gives me at boot are:

Code: Select all

[Failed] Failed to start Load Kernel Modules
and

Code: Select all

[Failed] Failed to start Configure Bluetooth Modems connected by UART
Along with not allowing me to use my mouse and keyboard, it also shows X's on the wifi and audio icons on the taskbar. Does anyone know why this is happening?

fruitoftheloom
Posts: 24490
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi 4 not booting correctly

Sun Jun 21, 2020 8:36 pm

redapple115 wrote:
Sun Jun 21, 2020 7:28 pm
Recently I ran

Code: Select all

sudo apt-get update && sudo apt-get upgrade
on my Raspberry Pi 4 and now it will go through the normal boot process, but it gives me errors and I cannot use my mouse and keyboard (along with some other issues) when it loads the desktop. The errors it gives me at boot are:

Code: Select all

[Failed] Failed to start Load Kernel Modules
and

Code: Select all

[Failed] Failed to start Configure Bluetooth Modems connected by UART
Along with not allowing me to use my mouse and keyboard, it also shows X's on the wifi and audio icons on the taskbar. Does anyone know why this is happening?

That was not the recommended way to undertake a RaspiOS (formerly Raspbian Buster) ARMHF update:

https://www.raspberrypi.org/documentati ... pdating.md
Thinking outside the box is better than burying your head in the sand...

redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Re: Raspberry Pi 4 not booting correctly

Sun Jun 21, 2020 8:58 pm

fruitoftheloom wrote:
redapple115 wrote:
Sun Jun 21, 2020 7:28 pm
Recently I ran

Code: Select all

sudo apt-get update && sudo apt-get upgrade
on my Raspberry Pi 4 and now it will go through the normal boot process, but it gives me errors and I cannot use my mouse and keyboard (along with some other issues) when it loads the desktop. The errors it gives me at boot are:

Code: Select all

[Failed] Failed to start Load Kernel Modules
and

Code: Select all

[Failed] Failed to start Configure Bluetooth Modems connected by UART
Along with not allowing me to use my mouse and keyboard, it also shows X's on the wifi and audio icons on the taskbar. Does anyone know why this is happening?

That was not the recommended way to undertake a RaspiOS (formerly Raspbian Buster) ARMHF update:

https://www.raspberrypi.org/documentati ... pdating.md
Okay? How do I fix it though?

fbe
Posts: 648
Joined: Thu Aug 17, 2017 9:08 pm

Re: Raspberry Pi 4 not booting correctly

Sun Jun 21, 2020 9:37 pm

Are you still able to access your Raspberry Pi remotely, e.g. via ssh/PuTTY or vnc?

User avatar
DougieLawson
Posts: 40171
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry Pi 4 not booting correctly

Sun Jun 21, 2020 9:51 pm

redapple115 wrote:
Sun Jun 21, 2020 8:58 pm
Okay? How do I fix it though?
Have you got another SDCard?
Have you got a USB micro SDCard reader (or a full size USB reader with an adapter)?
How big is the SDCard that's failed?
Did you start with plain Raspbian, plain RaspiOS or NOOBS?
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 12:29 am

fbe wrote: Are you still able to access your Raspberry Pi remotely, e.g. via ssh/PuTTY or vnc?
I never set this up when it was working, so no.
DougieLawson wrote:
redapple115 wrote:
Sun Jun 21, 2020 8:58 pm
Okay? How do I fix it though?
Have you got another SDCard?
Have you got a USB micro SDCard reader (or a full size USB reader with an adapter)?
How big is the SDCard that's failed?
Did you start with plain Raspbian, plain RaspiOS or NOOBS?
I do have other SD cards, but they are 8 and 2 gb. I do have a USB micro SDCard reader (I originally got the Pi with the 4GB version of this kit: https://www.canakit.com/raspberry-pi-4-starter-kit.html). The SDCard that failed is 32gb. I started with plain Raspbian.

User avatar
DougieLawson
Posts: 40171
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 8:09 am

Take an 8GB SDcard and stick RaspiOS on it. Boot that. Then run sudo apt install gparted -y

Take your 32GB SDCard and insert it in the USB reader, mount that in your RPi.
Use gparted to check that the rootfs partition on the 32GB SDCard has been expanded to use all the available space.
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 6:02 pm

2020-06-22-134936_775x500_scrot.png
2020-06-22-134936_775x500_scrot.png (45 KiB) Viewed 562 times
I assume that 4.00 MiB that's unallocated means that it is not expanded to use all space? If it does, should I add that unallocated space to the rootfs partition?

fbe
Posts: 648
Joined: Thu Aug 17, 2017 9:08 pm

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 6:12 pm

redapple115 wrote:
Mon Jun 22, 2020 6:02 pm
I assume that 4.00 MiB that's unallocated means that it is not expanded to use all space? If it does, should I add that unallocated space to the rootfs partition?
No. Everything fine with your 8GB SD card. Nothing to fix here.
Please connect your card reader with your 32GB card to your Raspberry Pi and post the output of

Code: Select all

blkid

User avatar
DougieLawson
Posts: 40171
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 7:04 pm

redapple115 wrote:
Mon Jun 22, 2020 6:02 pm
2020-06-22-134936_775x500_scrot.png I assume that 4.00 MiB that's unallocated means that it is not expanded to use all space? If it does, should I add that unallocated space to the rootfs partition?
That's the wrong SDCard. I wanted to see gparted run against your 32GB SDCard.

The 4MB chunk at the front is wasted space and can't be used - ignore it.
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 7:17 pm

DougieLawson wrote: That's the wrong SDCard. I wanted to see gparted run against your 32GB SDCard.
Sorry, I thought I was doing it for the 32GB card. This is the screenshot for the 32GB drive:
2020-06-22-151152_775x500_scrot.png
2020-06-22-151152_775x500_scrot.png (45.21 KiB) Viewed 524 times
fbe wrote: Please connect your card reader with your 32GB card to your Raspberry Pi and post the output of

Code: Select all

blkid
The output of blkid is:

Code: Select all

/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="70A2-8001" TYPE="vfat" PARTUUID="e713b3eb-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="a1fafd2b-1ef0-4fe8-8ac1-ad33bbb48642" TYPE="ext4" PARTUUID="e713b3eb-02"
/dev/sda1: LABEL_FATBOOT="boot" LABEL="boot" UUID="9969-E3D2" TYPE="vfat" PARTUUID="97709164-01"
/dev/sda2: LABEL="rootfs" UUID="8f2a74a4-809c-471e-b4ad-a91bfd51d7c3" TYPE="ext4" PARTUUID="97709164-02"

User avatar
DougieLawson
Posts: 40171
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 7:54 pm

What's that 32GB SDCard filled up with? Not that it's important and you've got more than enough free space.
Anyway, the space has been expanded to use everything on the SDCard. So your problem isn't that.

Once you've got a bootable SDCard you can use that to fix problems on an unbootable SDCard. Either by re-installing packages or by copying good files from the rescue system to the broken system or by editing things to undo the self-inflicted damage you've done.

Do we know the exact symptoms of your failure.

I like fixing things with a chroot.

sudo umount /dev/sda1
sudo umount /dev/sda2
sudo fsck -f -y /dev/sda1
sudo fsck -f -y /dev/sda2
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
cd /mnt
sudo chroot .
# IMPORTANT: don't miss that full stop.

We'll start with a simple update of Raspbian/RaspiOS

apt update
apt dist-upgrade -y
apt install --reinstall raspberrypi-kernel raspberrypi-bootloader


Do anything else needed to fix any installation problems here.

Then undo the chroot and safely remove the "now fixed" SDCard.
exit
cd /
sudo umount /mnt/boot
sudo umount /mnt/dev
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount
sudo eject /dev/sda
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

redapple115
Posts: 14
Joined: Sun Mar 15, 2020 10:05 pm

Re: Raspberry Pi 4 not booting correctly

Mon Jun 22, 2020 9:19 pm

I tried running the code you put but unfortunately, it did not work. Do you have any hypothesis on what the problem might be based on the errors I mentioned at the start?

Return to “Raspberry Pi OS”