LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-20-2008, 12:40 AM   #1
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Rep: Reputation: 16
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"?
 
Old 01-20-2008, 01:01 AM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 57
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"
 
Old 01-20-2008, 01:17 AM   #3
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
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"
 
Old 01-20-2008, 01:20 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Where did you install lilo?
 
Old 01-20-2008, 01:22 AM   #5
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
/sbin/lilo -M /dev/hda
 
Old 01-20-2008, 01:34 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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

Last edited by Alien_Hominid; 01-20-2008 at 01:35 AM.
 
Old 01-20-2008, 01:49 AM   #7
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
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!
 
Old 01-20-2008, 01:51 AM   #8
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
btw
Code:
ls /var/log/packages/ | grep ncurses
ncurses-5.6-i486-2
 
Old 01-20-2008, 02:39 AM   #9
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
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?
 
Old 01-20-2008, 03:18 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Do you have vmlinuz symlink to your kernel in /boot?
 
Old 01-20-2008, 11:26 AM   #11
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
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!
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot load Windows after liloconfig mmarkvillanueva Slackware 3 10-22-2005 04:09 AM
is there sthg like liloconfig in Free.bsd ? Dominik *BSD 2 01-12-2004 10:24 PM
liloconfig won't start synaptical Linux - General 1 01-12-2004 03:41 PM
liloconfig doesn't do anything rheza Linux - Newbie 0 04-08-2003 04:50 PM
liloconfig esael Slackware 3 08-18-2002 11:48 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration