I’m a Fedora newb. I’ve been using Ubuntu for the last 8 years. I recently got a new laptop and installed Ubuntu 20.04 on it. It was pretty buggy on my hardware, so I started looking into other OSes. I’ve been dual booting Ubuntu and Fedora to try it out and it’s been smooth. I’m ready to wipe Ubuntu from my laptop and leave Fedora as the only OS. The problem is that I have no idea how to safely do this. Any guidance is appreciated.
We should probably gather some data to help assess the current state before providing advice.
Can we see the output of:
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,PTTYPE
NAME SIZE TYPE FSTYPE MOUNTPOINT PTTYPE
loop0 29.8M loop squashfs /var/lib/snapd/snap/snapd/8140
loop1 55M loop squashfs /var/lib/snapd/snap/core18/1754
loop2 65.3M loop squashfs /var/lib/snapd/snap/p3x-onenote/74
loop3 62.1M loop squashfs /var/lib/snapd/snap/gtk-common-themes/1506
loop4 161.4M loop squashfs /var/lib/snapd/snap/gnome-3-28-1804/128
nvme0n1 477G disk gpt
├─nvme0n1p1 512M part vfat /boot/efi gpt
├─nvme0n1p2 284.1G part ext4 gpt
├─nvme0n1p3 1G part ext4 /boot gpt
└─nvme0n1p4 191.4G part LVM2_member gpt
├─fedora_localhost--live-root 70G lvm ext4 /
├─fedora_localhost--live-swap 7.7G lvm swap [SWAP]
└─fedora_localhost--live-home 113.7G lvm ext4 /home
OK, so it looks like you are running a UEFI system and your Ubuntu is in a single partition is at
First, you should always make sure you have good backups before doing anything like wiping out a partition.
Here is what I would do:
- Clean up the the EFI partition. I believe ubuntu keeps these files at
- Delete the Ubuntu partition by removing
- Rebuild the grub config to remove the Ubuntu entry
- Either leave the free space open something to be installed later or add it to fedora using lvm
Alternatively, you could just re-install.
As an unrelated side note, if you used the official AppImage for p3x-onenote, you wouldn’t need to have 5 snaps mounted.
Thanks for the info, dalto! I just to make sure I understand everything before attempting this
I confirmed that Ubuntu keeps boot files in
/boot/efi/EFI/ubuntu. I’m assuming that by “clean up”, you mean delete that directory:
sudo rm -r /boot/efi/EFI/ubuntu
The second point is pretty clear. I’ll use gparted and delete that partition
Rebuild grub by running
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
I found a comment on another post and based on that, I’ll do the following 3 things to use the unallocated space
/dev/nvme0n1p4 using gparted
sudo pvresize /dev/nvme0n1p4
sudo lvextend -r -l +100%FREE /dev/fedora_localhost-live/home
Yes, I am hoping that, combined with removing the partition, is enough to stop grub from finding it.
I haven’t used in lvm in quite a few years so I can’t confirm or deny that you have the correct way to do it.