LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to reinstall lilo? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-reinstall-lilo-642926/)

okos 05-17-2008 04:43 PM

How to reinstall lilo?
 
My xp partition is messed up and I wanted to reinstall.

During the reinstall my mbr will get overwritten.

To reinstall lilo do I just have to run a live cd.
Code:

chroot /dev/hdc5 (my slackware partition)
lilo

Is that all there is to rewriting lilo over the windows mbr?
I wanted to confirm before actually making the attempt.

jailbait 05-17-2008 04:59 PM

You have to chroot to a directory:

Code:


mkdir  /sparrow
mount  -t ext3 /dev/hdc5 /sparrow (assuming / is ext3)
chroot  /sparrow
lilo

------------------
Steve Stites

okos 05-17-2008 10:24 PM

Thanks jailbait,

Yes I tried chroot /dev/hdc5
and it obviously did not work.
I had to use chroot /mnt/hdc5

Thanks


All times are GMT -5. The time now is 11:11 AM.