LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-17-2004, 03:15 AM   #1
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
lilo problem - no valid boot signature


Hi,

I've just finished installing SuSE Professional 9.1 on my machine (yay for free Novell give-aways ), just to give it a try. I don't want to use grub (which is default for SuSE) so I'm trying to get it up and running with lilo on my Slackware 10.0 installation. I've updated my lilo.conf, but when running lilo, I get:

Code:
Added Slackware *
Added testing
Added Gentoo-x86-64
Fatal: First sector of /dev/hda8 doesn't have a valid boot signature
I don't quite understand, because I activated the boot flag on hda8:

Code:
$ fdisk -l /dev/hda

Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       83784    42226821    7  HPFS/NTFS
/dev/hda2           83784      122544    19535040   83  Linux
/dev/hda3          122544      124520      996030   82  Linux swap
/dev/hda4          124520      238202    57295822+   5  Extended
/dev/hda5   *      124520      125014      248976   83  Linux
/dev/hda6          125014      163790    19543041   83  Linux
/dev/hda7          163790      202550    19535008+  83  Linux
/dev/hda8   *      202551      238201    17968072+  83  Linux
My lilo.conf looks like this:

Code:
boot = /dev/hda
prompt
timeout = 50
vga=791
image = /boot/vmlinuz
  root = /dev/hda2
  label = Slackware
  read-only
image = /usr/src/linux/arch/i386/boot/bzImage
  root = /dev/hda2
  label = testing
  read-only
other = /dev/hda5
  label = Gentoo-x86-64
  loader = /boot/chain.b
other = /dev/hda8
  label = SuSE
  loader= /boot/chain.b
other = /dev/hda1
  label = Windows
  table = /dev/hda
I've also tried:
Code:
lilo -P ignore
and
Code:
lilo -F
but to no avail. Does anyone know how to correct this situation? Many thanks in advance!
 
Old 08-17-2004, 06:33 AM   #2
sygin
Member
 
Registered: May 2004
Posts: 36

Rep: Reputation: 15
Unhappy

Hi,

I had the same problem. I ended up installing Win98 on the boot drive and then reinstalling Linux. This worked - I could not get any help on this issue.

Good Luck
Sygin
 
Old 08-17-2004, 07:16 AM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
boot = /dev/hda
prompt
timeout = 50
vga=791
image = /boot/vmlinuz
root = /dev/hda2
label = Slackware
read-only
image = /usr/src/linux/arch/i386/boot/bzImage
root = /dev/hda2
label = testing
read-only
other = /dev/hda5 ##
label = Gentoo-x86-64
loader = /boot/chain.b ### error ? ##
other = /dev/hda8 ##
label = SuSE
loader= /boot/chain.b ### here is your error ###
other = /dev/hda1
label = Windows
table = /dev/hda


it almost certainly does not get booted using the chainloader - the same for Gentoo...at least you do not have to specify that

you need to give the image-location - like you did with yout kernel

for all linux-kernels use something like this:

image = /where-it-is
root = /dev/hdxx
label = NAME

maybe - if you want:

read-only


you need to copy all kernel-images ... to the filesystem, which is actually mounted - that is how I do it
I have all my kernels in the same directory (in /boot) so lilo can find them when you run it
(lilo -v) - of course they have to be on the other system too - but just the one which belongs to each system

I may be wrong - but this is how I do it

as an example - here is my /etc/lilo.conf:

boot=/dev/hda

map=/boot/map-bmp
install=/boot/boot-bmp.b

bitmap=/boot/ins64a.bmp
bmp-colors=14,11,,15,9,0
bmp-table=21,287p,2,4,175p
bmp-timer=73,29,12,8,0

prompt
timeout=50


image=/boot/linux-2.6.7
label=linux-2.6.7
root=/dev/hda2
append="video=aty128fb:1024x768"
read-only


#image=/boot/bzImage
#label=linux-2.6.5
#root=/dev/hda2
#append="video=aty128fb:1024x768"
#read-only


image=/boot/lfskernel
label=linux-2.4.24
root=/dev/hda2
append="video=aty128fb:1024x768"
read-only


other=/dev/hda1
label=Windows-XP
 
Old 08-17-2004, 08:45 AM   #4
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Original Poster
Rep: Reputation: 30
It's not quite working yet, but I'm getting there. TY!
Funny thing, the Gentoo install boots perfectly...
 
Old 08-17-2004, 09:27 AM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try with:

image = /suse/kernel (modify this to suit the kernel location)
root = /dev/hda8
label = Suse
read-only
 
