Lost Grub2 after installing Win7

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mons1

Lost Grub2 after installing Win7

Post by Mons1 »

Hi!
I have Mint8 installed and then i installed Win7.
All Windows install will remove Linux-boot, so i need info to restore Grub2-gfx-menu again.

How do i restore Grub2-gfx after Win7 installation?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
proxima_centauri

Re: Lost Grub2 after installing Win7

Post by proxima_centauri »

Hi,

You need to boot into a LiveCD. From there, open a terminal and mount your main Linux Mint partition. For the purposes of explanation I will use /dev/sda1.

Code: Select all

sudo mount /dev/sda1 /mnt
Now you can reinstall grub by issuing this command in terminal, again assuming your device is /dev/sda

Code: Select all

sudo grub-install --root-directory=/mnt/ /dev/sda
Cheers
Mons1

Re: Lost Grub2 after installing Win7

Post by Mons1 »

Hi!
Thanks, but what happens now...I got Grub back, but it only comes up with something that look like a cmd-terminal with a command-prompt.
TAB show me a list over all commands.

I think i miss some config-file that contain information about OS-installation.
breaker

Re: Lost Grub2 after installing Win7

Post by breaker »

It sounds like grub2 needs update-grub ran to find everything again and make the menu. You should use the chroot (Method 3) method to reinstall and also run update-grub before leaving the chroot: https://help.ubuntu.com/community/Grub2 ... m%20LiveCD
Locked

Return to “Installation & Boot”