Download the Ubuntu 24.04.2 ISO: https://ubuntu.com/download/desktop/thank-you?version=24.04.2&architecture=amd64<s=true
Burn the ISO to a USB drive with enough space.
Disable secure boot.
Start a live Ubuntu session.
Once booting is complete, open a terminal and run:
sudo apt update
sudo apt install --reinstall gparted
sudo gparted
From gparted, select the hard drive.
Unmount the existing partitions from the last to the first.
Create a new gpt partition table.
In the free space, create a 512-megabyte partition, the EFI-System partition (Fat32) if it's a UEFI boot partition, or the EFI-Boot partition if it's a legacy BIOS.
Next, create an 80-gigabyte ext4 partition.
Create another 8-gigabyte swap partition.
Create another ext4 partition that you plan to use for the Linux system.
Apply the changes.
Close gparted.
Close the terminal.
Start the installation.
Choose manual partitioning and select:
Default Grub on the hard drive.
The 80-gigabyte partition for /
The 8-gigabyte swap partition
The remaining partition for /home.
Apply
Complete the installation.