View Full Version : how can i restore SUSE 9.3 boot after windows XP installation???


aalim
how can i restore SUSE 9.3 boot after windows XP installation???

i installed windows XP after Suse9.3 & i lost the GRUB loader & boot goes directly to windows boot screen

how can i repair boot for SUSE with boot menu containing windows as previous (of course without having to install SUSE again)

THX

habdin
Salamo 3alaikom,

It has been long time since I ever replied to a question on Linux-Egypt. I hope I didn't lose my touch :) . There are many ways to restore Grub to the MBR (Master Boot Record). I don't know whether there is a way to use SUSE 10 installation CD to repair such a problem. I will describe the way to do this. Remember that I will assume that you know the device naming convention in Linux, please search elsewhere if you don't know this. The instructions are as follows:
1- Put any Linux boot CD (make sure that the PC boots from the CD from the BIOS).
2- READ the instructions and messages that appear from the boot CD. There might be a way to boot into a linux rescue console. There you can mount your installation of Linux onto a mount point (which is a created folder). This can be done by the following commands:
mkdir /mnt/distribution
mount /dev/hda5 (or whichever device name and partition your linux distribution resides)

3- You should chroot to the installation directory by the command:
chroot /mnt/distribution (let us assume you named your directory distribution).
4- Run the following command:
grub-install /dev/hda
The final result would be re-installing grub on the MBR in shaa Allah (ISA).

Salam.

aalim
thanks for you fast reply

i will try it & give you my feedback