windows boots with no Grub

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
CDZ

windows boots with no Grub

Postby CDZ » Tue Feb 10, 2009 7:28 pm

grub> find /boot/grub/stage1
(hd1,1)

grub> root (hd1,1)

grub> setup (hd1,1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1,1)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd1,1)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd1,1) /boot/grub/stage2 p /boot/grub/menu
.lst "... succeeded
Done.

grub>


What is wrong with this ^^

It almost seems like windows rewrote the MBR

how do i fix this?




thx, Corey

User avatar
atlef
Level 4
Level 4
Posts: 306
Joined: Sun Nov 18, 2007 8:20 am
Location: Stavanger NORWAY
Contact:

Re: windows boots with no Grub

Postby atlef » Wed Feb 11, 2009 2:29 am

This is the correct procedure for restoring grub.

Boot your LiveCD and open up a terminal, then do the following:

sudo grub

You will get a grub prompt (see below) which we will use to find the root partition and install grub to the MBR (hd0,0)

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub>

Type the following and press enter:

find /boot/grub/stage1

If you get "Error 15: File not found", try the following:

find /grub/stage1

Using this information, set the root device (fill in X,Y with whatever the find command returned):

grub> root (hdX,Y)

Install Grub:

grub> setup (hd0)

Exit Grub:

grub> quit


Return to “Installation & Boot”

Who is online

Users browsing this forum: No registered users and 4 guests