VSIDO Community

VSIDO Support => General Support => Topic started by: Gordon on October 11, 2016, 08:38:09 PM

Title: reinstalling grub
Post by: Gordon on October 11, 2016, 08:38:09 PM
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


Title: Re: reinstalling grub
Post by: PackRat on October 11, 2016, 09:00:12 PM
What's your Linux partition layout?
Title: Re: reinstalling grub
Post by: Gordon on October 11, 2016, 09:13:56 PM
Hi PackRat

Windows is first on the disk then Linux starts sda3, sda4 and a swap spot
Title: Re: reinstalling grub
Post by: PackRat on October 11, 2016, 09:17:17 PM
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?
Title: Re: reinstalling grub
Post by: Gordon on October 11, 2016, 09:27:30 PM
Yep, I think that is where it needs to be, at least thats where I am trying to put it
Title: Re: reinstalling grub
Post by: Gordon on October 11, 2016, 09:36:29 PM
shattered now of to bed, will check it out tomorrow night night
Title: Re: reinstalling grub
Post by: PackRat on October 11, 2016, 09:43:49 PM
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.
Title: Re: reinstalling grub
Post by: PackRat on October 11, 2016, 09:47:20 PM
There is also the chroot method to reinstall to MBR (http://crunchbang.org/forums/viewtopic.php?id=15351)
Title: Re: reinstalling grub
Post by: hakerdefo on October 12, 2016, 11:32:38 AM
I wrote an article on this ages ago. It could be of use to you,

How to recover deleted or corrupted Grub2 bootloader (http://hakerdefo.blogspot.in/2013/01/how-to-recover-deleted-or-corrupted.html)

Cheers!!!
Title: Re: reinstalling grub
Post by: Gordon on October 12, 2016, 06:57:21 PM
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.
Title: Re: reinstalling grub
Post by: VastOne on September 16, 2023, 03:27:50 AM
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 (http://hakerdefo.blogspot.in/2013/01/how-to-recover-deleted-or-corrupted.html)

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