Using default installation options, I just installed Fedora Server 40 on a 256GB hard disk. Somehow, the root partition, /
, has only 15GB, while there is a free 236.9GB area. (Unlike Fedora, CentOS will automatically use the entire disk for the root partition.)
Can the root partition be resized with the remaining free disk space? Thanks.
$lsblk
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 600M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
└─nvme0n1p3 259:3 0 236.9G 0 part ===> free space
└─fedora-root 252:0 0 15G 0 lvm / ===> only 15GB
$df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/fedora-root xfs 15G 13G 2.2G 86% /
devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs tmpfs 32G 0 32G 0% /dev/shm
efivarfs efivarfs 256K 47K 205K 19% /sys/firmware/efi/efivars
tmpfs tmpfs 13G 2.2M 13G 1% /run
/dev/nvme0n1p2 xfs 960M 390M 571M 41% /boot
tmpfs tmpfs 32G 44K 32G 1% /tmp
tmpfs tmpfs 6.3G 216K 6.3G 1% /run/user/1000
/dev/nvme0n1p1 vfat 599M 7.5M 592M 2% /boot/efi
1 Answer 1
From Fedora community(https://discussion.fedoraproject.org/t/root-partition-only-15gb-how-to-utilize-the-rest/71573/6), one verified solution:
sudo lvextend -L236G /dev/mapper/fedora-root --resizefs
If the file system is Btrfs, resize will be easier.
-
1Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.2025年05月04日 12:38:35 +00:00Commented May 4 at 12:38