[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

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

Post by bionicle_159 »

Hi,
I'm running Mint 19.3 alongside Windows 7 (not online).
I tried running boot repair from a mint live usb and when that failed, I tried doing things manually with directions from several existing forum posts.
I keep booting to a grub command line, I have 3 working partitions: 100mb (sda1), Win7 (sda2) and Mint (sda5).
Any thoughts?
- Bionicle_159
Last edited by bionicle_159 on Sun Jan 26, 2020 9:15 pm, edited 2 times in total.
blockhead47
Level 3
Level 3
Posts: 111
Joined: Wed Jun 15, 2016 4:50 pm

Re: Grub won't reinstall on dual-boot drive

Post by blockhead47 »

Can you access your PC's BIOS boot menu? [Usually F12 or ESC]
If so, if you select the Win7 or Linux partition will the system boot?
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 »

blockhead47 wrote:
Sun Jan 19, 2020 3:32 pm
Can you access your PC's BIOS boot menu? [Usually F12 or ESC]
If so, if you select the Win7 or Linux partition will the system boot?
No, it's on the same drive.
I tried doing all the aforementioned "fixes" with a live usb, I'm going to be doing it through a sata-usb adapter - so it will be a different sd*. it's less time-consuming than swapping hard drives around systems.
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 »

When I said "working partitions", I meant partitions that have data and are what I use. I still can't boot into any of them because GRUB isn't working, just displaying a command prompt. This is one of my daily driver hard drives, so it is urgent that I fix this issue - again any help or advice is wanted!
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

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

Post by kukamuumuka »

My crystal ball tells that you have a msdos partition table, so you use legacy grub2, so you need to boot using liveDVD or USB and run the next commands.

Code: Select all

sudo mount /dev/sda5 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda
sudo umount /mnt
When you have rebooted, run sudo update-grub from your workable Mint. :wink:
pbear
Level 15
Level 15
Posts: 5665
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

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

Post by pbear »

If that doesn't work, we need extensive system information. Boot a live session. Open Terminal and expand to full screen. Run the following commands, one line at a time (use copy-and-paste), copy the output, and paste here using code tags (the </> button above the text entry box):

Code: Select all

inxi -Fxz
lsblk -po +LABEL,FSTYPE
sudo parted --list
Please use a separate code box for each output. What puzzles me is sda1, which looks suspiciously like an EFI partition.
These commands will answer that question, and several others.

Also, be aware you can from the live session access files on the drive and copy to another if necessary.
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 »

As mentioned before, I'm using a hard drive to USB adapter - so the drive in question is now dev/sde instead of sda. This is a drive I've had for a long while after I got Mint to install on top of an old Windows installation, hence the weird layout.
Screenshot from 2020-01-23 18-18-31.png
If I do manage to get it booting properly, I need to know whether or not I will get the old standard GRUB menu back or not as the new sluggish menu is the whole reason why this mess happened in the first place.
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
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:
Thu Jan 23, 2020 2:25 pm
As mentioned before, I'm using a hard drive to USB adapter - so the drive in question is now /dev/sde instead of sda. This is a drive I've had for a long while after I got Mint to install on top
Just use the right sdX

Code: Select all

sudo mount /dev/sde5 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sde
sudo umount /mnt
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:
Tue Jan 21, 2020 3:33 pm
My crystal ball tells that you have a msdos partition table, so you use legacy grub2, so you need to boot using liveDVD or USB and run the next commands.

Code: Select all

sudo mount /dev/sda5 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda
sudo umount /mnt
When you have rebooted, run sudo update-grub from your workable Mint. :wink:
I ran that command, it let me get further than what other forums suggested. I got to boot into the 19.3 partition (I still had v-sync turned on so it had to be done through the multi-user mode terminal at the login screen), to see if I could try and update it's own GRUB, which was initially working but then hit an obstacle - it came up with this response.

Code: Select all

Failed to get canonical path of '/boot/grub/fonts/ubuntumono16.pf2
No path or device is specified
I think Boot-Repair utility tried to get the system reserved partition to be the boot partition at one stage, and is probably why the drive is confused since the boot flags are probably mismatched.
The fact that I can still boot into them manually via external means is promising even though it means that I have a lot more work on my hands.
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

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

Post by kukamuumuka »

Linuxes does not need boot flag, and that font issue does not be crucial.
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:
Thu Jan 23, 2020 3:06 pm
Linuxes does not need boot flag, and that font issue does not be crucial.
It still boots to a command line so something is definitely wrong with it
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
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:
Thu Jan 23, 2020 3:53 pm
It still boots to a command line so something is definitely wrong with it
What do you mean about "boots to a command line".? If it boots, but you cannot login, you have a Xserver or login manager problem.
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:
Fri Jan 24, 2020 4:54 am
bionicle_159 wrote:
Thu Jan 23, 2020 3:53 pm
It still boots to a command line so something is definitely wrong with it
What do you mean about "boots to a command line".? If it boots, but you cannot login, you have a Xserver or login manager problem.

No it boots to the GRUB command line, like in this photo from online (obviously mine is Mint’s, not Ubuntu like in this random photo)
03AD7DED-B3A6-4927-AA64-B79CD73A4CC3.jpeg
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
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 19, 2020 2:13 pm
Hi,
I'm running Mint 19.3 alongside Windows 7 (not online).
I tried running boot repair from a mint live usb and when that failed, I tried doing things manually with directions from several existing forum posts.
I keep booting to a grub command line, I have 3 working partitions: 100mb (sda1), Win7 (sda2) and Mint (sda5).
Any thoughts?
- Bionicle_159
bionicle_159 wrote:
Thu Jan 23, 2020 2:25 pm
As mentioned before, I'm using a hard drive to USB adapter - so the drive in question is now dev/sde instead of sda. This is a drive I've had for a long while after I got Mint to install on top of an old Windows installation, hence the weird layout.
bionicle_159 wrote:
Thu Jan 23, 2020 2:52 pm

I ran that command, it let me get further than what other forums suggested. I got to boot into the 19.3 partition (I still had v-sync turned on so it had to be done through the multi-user mode terminal at the login screen), to see if I could try and update it's own GRUB, which was initially working but then hit an obstacle - it came up with this response.

Code: Select all

Failed to get canonical path of '/boot/grub/fonts/ubuntumono16.pf2
No path or device is specified
I think Boot-Repair utility tried to get the system reserved partition to be the boot partition at one stage, and is probably why the drive is confused since the boot flags are probably mismatched.
The fact that I can still boot into them manually via external means is promising even though it means that I have a lot more work on my hands.
What other forums suggested? I have to admit that I do not know you have done, but if we go to basic things as your partition schema and bootloader location. What are the results for the next commads (via liveDVD´s or USB´s Terminal).

Code: Select all

inxi -FxzSrpo

Code: Select all

sudo parted -l

Code: Select all

sudo os-prober

Code: Select all

sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -iX sudo sh -c "dd if=X count=1 2>/dev/null | grep GRUB > /dev/null && echo Grub found: X || echo no Grub: X"
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:
Fri Jan 24, 2020 1:40 pm

What other forums suggested? I have to admit that I do not know you have done, but if we go to basic things as your partition schema and bootloader location. What are the results for the next commads (via liveDVD´s or USB´s Terminal).

Code: Select all

inxi -FxzSrpo

Code: Select all

sudo parted -l

Code: Select all

sudo os-prober

Code: Select all

sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -iX sudo sh -c "dd if=X count=1 2>/dev/null | grep GRUB > /dev/null && echo Grub found: X || echo no Grub: X"
It took a while to get here, but here it is:

Code: Select all

mint@mint:~$ inxi -FxzSrpo
System:
  Host: mint Kernel: 4.15.0-54-generic x86_64 bits: 64 compiler: gcc 
  v: 7.4.0 Desktop: Cinnamon 4.2.3 Distro: Linux Mint 19.2 Tina 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop Mobo: ASUSTeK model: P5KPL-AM v: x.xx serial: <filter> 
  BIOS: American Megatrends v: 0513 date: 05/07/2009 
Battery:
  Device-1: hidpp_battery_0 
  model: Logitech Wireless Touch Keyboard K400 Plus charge: 100% 
  status: Discharging 
CPU:
  Topology: Dual Core model: Pentium E5300 bits: 64 type: MCP arch: Penryn 
  rev: A L2 cache: 2048 KiB 
  flags: lm nx pae sse sse2 sse3 ssse3 vmx bogomips: 10400 
  Speed: 1200 MHz min/max: 1200/2600 MHz Core speeds (MHz): 1: 1200 2: 1200 
Graphics:
  Device-1: NVIDIA G84 [GeForce 8400 GS] driver: nouveau v: kernel 
  bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: nouveau 
  unloaded: fbdev,modesetting,vesa resolution: 1440x900~60Hz 
  OpenGL: renderer: NV84 v: 3.3 Mesa 19.0.2 direct render: Yes 
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio 
  vendor: ASUSTeK P5KPL-CM driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Sound Server: ALSA v: k4.15.0-54-generic 
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK 
  driver: r8169 v: 2.3LK-NAPI port: e800 bus ID: 02:00.0 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: NetGear WNA1100 Wireless-N 150 [Atheros AR9271] type: USB 
  driver: ath9k_htc bus ID: 1-4:7 
  IF: wlxe091f54bf05b state: down mac: <filter> 
Drives:
  Local Storage: total: 480.25 GiB used: 1.92 GiB (0.4%) 
  ID-1: /dev/sdb vendor: Samsung model: HD502HJ size: 465.76 GiB temp: 33 C 
  ID-2: /dev/sdc type: USB model: Mass Storage Device size: 14.49 GiB 
Partition:
  ID-1: / size: 1.71 GiB used: 51.0 MiB (2.9%) fs: overlay source: ERR-102 
  ID-2: /cdrom size: 14.48 GiB used: 1.87 GiB (12.9%) fs: vfat 
  dev: /dev/sdc1 
  ID-3: /rofs raw size: 1.79 GiB size: <root required> used: <root required> 
  fs: squashfs dev: /dev/loop0 
Unmounted:
  ID-1: /dev/sdb1 size: 100.0 MiB fs: ntfs label: N/A uuid: 78A6A7505EB94BF6 
  ID-2: /dev/sdb2 size: 205.27 GiB fs: ntfs label: Ferb 
  uuid: 3C36DC5436DC112E 
  ID-3: /dev/sdb3 size: 1 KiB fs: <root required> label: N/A uuid: N/A 
  ID-4: /dev/sdb5 size: 260.39 GiB fs: ext4 label: N/A 
  uuid: 6f1bb506-e237-4b9f-9255-d4fac78d4c10 
Sensors:
  System Temperatures: cpu: 40.0 C mobo: N/A gpu: nouveau temp: 50 C 
  Fan Speeds (RPM): N/A 
Repos:
  Active apt repos in: /etc/apt/sources.list 
  1: deb cdrom:[Linux Mint 19.2 _Tina_ - Release amd64 20190729]/ bionic contrib main non-free
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com tina main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ bionic partner
Info:
  Processes: 158 Uptime: 11m Memory: 3.42 GiB used: 606.2 MiB (17.3%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.19 
  inxi: 3.0.32 

mint@mint:~$ sudo parted -l
Model: ATA SAMSUNG HD502HJ (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  106MB  105MB  primary   ntfs         boot
 2      106MB   221GB  220GB  primary   ntfs
 3      221GB   500GB  280GB  extended
 5      221GB   500GB  280GB  logical   ext4


Model: Mass Storage Device (scsi)
Disk /dev/sdc: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  15.6GB  15.6GB  primary  fat32        boot, lba


mint@mint:~$ sudo os-prober
/dev/sdb2:Windows 7:Windows:chain
/dev/sdb5:Linux Mint 19.3 Tricia (19.3):LinuxMint:linux

mint@mint:~$ sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -iX sudo sh -c "dd if=X count=1 2>/dev/null | grep GRUB > /dev/null && echo Grub found: X || echo no Grub: X"
no Grub: /dev/loop0
Grub found: /dev/sdb
no Grub: /dev/sdb1
no Grub: /dev/sdb2
no Grub: /dev/sdb3
no Grub: /dev/sdb5
no Grub: /dev/sdc
no Grub: /dev/sdc1

User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

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

Post by kukamuumuka »

Something is wrong, because there is grub, so try to repair the system via liveUSB using chroot-environment.

1. Connect network
2. Open Terminal and run

Code: Select all

sudo mount /dev/sdb5 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt

Code: Select all

df /
apt clean
df /
nano /etc/resolv.conf
.... contents

Code: Select all

nameserver 8.8.8.8
..... save and quit
Ctrl o
Ctrl x

Code: Select all

apt update
apt install grub-pc
apt reinstall grub-pc
apt install linux-generic
update-grub
exit

Code: Select all

sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev
sudo umount /mnt
exit
3. Shutdown and boot without 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:
Sat Jan 25, 2020 2:06 pm
Something is wrong, because there is grub, so try to repair the system via liveUSB using chroot-environment.
Entered your code and when I got to the chroot bit I got this from the terminal

Code: Select all

root@mint:/# apt update
Hit:1 http://repository.spotify.com stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease                     
Ign:6 http://packages.linuxmint.com tricia InRelease                           
Hit:7 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu bionic InRelease
Hit:8 http://packages.linuxmint.com tricia Release                             
Hit:9 http://ppa.launchpad.net/lutris-team/lutris/ubuntu bionic InRelease
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 163 kB in 2s (72.4 kB/s)                             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@mint:/# apt install grub-pc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
grub-pc is already the newest version (2.02-2ubuntu8.14).
The following packages were automatically installed and are no longer required:
  libllvm8:i386 linux-image-5.0.0-32-generic linux-image-generic-hwe-18.04
  linux-modules-5.0.0-32-generic linux-modules-extra-5.0.0-32-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
Setting up grub-pc (2.02-2ubuntu8.14) ...
Installing for i386-pc platform.
Installation finished. No error reported.
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.
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.
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 64
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@mint:/# apt reinstall grub-pc
E: /home/mint/.aptitude - mkdir (2: No such file or directory)
E: Directory does not exist and could not create it: /home/mint/.aptitude
E: Error saving configuration file - apt_dumpcfg (2: No such file or directory)
The following packages will be REINSTALLED:
  grub-pc 
The following packages will be REMOVED:
  libllvm8:i386{u} linux-modules-extra-5.0.0-32-generic{u} 
0 packages upgraded, 0 newly installed, 1 reinstalled, 2 to remove and 23 not upgraded.
Need to get 0 B of archives. After unpacking 231 MB will be freed.
Do you want to continue? [Y/n/?] y
E: Internal Error, No file name for grub-pc:amd64
                                         
root@mint:/# apt install linux-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-generic is already the newest version (4.15.0.74.76).
The following packages were automatically installed and are no longer required:
  libllvm8:i386 linux-image-5.0.0-32-generic linux-image-generic-hwe-18.04
  linux-modules-5.0.0-32-generic linux-modules-extra-5.0.0-32-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
Setting up grub-pc (2.02-2ubuntu8.14) ...
Installing for i386-pc platform.
Installation finished. No error reported.
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.
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.
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 64
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
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.
root@mint:/# exit
exit
Did the rest and still got the GRUB bash prompt
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6699
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

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

Post by kukamuumuka »

It seems that you have messed your system by using Grub Customizer.
https://easylinuxtipsproject.blogspot.c ... mizer.html
A strange thing also is that "grub-install: warning: File system `ext2' doesn't support embedding." means that grub tried to install partition, not master boot record (mbr).

I suggest that you try to boot your system using Super Grub 2 CD or USB
https://www.supergrubdisk.org/category/ ... sk-stable/
JeremyB
Level 20
Level 20
Posts: 11735
Joined: Fri Feb 21, 2014 8:17 am

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

Post by JeremyB »

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
Post Reply

Return to “Installation & Boot”