[SOLVED] GRUB won't reinstall on DUAL-BOOT drive!

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

JeremyB wrote:
Sun Jan 26, 2020 11:53 am
Try this way from Live ISO

Code: Select all

sudo mount /dev/sdb5 /mnt
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdb
update-grub
Your code came back with this error

Code: Select all

mount: /mnt/dev: can't read superblock on /dev.
mount: /mnt/dev/pts: can't read superblock on /dev/pts.
mount: /mnt/proc: can't read superblock on /proc.
mount: /mnt/sys: can't read superblock on /sys.
mount: /mnt/run: can't read superblock on /run.
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6697
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by kukamuumuka »

One explation about all these errors and chancing drive paths can be a loose connection from motherboard to hard drive, which causes change /dev/sdb -> /dev/sde , etc. Where is /dev/sda?
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

kukamuumuka wrote:
Sun Jan 26, 2020 1:46 pm
One explation about all these errors and chancing drive paths can be a loose connection form motherboard to hard drive, which causes change /dev/sdb -> /dev/sde , etc. Where is /dev/sda?
In this extra system that I've setup to fix the drive, sda is an old empty Zip drive. I can try rebooting but everything is just getting weirder by the minute.
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6697
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by kukamuumuka »

bionicle_159 wrote:
Sun Jan 26, 2020 1:47 pm
kukamuumuka wrote:
Sun Jan 26, 2020 1:46 pm
One explation about all these errors and chancing drive paths can be a loose connection from motherboard to hard drive, which causes change /dev/sdb -> /dev/sde , etc. Where is /dev/sda?
In this extra system that I've setup to fix the drive, sda is an old empty Zip drive. I can try rebooting but everything is just getting weirder by the minute.
Unplug that drive and see what happens.
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

kukamuumuka wrote:
Sun Jan 26, 2020 1:51 pm
bionicle_159 wrote:
Sun Jan 26, 2020 1:47 pm
kukamuumuka wrote:
Sun Jan 26, 2020 1:46 pm
One explation about all these errors and chancing drive paths can be a loose connection from motherboard to hard drive, which causes change /dev/sdb -> /dev/sde , etc. Where is /dev/sda?
In this extra system that I've setup to fix the drive, sda is an old empty Zip drive. I can try rebooting but everything is just getting weirder by the minute.
Unplug that drive and see what happens.
It's an internal Zip drive, so I'll just reboot and try re-seating stuff.
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

kukamuumuka wrote:
Sun Jan 26, 2020 1:51 pm
bionicle_159 wrote:
Sun Jan 26, 2020 1:47 pm
kukamuumuka wrote:
Sun Jan 26, 2020 1:46 pm
One explation about all these errors and chancing drive paths can be a loose connection from motherboard to hard drive, which causes change /dev/sdb -> /dev/sde , etc. Where is /dev/sda?
In this extra system that I've setup to fix the drive, sda is an old empty Zip drive. I can try rebooting but everything is just getting weirder by the minute.
Unplug that drive and see what happens.
I tried after reseating and removing the zip drive and I got this error

Code: Select all

root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generating grub configuration file ...
/usr/sbin/grub-probe: error: failed to get canonical path of `/boot/grub/fonts/UbuntuMono16.pf2'.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.
Thought to try again after copying the ubuntu font file from the live disc, and it produced this:

Code: Select all

root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
Found linux image: /boot/vmlinuz-5.0.0-37-generic
Found initrd image: /boot/initrd.img-5.0.0-37-generic
Found linux image: /boot/vmlinuz-5.0.0-32-generic
Found initrd image: /boot/initrd.img-5.0.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-74-generic
Found initrd image: /boot/initrd.img-4.15.0-74-generic
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
done
Gonna try rebooting without the live-usb
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

kukamuumuka wrote:
Sun Jan 26, 2020 1:51 pm
bionicle_159 wrote:
Sun Jan 26, 2020 1:47 pm
kukamuumuka wrote:
Sun Jan 26, 2020 1:46 pm
One explation about all these errors and chancing drive paths can be a loose connection from motherboard to hard drive, which causes change /dev/sdb -> /dev/sde , etc. Where is /dev/sda?
In this extra system that I've setup to fix the drive, sda is an old empty Zip drive. I can try rebooting but everything is just getting weirder by the minute.
Unplug that drive and see what happens.
It boots to Mint now but grub won't detect windows 7, (The XP drive isn't connected).

Is this an issue with installing the generic headers, and if so - does this mean an update will fix it?
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6697
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by kukamuumuka »

bionicle_159 wrote:
Sun Jan 26, 2020 2:35 pm
It boots to Mint now but grub won't detect windows 7, (The XP drive isn't connected).

Is this an issue with installing the generic headers, and if so - does this mean an update will fix it?
That is a good news. Connect XP drive and run in Mint

Code: Select all

sudo os-prober
sudo update-grub
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

kukamuumuka wrote:
Sun Jan 26, 2020 2:44 pm
bionicle_159 wrote:
Sun Jan 26, 2020 2:35 pm
It boots to Mint now but grub won't detect windows 7, (The XP drive isn't connected).

Is this an issue with installing the generic headers, and if so - does this mean an update will fix it?
That is a good news. Connect XP drive and run in Mint

Code: Select all

sudo os-prober
sudo update-grub
Turns out that Os-Prober wasn't installed! - Did an Apt-install and it picked up Win7 right away!.
Will be boot cycling to verify that Grub is back to normal before switching drives around again.
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

bionicle_159 wrote:
Sun Jan 26, 2020 2:49 pm
Turns out that Os-Prober wasn't installed! - Did an Apt-install and it picked up Win7 right away!.
Will be boot cycling to verify that Grub is back to normal before switching drives around again.
Did the boot cycle, Grub isn't displaying normally - it's got the old issue of ? marks around where the old border would be, which is the original issue that led me back to the forums after trying out several ways that I found online to fix the faulty pattern. Any idea as what to do to get it back to the normal vanilla/plain theme that every other version of Mint (19.2 and backwards) and Ubuntu has?

*Just to clarify, this is a similar photo from online as to what I'm dealing with:

https://i.stack.imgur.com/XHXrC.png
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6697
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by kukamuumuka »

bionicle_159 wrote:
Sun Jan 26, 2020 2:58 pm
*Just to clarify, this is a similar photo from online as to what I'm dealing with:

https://i.stack.imgur.com/XHXrC.png
If you get the old grub2 like in the picture, just boot into Mint as before and install a new version of grub2

Code: Select all

sudo grub-install /dev/sdX  # where X=drive letter which sudo parted -l tells
An example:

Code: Select all

sudo grub-install /dev/sda
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

kukamuumuka wrote:
Sun Jan 26, 2020 3:06 pm
bionicle_159 wrote:
Sun Jan 26, 2020 2:58 pm
*Just to clarify, this is a similar photo from online as to what I'm dealing with:

https://i.stack.imgur.com/XHXrC.png
If you get the old grub2 like in the picture, just boot into Mint as before and install a new version of grub2

Code: Select all

sudo grub-install /dev/sdX  # where X=drive letter which sudo parted -l tells
An example:

Code: Select all

sudo grub-install /dev/sda
I went ahead and did the command, but was on the lookout for clues as to what might be confusing grub as I'm sure I've tried doing your command before.
Here's a copy of the terminal output

Code: Select all

@ASUS-E5300:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-26-generic
Found initrd image: /boot/initrd.img-5.3.0-26-generic
Found linux image: /boot/vmlinuz-5.0.0-37-generic
Found initrd image: /boot/initrd.img-5.0.0-37-generic
Found linux image: /boot/vmlinuz-5.0.0-32-generic
Found initrd image: /boot/initrd.img-5.0.0-32-generic
Found linux image: /boot/vmlinuz-4.15.0-74-generic
Found initrd image: /boot/initrd.img-4.15.0-74-generic
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Found Windows 7 on /dev/sda2
done
The mint-theme.cfg made me suspicious so I peeked in that file.

Code: Select all

#! /bin/sh
set -e

GRUB_FONT="/boot/grub/fonts/UbuntuMono16.pf2"
GRUB_THEME="/boot/grub/themes/linuxmint/theme.txt"
I went looking for the theme address and it doesn't exist!
I also compared with my old 18.3 install and there is no 'gfxblacklist.txt' file to be seen in the 19.3 installation.
Mint must have changed or overwritten the default file when they released the theme update for 19.3 as I got rid of the sluggish 19.3 theme by removing it in the Grub GUI.
If I reboot without this file I am pretty sure it will not change regardless of what commands I've previously entered.
I need to find a way to restore that theme.txt as it's parent folder and the "themes" folder don't exist, so there's no chance of it still being in the grub folder or a backup as I've checked those too.
bionicle_159
Level 2
Level 2
Posts: 61
Joined: Sun Mar 03, 2019 8:25 am

Re: GRUB won't reinstall on DUAL-BOOT drive!

Post by bionicle_159 »

bionicle_159 wrote:
Sun Jan 26, 2020 3:25 pm

The mint-theme.cfg made me suspicious so I peeked in that file.

Code: Select all

#! /bin/sh
set -e

GRUB_FONT="/boot/grub/fonts/UbuntuMono16.pf2"
GRUB_THEME="/boot/grub/themes/linuxmint/theme.txt"
I went looking for the theme address and it doesn't exist!
I also compared with my old 18.3 install and there is no 'gfxblacklist.txt' file to be seen in the 19.3 installation.
Mint must have changed or overwritten the default file when they released the theme update for 19.3 as I got rid of the sluggish 19.3 theme by removing it in the Grub GUI.
If I reboot without this file I am pretty sure it will not change regardless of what commands I've previously entered.
I need to find a way to restore that theme.txt as it's parent folder and the "themes" folder don't exist, so there's no chance of it still being in the grub folder or a backup as I've checked those too.
After a lot of hair-pulling false-positives, I tried changing the line in that same mint-theme.cfg to have the font as 'unicode' and it restored it!
Let this be a way of getting back to the old Grub if people are in the same boat as me, running legacy hardware that can only cope with the old version :lol:
Post Reply

Return to “Installation & Boot”