LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lilo internal error (https://www.linuxquestions.org/questions/linux-software-2/lilo-internal-error-51172/)

bartgymnast 03-22-2003 10:56 AM

lilo internal error
 
hello people I got the following problem.

my PC a 1.3 Ghz with 512 mb ram runned slackware 8.1 and windows 2000

now slackware 9.0 is out and I downloaded it, decided to remove windows and so completly format my drive.

now the problem.
Lilo was installed on the MBR

I installed Lilo from the setup of slackware.
it gave an error when to write it to the MBR. (no problem you think, do it later)

so when I start the comp. you can't see Lilo and there is no boot anyway.

so it did the CD-rom in again
started the root filesystem with the following command line

bare.i root=/dev/hda1 image=/boot/vmlinuz noinitrd ro

so it boots my systems.
but than when I try to install Lilo with /sbin/lilo

it gives the following error

---------------------------------------------------------
Warning: boot record relocation is necessary: /dev/hda
Added Linux *
Fatal: Lilo internal error: would overwrite partition table

----------------------------------------------------------



can some-one please help me

thanks in advance bart

cuckoopint 03-22-2003 12:35 PM

Quote:

bare.i root=/dev/hda1 image=/boot/vmlinuz noinitrd ro
this may be a stretch...since you're mounting this read-only, you can't edit lilo.conf (did you edit, or did you just try to run /sbin/lilo?)

From the warning error I would indeed go and look at /etc/lilo.conf and check if everything's setup correctly (especially your linux boot/root partition)

mad_ady 03-22-2003 01:23 PM

Or you can wipe clean your mbr with this ms-dos command:
fdisk /mbr

Run it from a dos boot disk. Then start linux and try lilo again.

bartgymnast 03-24-2003 02:17 AM

thanks mad_ady

your solution was the best one.
I runned fdisk /mbr

went back into linux with the option I gave before.
than I did /sbin/lilo and it wrote perfect.
now it works again.

mad_ady 03-24-2003 11:02 AM

Glad I could help :)


All times are GMT -5. The time now is 10:46 PM.