Last active
August 9, 2025 10:24
-
-
Save Tamal/ef1302163fa4ec832c040d8cb116e548 to your computer and use it in GitHub Desktop.
Erase Windows partitions and resize and move the partitions for Fedora
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We must resize the partition /dev/nvme0n1p6 itself in GParted to include that XXX GB at the end. | |
# Boot from Live USB again (so /dev/nvme0n1p6 is not in use). | |
# If it shows a key icon, deactivate the LVM: | |
sudo vgchange -an | |
# In GParted: | |
# Right-click /dev/nvme0n1p6 | |
# Choose "Resize/Move" | |
# Drag the end handle all the way to cover the unallocated space (extra 65 GB). | |
# Apply the change ✅ | |
# Boot back into Fedora (host PC). | |
# Resize the LVM Physical Volume to include the new space | |
sudo pvresize /dev/nvme0n1p6 | |
# Check how much free space is available in the Volume Group | |
# Look for...Free PE / Size X / 65.49 GiB (for me) | |
sudo vgdisplay | |
# Extend /home to use all available space | |
# -l +100%FREE means use all free space in the volume group. | |
sudo lvextend -l +100%FREE /dev/mapper/fedora_localhost--live-home | |
# Resize the filesystem so the OS can see the new size | |
sudo resize2fs /dev/mapper/fedora_localhost--live-home | |
# Verify the new size | |
df -h /home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment