reinstalling grub

Gordon

Hi Folks

I'm back again with a problem.
Problem caused by that rhubarb program windows. Yep it crashed,  it was on windows 10 and for some reason or other it went down. It's own fix it would not work so I had to do a reinstall using windows 8.1 which of course screwed up grub. I have spent ages on Google reading how to recover it and have managed to get so far but now am lost. If not too much trouble I would appreciate some help.
Here is what I have managed to come up with using a live dvd running version 4.0.0.1 which is the latest one that I have.


root@vsido:/home/vsido# mount /dev/sdax /mnt
root@vsido:/home/vsido# grub-install --boot-directory=/mnt/boot /dev/sdax
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..
grub-install: error: will not proceed with blocklists.
root@vsido:/home/vsido# update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `overlay'.
root@vsido:/home/vsido# grub-update
bash: grub-update: command not found
root@vsido:/home/vsido# update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `overlay'.
root@vsido:/home/vsido#


I have no idea how to go any further. Help Please


Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

PackRat

What's your Linux partition layout?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Gordon

Hi PackRat

Windows is first on the disk then Linux starts sda3, sda4 and a swap spot
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

PackRat

Ok, that was my other question (had to get the pizza out of the oven first).

Are Sda3 and Sda4 / and /home?

And you want grub on the MBR?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Gordon

Yep, I think that is where it needs to be, at least thats where I am trying to put it
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

Gordon

shattered now of to bed, will check it out tomorrow night night
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

PackRat

Quotemount /dev/sdax /mnt

Is that literal? sdax needs to be the linux root partition - sda3

Quotegrub-install --boot-directory=/mnt/boot /dev/sdax

I think that just needs to be:

grub-install /dev/sda


to install to MBR

then:

update-grub

If Windows 8 isn't found by grub, it's usually because the Fast Boot is enabled - you'll have to make some changes to Windows 8 then run update-grub again.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

hakerdefo

I wrote an article on this ages ago. It could be of use to you,

How to recover deleted or corrupted Grub2 bootloader

Cheers!!!
You Can't Always Git What You Want

Gordon

Hi PackRat

Happy to say I am now back up and running again. Thanks for all your help and time.

Hi hakerdefo

Thanks for the link. I didn't find it when I did a search, perhaps I used the wrong terminology.
I Will be making a copy of your instruction for future use if I need it. Most likely knowing me  :D :D

Again thanks to all for your very valuable time and assistance.
Cheers :D
Gordon
Gigabyte Motherboard GA-MA69G-S3H , 8 Gb Ram, Realtek RX550 Graphics,  VSIDO

VastOne

Quote from: hakerdefo on October 12, 2016, 11:32:38 AMI wrote an article on this ages ago. It could be of use to you,

How to recover deleted or corrupted Grub2 bootloader

Cheers!!!

This is the very reason I keep this alive.. I used hakerdefo's How To and RatMan's incredible wisdom just tonight when a new install of kernel 6.5.0-1 decided to shit all over grub and make my testing VBox unbootable.. A quick Google search for grub reinstall and VSIDO brought me exactly to this place for a very quick fix.. I am eternally grateful for all the help this has provided to the world for a very very long time
VSIDO      VSIDO Change Blog    

    I dev VSIDO