LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-15-2021, 02:09 PM   #1
redrobred
Member
 
Registered: Dec 2021
Posts: 82

Rep: Reputation: Disabled
How to reclaim Grub boot menu?


Hi all

I created a dual boot, first had Kubuntu (SDA5), then installed Manjaro KDE in the 2nd partitions (SDA6,7,8), of quick the Boot Grub menu is now from Manjaro.

But now I wish to remove Manjaro and return to just a single boot setup. If possible, how can I safely reclaim booting from the original Kubuntu Grub boot menu?

I'm worried that if removing Manjaro (probably by formatting the partition's while in Kubuntu), that this would destroy any boot capability and I'll be unable to get back into Kubuntu.
My boot system is MBR, old style bios on this machine, if that makes any difference.

I'm kinda new to linux ... so heavens I'm praying there's an easy quick solution.

Thanks in advance
Rob

sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 125.4G 0 part /
├─sda6 8:6 0 29.3G 0 part
├─sda7 8:7 0 56.7G 0 part
└─sda8 8:8 0 11.7G 0 part

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.11.0-41-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-2630QM CPU @ 2.00GHz
Memory: 7,7 GiB of RAM
 
Old 12-16-2021, 04:03 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by redrobred View Post
My boot system is MBR, old style bios on this machine, if that makes any difference.
Is certainly makes a difference, and with an EFI partition seems doubtful. Let's have some more data before surgery. Run these commands from a terminal and post results inside [code] tags to keep the alignment so it is readable.
Code:
[ -d /sys/firmware/efi ] && echo "EFI" || echo "BIOS"
sudo parted /dev/sda "print free"
Changing the boot back is straightforward, but different for each.
Forgot to mention - sudo will require your password; it won't show anything as you type it.

Last edited by syg00; 12-16-2021 at 04:30 PM. Reason: parted rather than lsblk
 
Old 12-16-2021, 06:30 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by redrobred View Post
Hi all

how can I safely reclaim booting from the original Kubuntu Grub boot menu?
Boot into Kubuntu. Then install Grub from within Kubuntu. It will probably dual boot Kubuntu and Manjaro with Kubunto as the default. After you format the Manjaro
partition you can install Grub again from Kubuntu and the second time Grub will only find the Kubuntu partition.
 
Old 12-16-2021, 10:29 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
If /etc/default/grub contains GRUB_DISABLE_OS_PROBER="true", then reinstalling Grub from Kubuntu will not include any other OS in Grub's boot menu. Just make that edit if necessary, then run sudo update-grub from Kubuntu boot, reboot to verify you're in Kubuntu's Grub menu.

Before doing the above sequence, follow syg00's instructions, in order to understand whether you're dealing with UEFI vs. legacy booting issues. If Kubuntu is installed in UEFI mode, then it should be enough to use efibootmgr to ensure Grub is first in boot priority. If Manjaro was installed in legacy mode, it may be necessary or desirable to go into the BIOS and disable CSM booting.

For the future, if you ever wish to add another Linux distro, install the additional distro without any bootloader. This will maintain the existing boot configuration, which can be post-installation updated to add the new distro to its menu via GRUB_DISABLE_OS_PROBER="false", or commenting out or removing GRUB_DISABLE_OS_PROBER="true", followed by sudo update-grub in Kubuntu.
 
Old 12-19-2021, 09:56 AM   #5
redrobred
Member
 
Registered: Dec 2021
Posts: 82

Original Poster
Rep: Reputation: Disabled
Sorry for late reply on this ... only found the thread now again, new here.
On this day I decided to just reinstall. Saved a lot of hassle. Kind of!

Thanks for assistance
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB menu not getting updated even after changing /boot/grub/grub.cfg KNSI Linux From Scratch 4 06-20-2018 09:13 PM
GRUB menu not getting updated even after changing /boot/grub/grub.cfg KNSI Linux - Newbie 6 06-20-2018 01:54 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 04:02 PM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration