🖥️ Step-by-Step: Setting Up Partitions in AlmaLinux
1. Boot Into AlmaLinux Installation
- Download the latest AlmaLinux ISO.
- Boot from USB/DVD and select “Install AlmaLinux”.
2. Select Installation Destination
- On the “Installation Summary” screen, click “Installation Destination.”
- Choose your disk.
- Under “Storage Configuration”, select “Custom” and click “Done.”
📁 3. Create Partitions (Recommended Layout)
Click “Click here to create them automatically” or use manual creation:
| Mount Point | Size | File System | Notes |
|---|---|---|---|
/boot | 1 GB | ext4 | Required for boot files |
/ | 20 GB | xfs | Main root filesystem |
/var | 10–30 GB | xfs | Logs, package cache, mail, etc. |
/tmp | 2–5 GB | xfs | Temp files |
/home | Optional | xfs/ext4 | Only needed if multiple users |
swap | 2–4 GB | swap | 2x RAM if <4GB RAM |
💡 Tip: You can create a separate /data partition if your server stores lots of files.
⚙️ 4. Configure LVM (Optional but Recommended)
- Use LVM for each partition (except
/boot) to allow resizing later. - Click “Modify” on each partition and select LVM.
🔐 5. Set Bootloader and Confirm
- Make sure the bootloader is set to the correct disk (usually
/dev/sda). - Click “Done”, then “Accept Changes” when prompted.
6. Finish Installation
- Set root password, create user, and complete setup.
- Reboot when done.
✅ Post-Install (CLI Check)
After boot, you can confirm partitions using:
lsblk
df -h