"No space left on device": few errors cause more trouble. In this episode you'll learn how to check free space with df, find what's eating your disk with du, free up space safely, see your disks with lsblk, add a new disk (partition, format, mount), mount it automatically at boot with fstab and UUID, and claim the free space the Ubuntu installer often leaves unused (LVM).

⏱ Chapters
0:00 No space left on device
0:21 Check free space (df -h)
0:43 Find what uses it (du)
1:06 Free up space safely
1:30 Disks & partitions (lsblk)
1:46 Add a new disk: partition, format, mount
2:08 Mount at boot (fstab + UUID)
2:41 Ubuntu's hidden free space (LVM)
3:03 Common mistakes
3:28 Cheat sheet
3:45 Like & subscribe
3:56 Homework & up next

⌨️ Commands from this video
df -h free space per disk (look at Use% and /)
sudo du -sh /var/* | sort -h size of each folder, biggest at the bottom
sudo apt install ncdu interactive disk usage explorer
sudo journalctl --vacuum-size=200M shrink the system journal
sudo apt clean delete downloaded package files
sudo apt autoremove remove unused dependencies
sudo find / -xdev -type f -size +500M find files bigger than 500 MB
lsblk disks and partitions
sudo parted /dev/sdb --script mklabel gpt mkpart data ext4 0% 100% partition a new disk
sudo mkfs.ext4 /dev/sdb1 format (ERASES the disk!)
sudo mkdir /data && sudo mount /dev/sdb1 /data mount it
sudo blkid /dev/sdb1 get the UUID
/etc/fstab line: UUID=your-uuid /data ext4 defaults,nofail 0 2
sudo findmnt --verify and sudo mount -a test fstab before rebooting
sudo vgs free space in the LVM volume group (VFree)
sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv use all the free space

⚠️ mkfs erases everything on the disk: check the name with lsblk. Twice.
⚠️ A typo in /etc/fstab can stop the server from booting: always verify, and use nofail.

📺 Full course playlist:
◀ Previous – #11 Services with systemd: [EP11 LINK]
▶ Next – #13 Automate Tasks with cron: coming soon

💬 Homework: check df -h, find the 3 biggest folders in /var, and run sudo vgs: does your server have hidden free space? Tell me in the comments!

👍 If this helped, like & subscribe, it keeps the course free.
© netacademy.ge

#Linux #UbuntuServer #SysAdmin

Last modified: Sunday, 6 December 2026, 10:07 AM