[SOLVED] grub on wrong partition

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
shmu
Level 2
Level 2
Posts: 96
Joined: Sun Dec 15, 2013 7:32 am

[SOLVED] grub on wrong partition

Post by shmu » Wed Sep 18, 2019 10:18 am

I have a multiboot setup
1 Windows 10
2 MX Linux
3 Linux Mint

In my firmware I see boot entries for all 3, but one of them does not actually work, and that is #3, Linux Mint.
I can boot into Mint from the MX grub menu, but not from the (non-existent) Mint grub menu, which I used to have. :?
So how can I get it back? I tried running sudo update-grub from inside Mint, but to no avail.
Is there a way to do it without booting from a Mint flash drive? ATM I have only a MX flash drive. :(
Last edited by shmu on Wed Sep 18, 2019 10:38 am, edited 1 time in total.

User avatar
Flemur
Level 17
Level 17
Posts: 7303
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: grub on wrong partition

Post by Flemur » Wed Sep 18, 2019 10:23 am

shmu wrote:
Wed Sep 18, 2019 10:18 am
I have a multiboot setup
1 Windows 10
2 MX Linux
3 Linux Mint

In my firmware I see boot entries for all 3, but one of them does not actually work, and that is #3, Linux Mint.
I can boot into Mint from the MX grub menu, but not from the (non-existent) Mint grub menu, which I used to have. :?
So how can I get it back? I tried running sudo update-grub from inside Mint, but to no avail.
Is there a way to do it without booting from a Mint flash drive? ATM I have only a MX flash drive. :(
Boot mint and then run

Code: Select all

sudo grub-install /dev/sda
sudo update-grub
The first cmd makes grub get its menu from the mint install, and the second updates that menu.
If /dev/sda is not correct, use the correct value...
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

shmu
Level 2
Level 2
Posts: 96
Joined: Sun Dec 15, 2013 7:32 am

Re: grub on wrong partition

Post by shmu » Wed Sep 18, 2019 10:37 am

Flemur wrote:
Wed Sep 18, 2019 10:23 am
Boot mint and then run

Code: Select all

sudo grub-install /dev/sda
sudo update-grub
The first cmd makes grub get its menu from the mint install, and the second updates that menu.
If /dev/sda is not correct, use the correct value...
Thanks!
I ran that command, only adding the exact partition number to make sure grub will know where to go
sudo grub-install /dev/sda6
and it worked like a charm.

User avatar
ricardogroetaers
Level 4
Level 4
Posts: 222
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: [SOLVED] grub on wrong partition

Post by ricardogroetaers » Fri Sep 20, 2019 12:57 am

shmu,
Thanks for this topic.

Could inform me:
1- Is your machine BIOS or UEFI?
2- Is your disk partitioning MBR or GPT?

shmu
Level 2
Level 2
Posts: 96
Joined: Sun Dec 15, 2013 7:32 am

Re: [SOLVED] grub on wrong partition

Post by shmu » Fri Sep 20, 2019 1:10 am

EFI and GPT

Post Reply

Return to “Installation & Boot”