LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Messed up lilo.conf (https://www.linuxquestions.org/questions/slackware-14/messed-up-lilo-conf-567319/)

Donniey 07-07-2007 02:29 AM

Messed up lilo.conf
 
Due to a series of mistakes, and not making the foresight of backing up lilo.conf before trying to edit it in KDE's boot manager, right now it can only boot into windows (i assume from the boot manager; i figure if i restart and i'm right, i'm kinda boned). This is my lilo.conf file as of right now

Quote:

boot="/dev/sda"
prompt
timeout="100"
root=/dev/sda2
vga="791"

other=/dev/sda1
label="Windows"

image="/dev/sda1"
root="/dev/sda2"
sda1 is obviously my windows xp partition, sda2 is Slackware 12. I've been trying to figure out how i need edit lilo.conf to get it to let both bootable, but all i've found out is i need to include which kernal i want to boot up with slackware (i used the default one, but i forgot which one that is). If anyone can help me with what i need to add/change to get it working, it'd be alot of help. If there's any more information you need, i'll see if i can figure it out. (If i'm missing something blatantly obvious, sorry, i'm not used to messing with lilo, and I'm still learning about linux in general)

Simon Bridge 07-07-2007 03:09 AM

Most folk resort to a live distro around now.

You can check the partitions with fdisk -l
You can check the kernel by looking in /boot ... all those numbers on the filenames are a bit of a hint.

You can look up example lilo.conf files online or in the lilo man page.

Let me know where you hit trouble.

Road_map 07-07-2007 03:19 AM

Boot from your Slackware 12.0 install DVD (CD 1) and type at boot prompt:
Code:

hugesmp.s root=/dev/sda2 rdinit= ro
After booting, you can login as root and run
Code:

liloconfig
choose "expert" mode and read carefully all screen's informations.


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