Partitions on a device you made
Storage is a fifth of the exam and every task begins with a block device. This guide makes one out of a file, which behaves like a disk in every way that matters and costs nothing - then puts a GPT label and two partitions on it, and explains why the partitions do not show up until you ask for them.
Storage Guide 30 of 38 Intermediate
- PlatformsUbuntu 26.04 LTS + AlmaLinux 10.2
- LVM2.03.31 (Ubuntu) / 2.03.36 (AlmaLinux)
- nftables1.1.6 (Ubuntu) / 1.1.5 (AlmaLinux)
- TimeAbout 18 min
parted 3.x and util-linux on both families, and the commands are identical. Whether the partition device nodes appear without partprobe is NOT identical, and the last step of this page shows both outcomes. GPT is what you should be creating; MBR appears only on old systems.
- Firewallufw 0.36.2 enabled but reporting inactive / firewalld active
- Network confignetplan + systemd-networkd / NetworkManager 1.56.0
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LFCS-A01 | 192.168.0.70 | Ubuntu 26.04 LTS | Primary host - most guides run only here | 2 Core | 4 GB | 50 GB |
| LFCS-C01 | 192.168.0.72 | AlmaLinux 10.2 | The other distribution - dnf, firewalld and NetworkManager | 2 Core | 4 GB | 50 GB |
This guide includes
Use this to start the storage fifth of the exam. This matters because new partitions are invisible until the kernel re-reads the table - so the device you just created is not there yet.
- making a block device out of a file
- writing a GPT table, and two partitions sized in MiB
- finding why the partitions are not visible yet
- running the whole sequence again on Ubuntu, which corrected the first attempt
Before you start
-
A block device out of a file
-
A partition table, and two partitions
-
And why the partitions are not visible yet
-
The same sequence on Ubuntu, which corrected me