[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: reinstalling grub

Le lun 25/08/2003 à 13:43, Louis Garcia a écrit :
> I had to reinstall windows and it override the MBR. How do I reinstall
> grub on the MBR?

It's not easy.
First, boot from the cd1. Enter "linux rescue" at the lilo prompt.
This will mount the root partition to /mnt/sysimage (or something like).
Mount /boot partition to /mnt/sysimage/boot :
mount -t ext3 /dev/hda? /mnt/sysimage/boot

Disable exec-shield :
echo 0 > /proc/sys/kernel/exec-shield

Run grub-install. For example :
grub-install --root-directory=/mnt/sysimage /dev/hda

Take this pieces of advices very carefully ! Backup /boot partition.

Grub documentation :
Grub-install :

> Thanks, --Lou
> --
> Rhl-beta-list mailing list
> Rhl-beta-list redhat com
> http://www.redhat.com/mailman/listinfo/rhl-beta-list
Féliciano Matias <feliciano matias free fr>

Attachment: signature.asc
Description: Ceci est une partie de message=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]