Skip to content

Fedora Server


Extending the filesystem

By default the root filesystem will only be 15gb in size, Fedora Server uses LVM and the XFS filesystem by default. You can see the size of the filesystem by running lsblk, which will show something like this:

[root@homelab01 ~]# lsblk
NAME                             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                                8:0    0   7.3T  0 disk
zram0                            252:0    0     8G  0 disk [SWAP]
nvme0n1                          259:0    0 465.8G  0 disk
├─nvme0n1p1                      259:2    0   600M  0 part /boot/efi
├─nvme0n1p2                      259:3    0     1G  0 part /boot
└─nvme0n1p3                      259:4    0 464.2G  0 part
  └─fedora_192--168--1--101-root 253:0    0    15G  0 lvm  /
nvme1n1                          259:1    0 465.8G  0 disk

Note the 15G LVM parition (the one of type lvm)

To expand it, run the following commands, note the name might be different, it will be in the format fedora_[name]-root:

# Extend the LVM volume, using all remaining free space
lvextend -l +100%FREE /dev/mapper/fedora_fedora-root

# Expand the XFS filesystem
xfs_growfs /dev/mapper/fedora_fedora-root

To validate that the changes have worked, run lsblk

Disable firewalld

systemctl stop firewalld
systemctl disable firewalld

Disable selinux

  1. Edit /etc/selinux/config and replace enforcing with disabled
  2. Reboot the system
  3. Check the current mode by running getenforce

Installing on a Intel NUC

  • Add nomodeset to kernel
  • Disable sleep and suspend
grubby --update-kernel=ALL --args="nomodeset"

systemctl mask

Last update: August 12, 2023
Created: May 27, 2023