Lost Grub2 after installing Win7

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Mons1
Level 1
Level 1
Posts: 31
Joined: Sat Sep 05, 2009 7:53 pm

Lost Grub2 after installing Win7

Postby Mons1 » Fri Feb 05, 2010 2:13 pm

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?

User avatar
proxima_centauri
Level 11
Level 11
Posts: 3969
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Lost Grub2 after installing Win7

Postby proxima_centauri » Fri Feb 05, 2010 2:51 pm

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
Level 1
Level 1
Posts: 31
Joined: Sat Sep 05, 2009 7:53 pm

Re: Lost Grub2 after installing Win7

Postby Mons1 » Fri Feb 05, 2010 3:25 pm

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
Level 5
Level 5
Posts: 609
Joined: Sun Mar 16, 2008 5:28 am

Re: Lost Grub2 after installing Win7

Postby breaker » Sun Feb 07, 2010 3:43 am

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
rtfm - read the fine manual...
Boot info script: http://ubuntuforums.org/showthread.php?t=1291280
grub2 https://help.ubuntu.com/community/Grub2
PC-BIOS based booting, mbr, boot records; http://thestarman.pcministry.com/


Return to “Installation & Boot”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests