What you want is to have Grub installed on the Master Boot Record (MBR) of the first disk to pilot the boot sequence.
You need a Linux distribution CD/DVD with the rescue mode as an option. Any distribution is fine even if different from the one you have installed.
- Boot in rescue mode
- Once you have a shell type:
- > fdisk -l
- > grub
- grub> root (hd0, n)
- grub> setup (hd0)
- grub> quit
3. With fdisk -l you can check which partition holds the linux root partition (in case you forgot).
5. If your partition is, for example, /dev/sda2, then your value for n is 1 (Grub starts from 0)
Now you can exit the rescue shell and reboot. If you had a Grub configuration file configured to boot Linux and Windoz, you are done. You will be in the same exact position as before Winsoz zeroed Grub on the MBR.
If you didn't have Windoz before, you need to add to the Grub configuration file the Windoz entry:
title Windoz
root (hd0,m)
makeactive
chainloader +1
where m is the Windoz partition (Grub's way of course, see note above).
No comments:
Post a Comment