This guide documents how to safely replace Ubuntu 22.04 with Ubuntu 24.04 on a dual-boot system while preserving Windows.
Single internal SSD (nvme0n1) with:
nvme0n1p1→ EFI partition (Windows Boot Manager)nvme0n1p3→ Windows (NTFS)nvme0n1p4→ Windows Recoverynvme0n1p5→ Ubuntu 22.04 (to be replaced)
This layout can be verified by running:
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT- Replace Ubuntu 22.04 → Ubuntu 24.04
- Keep Windows untouched
- Avoid triple boot setup
- Preserve EFI partition
Download Ubuntu 24.04 ISO and create a bootable USB using Balena Etcher or similar.
- Insert USB
- Reboot system
- Press
F11to open boot menuNote: The key to access the boot menu depends on your motherboard or laptop manufacturer.
Common keys include:F11(MSI),F12,ESC, orF9. - Select
UEFI: USB
Once you boot from the USB, you will see the first screen:
Select Try or Install Ubuntu.
You will then go through a series of initial setup screens:
- Choose your language
- Accessibility
- Keyboard layout
- Connect to internet
- Updates available → skip
- Select
Install Ubuntu - Choose
Interactive Installation - Select
Default selection
The following GIF shows the flow of these steps:
On the next screen, make sure to select both:
Install third-party software for graphics and Wi-Fi hardwareDownload and install support for additional media formats
This ensures:
- Proper GPU drivers
- Wi-Fi compatibility
- Media playback support
Select:
Manual installation
Do NOT select:
Install alongsideErase disk
Important: This is the most critical step of the entire process.
Make sure you select the correct disk and partition. Choosing the wrong one can lead to data loss.If unsure, stop and verify your partitions first:
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTor:
sudo fdisk -lIn this case:
- Disk:
nvme0n1(internal SSD)- Partition:
nvme0n1p5→ Ubuntu 22.04This partition will be formatted and replaced with Ubuntu 24.04.
Identify the correct disk:
nvme0n1→ internal SSD (target)
Select:
nvme0n1p5
Set:
- Filesystem →
Ext4 - Mount point →
/ - Format → enabled
Select:
nvme0n1p1
Set:
- Mount point →
/boot/efi - Format → disabled
Set:
- Device for bootloader installation →
nvme0n1
Ensure:
- Only
nvme0n1p5is formatted - Windows partition (
nvme0n1p3) is untouched - EFI partition is NOT formatted
- Bootloader is installed on
nvme0n1
Before starting the installation, carefully review the summary:
- Installation disk:
nvme0n1 - EFI partition:
nvme0n1p1→ used for/boot/efi(not formatted) - Root partition:
nvme0n1p5→ formatted asext4and used for/
Make sure:
- Only
nvme0n1p5is being formatted - The Windows partition (
nvme0n1p3) is not listed for formatting - The EFI partition is used but not formatted
If everything looks correct, click Install to begin the installation.
This will:
- Replace Ubuntu 22.04 with Ubuntu 24.04
- Keep Windows intact
- Configure the system to use GRUB for dual boot
After installation:
- Remove USB
- Reboot system
GRUB boot menu appears with:
Ubuntu 24.04Windows Boot Manager





