Back to commands

Linux Survival Basics

Read-only

Show Failed Mount Units

A mount failed and you need to see whether systemd has failed mount units.

Command

systemctl --failed --no-pager

Before you run this

System impact: Read-only. Low when scoped to the shown target.

When not to use it: Do not reset failed state before capturing the failure.

Expected output

Failed systemd units, including `.mount` units when present.

System impact

Read-only. Nothing changes. The command reads current state and prints diagnostic evidence.

Recovery / rollback: no state is changed.

When to use it

Use after findmnt verification or boot-time mount errors.

When not to use it

Do not reset failed state before capturing the failure.

Example run

Commands shown

These are the commands shown for inspection. Treat them as an example, not proof that your system will behave identically.

  1. systemctl --failed --no-pager
  2. systemctl --failed --no-pager

next steps

Related commands

Linux Survival Basics Read-only

Show Failed systemd Units

One command tells you which services systemd already knows are broken.

systemctl --failed --no-pager
Linux Survival Basics Read-only

Check apt Daily Timers

Automatic apt timers can explain locks that seem mysterious.

systemctl list-timers apt-daily* --no-pager
Linux Survival Basics Read-only

Map systemd Timers to Services

A timer is only half the scheduled job. The service is the payload.

systemctl list-timers --all --no-pager --plain | awk 'NR==1 || /\.timer/ {print $(NF-1), "->", $NF}'
Linux Survival Basics Read-only

Print the Exact systemd Exit Fields

Turn a noisy service failure into four fields you can paste into an incident note.

systemctl show app-worker --property=Result,ExecMainCode,ExecMainStatus,NRestarts --no-pager

next diagnostic step

Where to go from this command

Study mapping

Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.

  • LPIC-1 style command-line practice
  • LFCS style performance-task practice
  • Linux+ style troubleshooting review

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.