Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · DevOps · Containers & Docker · about 16 min to read

Play it as a journeyTutor comes with a plan

The disk is full: inodes, mounts, users and packages

VMs, Bare Metal & SSH
VMs, Bare Metal & SSH · Open board

One Linux machine you reach over SSH. This lesson is about the disk inside it: what fills it, why two tools disagree about how full it is, and who is allowed to change it.

Before you start. From The services on the box: systemd, journald and first triage you need the triage order, where df -h and df -i are the second step, and the idea that a service writes its messages to the journal. From The filing cabinet: how a file system is built you need the inode, the numbered record that holds a file’s size, owner and where its bytes sit. A directory entry is a name that points at an inode number. From Who is allowed: users, root and capabilities you need the UID, the number the kernel checks, and the setuid bit, which makes a program run as its owner. This lesson uses all of them.

Lesson 5 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2 a.m.: “No space left on device”
  • A disk has two limits: bytes and inodes
  • A deleted file can still use space
  • A mount hides what is under it
  • A user and a group decide who can write
  • sudo and the sudoers file say who may do what as root
  • A package owns its files, and old ones fill the disk
  • Where did the bytes go: du and df together
  • Why inodes are fixed
  • Mount options and fstab
  • Users, groups and the files that hold them
  • setuid files, found by search
  • sudoers in detail
  • apt and dpkg: space you can give back
  • What this lesson leaves out

Terms it explains: inode, mount, group, sudoers, package, Common mistakes.

Review DevOps