Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Beginners • [SOLVED] Raspberry Pi 5 Booting to Command Line or Debian 12 Instead of Raspberry Pi OS

$
0
0
This was the second time my Raspberry Pi 5 failed to boot normally after a shutdown. I’ve outlined two methods to resolve this issue, with the second method being the most effective.

Method 1: Reinstall the OS

1. Use the Raspberry Pi Imager on an external PC to erase the SD card.
2. Reinstall the Raspberry Pi OS.

While this works, it’s not ideal because it wipes all your data.

Method 2: Preferred Solution
After numerous attempts and researching available posts, here’s the approach that worked for me:

1.

Code:

sudo apt update
2.

Code:

sudo apt upgrade
3.

Code:

sudo apt install xinit xserver-xorg
4.

Code:

sudo apt install raspberrypi-ui-mods
5.

Code:

sudo raspi-config
Choose 1 System Options > S5 Boot / Auto Login > B4 Desktop Autologin > (with arrows or Enter) Ok > Finish > Reboot

This method preserves your files, libraries, and configurations, making it a better alternative.

If your Raspberry Pi still boots to the command line, you can start the desktop manually with:

Code:

startx

Statistics: Posted by kpfixes — Sat Dec 14, 2024 12:05 pm — Replies 0 — Views 4



Viewing all articles
Browse latest Browse all 7503

Trending Articles