Pcornel
Linux · Filesystem

/

Cheat sheet · https://pcornel.dk/topic.php?topic=2660

Back to the Topic

Answer

/ is the root of the filesystem tree; the root filesystem holds the system and is mounted first at boot.

Remember

A full / breaks logins, package updates and services. A read-only / after boot usually means filesystem errors — check dmesg. Keep large, growing data (logs, databases, containers) on separate filesystems or watch them.

First checks

  • ls -ld <path> — owner, permissions and type
  • stat <path> — inode, links, size and timestamps
  • df -h <path> — filesystem and free space
  • findmnt <path> — which mount the path is on

Verify in this order

/ mounted (or virtual) → correct owner and permissions → enough space → services read and write as intended

Where it usually breaks

First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2660

Confirmation

Confirm action

Continue?