My goal is to remove the Fedora partitions to create space for and expand the Debian partition. These are the partitions that I have on my disk currently. I do not need any data from Fedora because I moved it all to Debian.
I believe p1 is the boot partition for Debian, p2 is where Debian is installed, and p3 is a swap partition. I am not sure what p4 is but p5 is where Fedora is installed on a LVM. I have a usb with gparted on it. How should I proceed with removing Fedora?
That you believe the debian partition is some place means you are uncertain and thus to avoid breaking things you must become certain how things are configured.
It would appear that there is an LVM partition which may be p5 and may contain one or more LVs including the one you show as fedora_homeserver-root.
Please post the full output of the following commands as preformatted text by first copy and paste the text, then highlight the pasted text and click the </> button on the text input window toolbar.
--- Volume group ---
VG Name fedora_homeserver
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size <229.13 GiB
PE Size 4.00 MiB
Total PE 58657
Alloc PE / Size 30720 / 120.00 GiB
Free PE / Size 27937 / <109.13 GiB
VG UUID 3Pd7sb-TYYx-qBLB-61bQ-WID4-7JC3-ZLD117
sudo lvdisplay
--- Logical volume ---
LV Path /dev/fedora_homeserver/root
LV Name root
VG Name fedora_homeserver
LV UUID QNOMGt-T9Po-onLl-d0EM-3FH1-VFlQ-F1Yktt
LV Write Access read/write
LV Creation host, time homeserver.lan, 2024-01-19 23:32:07 -0500
LV Status available
# open 0
LV Size 120.00 GiB
Current LE 30720
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
It is clear that /dev/nvme0n1p5 was a fedora LVM partition.
I suspect that since p4 was also an xfs file system it may have been the /boot partition for fedora as well.
The swap partition is already at the end of that drive so it would not interfere with the next steps.
It looks like it may be possible to remove the partitions p5 and p4.
Then simply expand p2 and the ext4 file system to occupy the space that was freed up by removing p4 & p5.
You might be able to use gparted to manage all the arrangements. Usually an ext4 partition and file system can be expanded with no issues using gparted, though it may require that you boot to live media to do that since debian would have p2 mounted and active when booted.
I make no guarantees for the security of your data and as always I suggest a suitable backup before modifying partitions.