A Linux machine's storage stacks up in layers:
/dev/sda, /dev/nvme0n1, /dev/vda./dev/sda1 is the first partition of /dev/sda./, /home, /var are common ones.When you write to /var/log/app.log, Linux checks which filesystem
holds /var, sends the write to that filesystem, which stores it
on its underlying partition on the disk.
lsblk
Prints every block device the kernel knows about, as a tree:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 99G 0 part /
└─sda2 8:2 0 1G 0 part [SWAP]
Reading it:
sda is the disk, 100 GB.sda1 is the main partition, 99 GB, mounted at /.sda2 is a small partition holding swap.lsblk is your first stop when you want to know what storage
exists before worrying about how full it is.
Your own output will vary. A small cloud VM often shows a single
device like vda with just one partition (or none), not the tidy
multi-partition tree above. That's normal.
fstab tells Linux what to mount where at boot:
/dev/sda1 / ext4 defaults 0 1
You'll edit it rarely. A broken /etc/fstab can prevent the
machine from booting cleanly, so never touch it without checking
your work twice.