Solved Boot menu shows Ubuntu on partition which does not exist

Solved issue

ozfbu

Member
Joined
Sep 2, 2025
Messages
60
Reaction score
15
Credits
513
I have Fedora installed on one hard disk. It works for now

I had previously installed Ubuntu somewhere on the "right" of another hard disk. I don't need this Ubuntu, or any data from within it

I wiped the Ubuntu partition (or so I thought), in order to reclaim disk space before rolling out Linux properly

'OWEVER! The Ubuntu OS is still showing up in my boot menu, at /dev/sda3

KDE Partition Manager cannot see any /sda3 partition
1761590310151.png


Meanwhile, in the console:
Code:
sudo su

fdisk -l
Disk /dev/sda:  TiB,  bytes,  sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier:

Device          Start        End    Sectors  Size Type
/dev/sda1        2048 [big number] [similarly big number]  Microsoft basic data
/dev/sda2  [much bigger number] [similarly much bigger number]    [not so big number]    EFI System


Disk /dev/sdb: GiB, bytes, sectors

Please can someone let me know how to tidy up my hard disk without wiping any data? There is data on the "left" of the disk that I'd like to keep
 


I have Fedora installed on one hard disk. It works for now

I had previously installed Ubuntu somewhere on the "right" of another hard disk. I don't need this Ubuntu, or any data from within it

I wiped the Ubuntu partition (or so I thought), in order to reclaim disk space before rolling out Linux properly

'OWEVER! The Ubuntu OS is still showing up in my boot menu, at /dev/sda3

KDE Partition Manager cannot see any /sda3 partition
View attachment 28353

Meanwhile, in the console:
Code:
sudo su

fdisk -l
Disk /dev/sda:  TiB,  bytes,  sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier:

Device          Start        End    Sectors  Size Type
/dev/sda1        2048 [big number] [similarly big number]  Microsoft basic data
/dev/sda2  [much bigger number] [similarly much bigger number]    [not so big number]    EFI System


Disk /dev/sdb: GiB, bytes, sectors

Please can someone let me know how to tidy up my hard disk without wiping any data? There is data on the "left" of the disk that I'd like to keep
The details of the issue are not quite clear to me at this point.

I had previously installed Ubuntu somewhere on the "right" of another hard disk. I don't need this Ubuntu, or any data from within it

I wiped the Ubuntu partition (or so I thought), in order to reclaim disk space before rolling out Linux properly

There is only one disk shown in the output, but you mention "another hard disk" for which there are no fdisk details and apparently, where the ubuntu installation was.

You mentioned a "boot menu", but no boot menu is shown, only partitioning and fdisk output. I assume you are referring to the EFI boot menu which are those that show options when pressing key like F12 when the machine first starts up and the BIOS/UEFI options appear.

Does your boot menu show disk partitions, such as /dev/sda3?

Boot menus here just show boot options in terms of drives from which to boot, not partitions.

You might like to run: efibootmgr to see what it thinks about what to boot, and if there are dead entries there, you can delete them with a command, as root, like: efibootmgr -b <ID-number> -B. The <ID-number> is the number of the entry which appears in the earlier output of efibootmngr, such as 0002 etc.

If by "boot menu", you mean the grub menu which appears after grub has been called by the BIOS/UEFI, then if no ubuntu exists, perhaps try updating grub. If grub can't see any ubuntu, it will not include it in its menu options.

Note that the above is speculation because it's not clear to me. Perhaps others can discern some clarity which I've missed.
 
The Ubuntu OS is still showing up in my boot menu, at /dev/sda3
What is that Boot Menu? UEFI's or GRUB?

If it is the UEFI's, efibootmgr commands pointed out by @osprey will solve your problem; otherwise look out for edited / redundant grub.cfg files in the EFI partition which is usually mounted in /boot/efi. To get rid of misconfiguration in GRUB please check out the admin manual of Ubuntu, as there might be differences between distributions.
 
The details of the issue are not quite clear to me at this point.



There is only one disk shown in the output, but you mention "another hard disk" for which there are no fdisk details and apparently, where the ubuntu installation was.

You mentioned a "boot menu", but no boot menu is shown, only partitioning and fdisk output. I assume you are referring to the EFI boot menu which are those that show options when pressing key like F12 when the machine first starts up and the BIOS/UEFI options appear.

Does your boot menu show disk partitions, such as /dev/sda3?

Boot menus here just show boot options in terms of drives from which to boot, not partitions.

You might like to run: efibootmgr to see what it thinks about what to boot, and if there are dead entries there, you can delete them with a command, as root, like: efibootmgr -b <ID-number> -B. The <ID-number> is the number of the entry which appears in the earlier output of efibootmngr, such as 0002 etc.

If by "boot menu", you mean the grub menu which appears after grub has been called by the BIOS/UEFI, then if no ubuntu exists, perhaps try updating grub. If grub can't see any ubuntu, it will not include it in its menu options.

Note that the above is speculation because it's not clear to me. Perhaps others can discern some clarity which I've missed.
Fedora's equivalent of update-grub, and everything seems to be how I want it. Thank you
 


Follow Linux.org

Members online


Top