Old 08-17-2004, 02:06 PM   #6
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Original Poster
Rep: Reputation: 30
It sort of works, until I get a kernel panic:

Cannot mount root fs on /dev/hda8

I can boot it using the SuSE DVD, though. I don't quite grasp what's going on. I guess I'm just going to can the DVD.

Edit: ignore that last remark. Any more ideas?

Last edited by djbanaan; 08-17-2004 at 02:07 PM.
 
Old 08-17-2004, 06:58 PM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
what does your /etc/lilo.conf look like now?

remember - you need all the kernel images to be accessible to lilo when you run "lilo -v" - this means they need to be in the location you give in /etc/lilo.conf and the location needs to be on a mounted disk-partition - that is why I told you that I keep all my images on the filesystem

1.) where they belong
2.) also on the /boot partition (or directory - if you have no separate /boot partition) of the device your / filesystem is on when you run "lilo -v"

(suses kernel is only in suses partition - gentoo only in gentoos - but for lilo...you need to have copies of all images also in /boot of your Slackware...)

also - it is very uncommon - but it still works ( only until you do your next kernel-compile ...)
to use an kernel image like you do -

image = /usr/src/linux/arch/i386/boot/bzImage

you did not copy this image to /boot but instead referenced it by its location after kernel-compilation
this image will not exist anymore, if you recompile your kernel - or do make clean or something in the kernel source-directory

copy it to where it belongs (/boot) and give it a descriptive name - which you then reference in /etc/lilo.conf

man lilo.conf will tell you more...
 
Old 08-18-2004, 03:15 AM   #8
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Original Poster
Rep: Reputation: 30
boot = /dev/hda
prompt
timeout = 50
vga=791
image = /boot/vmlinuz
root = /dev/hda2
label = Slackware
read-only
image = /usr/src/linux/arch/i386/boot/bzImage
root = /dev/hda2
label = testing
read-only
other = /dev/hda5
label = Gentoo-x86-64
loader = /boot/chain.b
image = /boot/vmlinuz-suse
root = /dev/hda8
label = SuSE
read-only
other = /dev/hda1
label = Windows
table = /dev/hda

Looks like this now. I don't have a separate boot-partition, so here's what I've done:
The suse partition is mounted on /mnt/hda8 so:
cp /mnt/hda8/boot/vmlinuz /boot/vmlinuz-suse
ln -s /mnt/hda8/boot/vmlinuz /mnt/hda8/boot/vmlinuz-suse

That, I think, complies with
Quote:
1.) where they belong
2.) also on the /boot partition (or directory - if you have no separate /boot partition) of the device your / filesystem is on when you run "lilo -v"
If I'm a total tard and I'm reading your post all wrong please let me know!

Quote:
also - it is very uncommon - but it still works ( only until you do your next kernel-compile ...)
to use an kernel image like you do -

image = /usr/src/linux/arch/i386/boot/bzImage
That is only there for when I recompile my kernel and I want to test it before installing it. I keep it in my lilo.conf so I only have to run lilo after a recompile and reboot to test my new kernel and not touch my existing setup. After I've tested it I copy the image over to /boot. As you can see the label says "testing" .
 
Old 08-18-2004, 04:03 AM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
no - I did not see the label "testing" ...

You got me right - sorry for the (a little twisted) explanation.

It should work all right now - if it does not:

maybe suse uses an initrd to boot or your root-filesystem is not compiled into the kernel...

if you are booting using the suse-dvd are you sure you are booting the kernel on your harddisk - and not a kernel which is on the dvd?

that is all I can think of now..
 
Old 08-18-2004, 07:57 AM   #10
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Original Poster
Rep: Reputation: 30
SOB, it works. It was the SuSE ramdisk. Turned out not be Slackware specific after all.
Thank you ever so much!

image = /boot/vmlinuz-suse
root = /dev/hda8
label = SuSE
initrd = /boot/initrd
read-only
 
  


Reply



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
lilo+ not valid boot signature bingbang Linux - Newbie 9 02-13-2011 07:55 AM
Problem with Lilo, /dev/hda1 have no valid bootsector Sonic_Traveler Slackware 8 08-12-2004 09:30 PM
package does not have valid GPG signature amOrpheus Linux - Newbie 3 01-20-2004 06:48 PM
lilo- mem=exactmap not valid in RH8/RH9? dabrown Linux - General 2 04-24-2003 11:59 AM
lilo signature file celtic32 Linux - General 0 08-28-2002 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration