Grub misrecognizes Linux partition after update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grub Customizer |
New
|
Undecided
|
Unassigned |
Bug Description
I am running a multi boot system with Linux Mint and Windows 10 without any problems for some years.
A few days ago I got an update of grub which recreates the boot menu but misrecognizes Linux Mint 20.2 as "Ubuntu". (first bug)
Then I started the "Grub Customizer" to look at the boot menu and maybe correct it but that responds with several syntax errors and "Failed saving grub configuration" (see screenshot) and asks to file a bug report here. (second or follow-up bug)
YFI:
I changed from HDD to a SSD a few months ago and kept the "old" HDD as a second drive since I didn't need the space. So don't be surprised that there currently are two Linux and two Windows.
sda1: Windows 10
sda5: Linux Mint 20.2
sdb2: Windows 10 (old)
sda6: Linux Mint 20.2 (old)
The Linux Mint in sda5 is now named "Ubuntu" in the grub startup.
Attached are two screenshots and the file grub.config.new as requested by the tool.
The syntax error comes from a duplicated script code entry inside the "Advanced options for Linux Mint". You should be able to see it when selecting View -> [x] show placeholders. When removing it, you should be able to save the config.
Alternatively, by using the revert button on the top right, the problem should disappear as well.
Just wondering how to come to that situation. As long as the placeholders are hidden, grub customizer isn't moving script placeholders into submenus...