LinuxQuestions.org
Review your favorite Linux distribution.
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 03-15-2007, 07:13 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
LILO Config Problem


Hello,

I installed LILO as my boot manager and it is on the MBR. I configured the /etc/lilo.conf file to add my two BSD's that I boot and to rearrange the sequence so that Windows would boot first. I was sucessful in changing the sequence, but one of my BSD's wouldn't load. I boot both FreeBSD and NetBSD. FreeBSD worked, but NetBSD didn't. I had everything working with GRUB, but since I am not using Fedora anymore (Fedora was nice and configured everything automatically), I chose to go to LILO. My lilo.conf file reads:

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
#compact        # faster, but won't work on all systems.
prompt
timeout = 50
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda7
  label = Slackware
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
#FreeBSD bootable partition config begins
other = /dev/sda3
  label = FreeBSD
  table = /dev/sda
#FreeBSD bootable partition config ends
#NetBSD bootable partition config begins
other = /dev/sda5
  label = NetBSD
  table = /dev/sda
#NetBSD bootable partition config ends
When I go to write the changes to disk, I get the following error message:

Code:
root@localhost:/# lilo -v
LILO version 22.7.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2005 John Coffman
Released 17-Sep-2005 and compiled at 00:33:53 on Aug  8 2006.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda
Using MENU secondary loader
Calling map_insert_data

Boot other: /dev/sda1, on /dev/sda, loader CHAIN
Added Windows *

Boot image: /boot/vmlinuz
Added Slackware

Boot other: /dev/sda3, on /dev/sda, loader CHAIN
Added FreeBSD

Boot other: /dev/sda5, on /dev/sda, loader CHAIN
Fatal: Partition entry not found.
root@localhost:/#
Any suggestions on how to correct this, as I really want to be able to boot back into NetBSD.
 
Old 03-15-2007, 07:49 PM   #2
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
In order to list your partitions, issue as root fdisk -l /dev/sda or take a nicer look at them with cfdisk /dev/sda
 
Old 03-16-2007, 01:15 AM   #3
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Yes, what you should do is figure out which partition is the main partition for NetBSD, then change

Code:
other = /dev/sda5
to
Code:
other = /dev/sda[the_correct_partition_number]
then run LILO from the prompt to reinstall it.

Hope this helps!

David
 
Old 03-16-2007, 08:30 AM   #4
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

But /dev/sda5 is the main and only partition for NetBSD. This is the output of #fdisk -l /dev/sda:

Code:
root@localhost:/# fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        8121    65231901    7  HPFS/NTFS
/dev/sda2            8122        9014     7173022+   7  HPFS/NTFS
/dev/sda3   *        9015       11625    20972857+  a5  FreeBSD
/dev/sda4           11626       19457    62910540    5  Extended
/dev/sda5           11626       14236    20972826   a9  NetBSD
/dev/sda6           14237       14497     2096451   82  Linux swap
/dev/sda7           14498       19457    39841168+  83  Linux
root@localhost:/#
 
Old 03-16-2007, 08:49 AM   #5
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Hmmm

Im having a problem that looks like yours with my windows partition... after formating and reinstalling it now I cant boot it anymore even after changing the path to the right partition ... Im starting to thing that the problem is about the partition being located in a logical block...

im my situation windows is now installed on /dev/hda5 not on /dev/hda1 and Im not getting how to make my lilo boot that... all I get is a disk error when boot my computer ... Im doing some dig to try to find some answers, anything I found I give you a hint (and of course if the same happen here I will be watching lol


[ ]'s
 
Old 03-16-2007, 09:16 AM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
maginotjr: windows needs to be in hda1. however the boot loader can trick it( just look at the example conf files in /usr/doc )
it could be that i confuse lilo and grub here.


JMJ_coder:
try to remove the "table" entry, just for fun.

if you still have problems, just use grub. it's in the "extra" folder.
 
Old 03-16-2007, 09:24 AM   #7
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Quote:
Originally Posted by erklaerbaer
maginotjr: windows needs to be in hda1. however the boot loader can trick it( just look at the example conf files in /usr/doc )
it could be that i confuse lilo and grub here.


JMJ_coder:
try to remove the "table" entry, just for fun.

if you still have problems, just use grub. it's in the "extra" folder.

Well ... I tryed already without the table, at this moment im not using it anymore, and tryed make a new System.map but now all I get is Loading Windows...

Im giving some look at the Docs right now... lets see if I found about this "how to trick" the hda1 issue...
 
Old 03-16-2007, 09:41 AM   #8
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by erklaerbaer
JMJ_coder:
try to remove the "table" entry, just for fun.
I edited the file and removed the table entry and it worked. Why did that cause a problem?

Thank you for your help.
 
Old 03-16-2007, 01:04 PM   #9
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Well ... after reading some info in the doc files of lilo I found something that maybe have to do with the actual problem ... ( at least is what I came to)

Lilo looks for the boot at the fisical partitions not in the logical, if instead of use lilo in mbr we use dos-mbr with lilo in the right partition it could be possible to load windows without this problem ... But this is looking not only too complicated but the most important is looking somekind of danger and im not in the mood to loose my files so Im going to the option number 3: Install Grub.


Welll ... this was what I was able to understand, if Im wrong or if someone have the answer please share with us ...

[ ]ś

PS: Im posting my lilo.conf file to see if the problem is something Im not seeing.

Code:
 
append="/dev/hdc=ide-scsi"
boot = /dev/hda
message = /boot/xray-blue.boot
prompt
timeout = 150
compact
change-rules
  reset
vga = 773
image = /boot/vmlinuz
  root = /dev/hda2
  label = Linux
  read-only
image = /boot/vmlinuz-2.6.12.1
  root = /dev/hda2
  label = linux2.6.12.1
  read-only
image = /boot/vmlinuz-2.4.29
  root = /dev/hda2
  label = linux-2.4
  read-only
  other = /dev/hda5
# before I have the path /dev/hda1 and I have tested with the 
# Table parm ... 
  label = Windows

Last edited by maginotjr; 03-16-2007 at 01:07 PM.
 
Old 03-16-2007, 03:27 PM   #10
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
well after trying many things with lilo I gave up and installed grub ... much better and now its working perfect.


[ ]'s
 
  


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
LILO config problem dave111 Slackware - Installation 7 09-01-2004 09:21 PM
lilo config edit problem lestoil Linux - Newbie 2 05-03-2004 03:31 PM
Seems like small lilo config problem...maybe more devNul73 Linux - Newbie 2 04-06-2004 06:33 PM
lilo and grub config problem slyguyr3 Linux - Software 3 11-07-2003 12:58 PM
Lilo config problem jackopa Linux - General 2 03-18-2002 10:57 PM


All times are GMT -5. The time now is 07:11 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