GRUB reinstall

Asked by Mihai Tambur

I have 2 OS on my system Kiwi linux and Windows, after reinstalling windows it erased my bootloader from MBR I tried ti install the bootloader to my linux partition it worked well until I start windows and it makes its partition active and the bootloader dose not show again, I've tried to install grub on (hd0,0) it installed itself normally, but destroyed the ntfs filesystem on my windows partition(it is my first partition on the hard disk).

The question is: How can I install GRUB on MBR? Can someone help me please?

Question information

Language:
English Edit question
Status:
Solved
For:
Kiwi Linux Edit question
Assignee:
No assignee Edit question
Solved by:
Jani Monoses
Solved:
Last query:
Last reply:
Revision history for this message
Best Jani Monoses (jani) said :
#1

to install in the mbr use
setup (hd0)
not setup (hd0,0)
as the last step in the grub install
so root (hd0,X) where X is where your /boot dir is, but setup on the disk as a whole

Revision history for this message
Mihai Tambur (miskamt) said :
#2

Thank you for the hint it helped me much.

Revision history for this message
Mihai Tambur (miskamt) said :
#3

Thanks Jani Monoses, that solved my question.