Ubuntu Support Template
Ubuntu Version: 22.04 LTS / Workstation
Desktop Environment (if applicable): GNOME
Problem Description: In all the years of using multi-boot setups I’ve never needed to edit grub until now. I have a new (old stock) laptop that came with Windows 10, and I first of all reduced this to a minimum installation. I then set about installing Ubuntu (vanilla, Workstation) as my prime OS, and two Ubuntu flavours. So far, so good, every thing was fine. Then I set up Fedora Workstation, which also booted fine. But, suddenly, my two Ubuntu flavours had turned into one, with one completely disappeared but its boot entries and partition assigned to the remaining flavour.
Also, Ubuntu Workstation now won’t update properly any more, especially the kernel updates. All told, I now want to remove all boot entries from Grub except the Windows Bootmanager one, as I have to preserve Windows because there’s no media and the activation code is built into the system. However, after getting the Grub manual and doing extensive searches on the topic here, while I got the basics of the job, backing up Grub first of course, going through the following commands in Terminal -
“sudo cp /boot/grub/grub.cfg /boot/grub/grub.cfg.bak”
“cd /etc/grub.d/”
“ls”
“sudo nano 30_os-prober”
And then I got a long list of texts that frankly were complete gobbledeegook to me, that in no way identified the boot menu entries, except for one paragraph with a fleeting reference to Windows Bootmanager.
End result, I’m stuck as to what to do or how. I include a copy of my Grub Boot Menu here -
GRUB V.2.12 (Menu)
Fedora Linux (6.16.10-200.fc42.x86_64) 42 (Workstation Edition)
Fedora Linux (6.16.7-200.fc42.x86_64) 42 (Workstation Edition)
Fedora Linux (6.16.3-200.fc42.x86_64) 42 (Workstation Edition)
Fedora Linux (0-Rescue-2d981b965f0545809faf485fe6290023) 42 (Workstation Ed.)
Ubuntu (on /dev/sda10)
Ubuntu, with Linux 5.15.0-143-generic (on /dev/sda10)
Ubuntu, with Linux 5.15.0-143-generic (Recovery Mode) (on /dev/sda10)
Ubuntu, with Linux 5.15.0-25-generic (on /dev/sda10)
Ubuntu, with Linux 5.15.0-25-generic (Recovery Mode) (on /dev/sda10)
Windows Boot Manager (on /dev/sda2)
Ubuntu (on /dev/sda8)
Ubuntu, with Linux 6.8.0-60-generic (on /dev/sda8)
(Fedora is on /dev/sda12)
Surely there must be a better/simpler way of getting rid of all the entries except the one for Windows Bootmanager.
Any help would be greatly appreciated, so that I can set about re-installing my Linux systems. This time perhaps best to start with Fedora. Nothing ever happened like this before, Fedora used to install just fine without interfering with anything. Upgrading it always went fine. With this troubled installation, it even insisted on making itself the default boot option!
Anyway, MTIA.