Module 3 · Troubleshoot and Review · Lesson 9 of 10

Diagnose before you change

SSH login failures, permission denied, a service that won't start, and a full disk, solved with evidence.

In this lesson · about 25 minutes

  • Use logs and status output to find the real cause
  • Fix the evidenced problem instead of loosening controls
  • Tell storage exhaustion from inode exhaustion

Whiteboard · watch and try

Whiteboard: the detective's loop

Press Play. The tutor draws the loop you'll use for every case in this lesson.

4 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.

Try it · watch it happen

Be a detective: clues before fixes

Pick a case. Reveal the clues one by one, then choose the fix.

1 Symptom2 Gather clues3 Find the cause4 Smallest fix5 Check it worked
🚨 Symptom: Customers see "This site can't be reached" after a colleague edited a setting.

Hands-on lab (simulated terminal)

Case: the service will not start

After an edit, nginx won't start. Diagnose it. Sudo password: lab.

Step 1 of 5. Type each command and press Enter. Nothing runs on your computer.

Case: the service will not start

1. Check the service status.

admin@ubuntu-lab:~$

Try it · watch it happen

Disk space vs inodes

Save files of different sizes and watch both meters. Which one fills first?

📚 Shelf space df -h

1.2 GB of 5 GB used24%

How many bytes the files take up.

🗂️ Catalogue cards df -i

4,000 of 20,000 inodes used20%

Every file needs one card, however small. The number of cards is fixed when the disk is set up.

Press the tiny-files button a few times and watch which meter fills first.

Hands-on lab (simulated terminal)

Case: no space left on device

An app logs "No space left on device", but your teammate swears the disk has room. Sudo password: lab.

Step 1 of 3. Type each command and press Enter. Nothing runs on your computer.

Case: no space left on device

1. Check free space on each file system in human-readable units.

admin@ubuntu-lab:~$

Guided dialogue

Two more cases with your coach

0 of 3 answered

C

Two more tickets. Pick the best next step each time.

C

SSH login fails. A user says "SSH stopped working". What do you look at first?

Check your understanding0 of 3 correct

Question 1

1.How do you distinguish storage capacity from inode exhaustion?

Question 2

2.systemctl says a service is active. Does that prove it works?

Question 3

3.Which is the BEST response to an unexplained AppArmor denial blocking an app?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

Noviq Academy is free and for learning. Every terminal here is simulated and every log is synthetic. Practise on a disposable VM with a snapshot, never on a production server. Ubuntu is a trademark of Canonical Ltd.; this course is independent of Canonical.