Lost Grub2 after installing Win7

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Lost Grub2 after installing Win7

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

Linux Mint is funded by ads and donations.
 

Re: Lost Grub2 after installing Win7

Postby proxima_centauri on 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
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3976
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Lost Grub2 after installing Win7

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

Re: Lost Grub2 after installing Win7

Postby breaker on 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/
breaker
Level 5
Level 5
 
Posts: 613
Joined: Sun Mar 16, 2008 5:28 am


Return to Installation & Boot

Who is online

Users browsing this forum: edosan, expat_tony, lostfarmer and 16 guests