10 replies
by Wizard57M-TR Accepted solution
by jimt777 Accepted solution
by Wizard57M-TR Accepted solution
OK, finally got this fixed.
This is how to restore grub after a Windows install/re-install overwrites the MBR. The grub configuration is still there, it just isn't being loaded at boot up.
Boot from a LIVE DVD (in my case Linux Mint 11)
I knew which partition LM 11 was installed on. In my case it was sda6. In your case it will most likely be different.
If you don't know, you can determine the partition that Mint is installed on by:
Open terminal and run
sudo gparted
Look for the large EXT4 partition and make a note of what it says on the far left such as sda6
Close gparted
In terminal enter:
sudo mount /dev/sda6 /mnt (replace sda6 with whatever is appropriate for your system)
sudo grub-install --root-directory=/mnt /dev/sda (note there is a space between mnt and /dev and do not put a number after sda)
Restart the computer and you should have your grub menu available again.
Open terminal and enter
sudo update grub (This might not be necessary, but can't hurt)
Note: I did not write this original post, so I can't answer 100 percent it will work. As the poster noted, replace your SDA number as you find in gparted.
Wiz
by jimt777 Accepted solution
by jimt777 Accepted solution
Here's what happened when I ran the commands in terminal:
mint@mint:~$ sudo mount /dev/sda5/mnt
mount: /dev/sda5/mnt: can't find in /etc/fstab.
mint@mint:~$ sudo mount /dev/sda5 /mnt
mint@mint:~$ sudo grub-install --root-directory=mnt /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
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.
mint@mint:~$
I think this might be because on this Win 10 laptop, Windows boots using UEFI and Windows Boot Manager rather than BIOS and MBR? Is there any other option?
by oh smeg Accepted solution
Is that the Windows Update has destroyed the Grub Boot Loader.
This happens when you install a Linx Distro after Windows and it defaults to using the Grub Boot Loader that comes with your Nix Distribution.
Unfortantly this is a common issue with Windows as it doesn't like to play well with other OS's unless you let it control everything.
What you need to do here is not rebuild the Grub Boot Loader but build a Windows Boot Loader so Windows doesn't trash it every time you apply a new update.
As I'm not a Win 10 Expert I would suggest going to Technet and looking up there what you need to do but an easy way is to rebuild Windows by doing a repair install which will leave your existing software and data alone and just fix what is broken in Windows which in this case is the Boot Loader.
However as I've said I'm no 10 Expert and there may be an easier/faster way of doing this but as MS changes everything around with each new version I wouldn't even hazard a guess on the easiest way to proceed.
The answer above should repair the Grub Boot loader but I think you'll find that every time you get a Substiantial Windows Update it's going to trash the Grub and you'll be forced to rebuild it every time. Part of the fun of using Windows I suppose but it's a real nusiance.
Of course if that is not the case and the Nix Distro was the first installed ignore the above.
by jimt777 Accepted solution
by oh smeg Accepted solution
But from previous experience Windows doesn't play nice even with different versions of Windows.
The system I'm using here has 5 different OS's 3 Windows XP Pro, 7 and 10 then Linux Debian the latest version and Red Hat the XP Pro install being the last one and it reconises all installed versions except the extra HDD used to store Data which is a NTFS Partition..
I use a different HDD for each OS and another for data so it can be shared across all OS's .
While I'm not sure on 10 as I don't really use it XP Pro was the last installed here after a Windows Update wrecked the Grub Boot Loader and allowing XP to do the initial Boot works fine even if newer versions do play havock with the Boot loader at times.
I do however know 10 has it's limitations and it very much depends on which version of 10 you are using here so if it's one of the lower versions not reconising Linux Partitions may very well be correct.
by jimt777 Accepted solution
by jimt777 Accepted solution
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending