Why is the login prompt not appearing in the console after rebooting the system?
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
Issue
- After rebooting the system the
login prompt
does not appear in the console. The system is stuck at a black screen with a blinking cursor. However, the server responds to ping and after pressingCTRL+ALT+F2
thelogin prompt
is displayed.
Resolution
- Make sure the
getty@tty1.service
is enabled.
# systemctl enable --now getty@tty1.service
Root Cause
- In Linux systems the
getty@tty1.service
is asystemd
service unit that manages a terminal session on thefirst virtual console (tty1).
It is responsible for displaying thelogin prompt
and handling user logins on that console. Thegetty@tty1.service
plays a crucial role in providing access to the system'stext-based console interface,
which is essential for various system administration tasks and user interactions.
Diagnostic Steps
- Enable the
getty@tty1.service
service.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments