LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cannot run liloconfig (https://www.linuxquestions.org/questions/slackware-14/cannot-run-liloconfig-614897/)

dohpaz 01-20-2008 12:40 AM

cannot run liloconfig
 
I just finished installing Slackware 12. For some reason the installer didn't run liloconfig. After booting I tried to run liloconfig and it won't run just returns to the prompt.

I can boot using the install cdrom and entering:
hugesmp.s root=/dev/hda2 rdinit= ro

I tried installing lilo manually by creating a /etc/lilo.conf and running /sbin/lilo -M /dev/hda. I also set the /dev/hda2 partition active.

Now when I boot I get: "no boot signatures in partition"

fdisk -l: I installed slackware to /dev/hda2 and my hda3 is /home
Code:

Device Boot      Start        End      Blocks  Id  System
/dev/hda1              1        125    1004031  82  Linux swap
/dev/hda2  *        126        2558    19543072+  83  Linux
/dev/hda3            2559        3648    8755425  83  Linux


here is a copy of my /etc/lilo.conf:

Code:

boot = /dev/hda
#
map = /boot/.map
#
install = menu               

menu-scheme=wm:rw:wm:Wm
menu-title=" Slackware 12  "
#
prompt
timeout=150
#
delay=30
#
read-only

image=/boot/vmlinuz
        label=Slackware 12
        append="reboot=warm"
        root=/dev/hda2

Should "boot = /dev/hda" be "boot = /dev/hda2"?

AceofSpades19 01-20-2008 01:01 AM

Here is my lilo config file
Code:

boot="/dev/hda"
lba32
prompt
timeout="100"
vga="773"
root=/dev/hda4
default=2.6.21


image="/boot/vmlinuz-huge-smp-2.6.21.5-smp"
        label="Linux"
        root="/dev/hda4"
        read-only
        vga="773"


dohpaz 01-20-2008 01:17 AM

Thanks for posting your lilo.conf. I copied yours exactly except I changed it from /dev/hda4 to /dev/hda2. Still no luck I still get the:

"no boot signatures in partition"


my current lilo.conf:

Code:


boot="/dev/hda"
lba32
prompt
timeout="100"
vga="773"
root=/dev/hda2
default=Linux

image="/boot/vmlinuz-huge-smp-2.6.21.5-smp"
        label="Linux"
        root="/dev/hda2"
        read-only
        vga="773"


Alien_Hominid 01-20-2008 01:20 AM

Where did you install lilo?

dohpaz 01-20-2008 01:22 AM

/sbin/lilo -M /dev/hda

Alien_Hominid 01-20-2008 01:34 AM

Quote:

Originally Posted by dohpaz
/sbin/lilo -M /dev/hda

Sorry, I missed that before.

liloconfig is just a shell script. It should have been installed with lilo. Check if it is not empty and that you have ncurses installed.

Code:

# which liloconfig
  liloconfig: /sbin/liloconfig
# cat /sbin/liloconfig|most

Code:

# ls /var/log/packages/ | grep ncurses

dohpaz 01-20-2008 01:49 AM

Thanks for the help Alien_Hominid,

The script does exist and I did go through the liloconfig script to try and see where its failing at...I'm kinda noobish at reading scripts though so I didn't understand to much...

I reran lilo again without the -M switch..."/sbin/lilo"
and that fixed it. Lilo loads and system boots.

I still wanna know why liloconfig wouldn't run though!

dohpaz 01-20-2008 01:51 AM

btw
Code:

ls /var/log/packages/ | grep ncurses
ncurses-5.6-i486-2


dohpaz 01-20-2008 02:39 AM

I was able to figure out that the liloconfig script is exiting at this point :

Code:

if [ -r $T_PX/vmlinuz ]; then
  KERNEL=/vmlinuz
elif [ -r $T_PX/boot/vmlinuz ]; then
  KERNEL=/boot/vmlinuz
elif [ -r $T_PX/usr/src/linux/arch/$ARCHTYPE/boot/bzImage ]; then
  KERNEL=/usr/src/linux/arch/$ARCHTYPE/boot/bzImage
elif [ -r $T_PX/usr/src/linux/arch/$ARCHTYPE/boot/zImage ]; then
  KERNEL=/usr/src/linux/arch/$ARCHTYPE/boot/zImage
else
        exit 99 # no kernel?  guess you couldn't read.  bye bye.
fi

exit 99...what was I supposed to read?

Alien_Hominid 01-20-2008 03:18 AM

Do you have vmlinuz symlink to your kernel in /boot?

dohpaz 01-20-2008 11:26 AM

Thanks Alien_Hominid that was the clue I needed!

I checked and /boot/vmlinuz was pointing to a speakup.s kernel which wasn't even in boot! I think I installed using the speakup.s kernel. Why didn't it get copied too?

Anyways I deleted the link and recreated it too point to vmlinuz-huge-2.6.21.5

Now liloconfig works! Yay you did it Alien_Hominid! You're the best!:D


All times are GMT -5. The time now is 07:56 PM.