LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2004, 12:55 PM   #1
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Rep: Reputation: 30
help getting lilo working


lilo won't work at all, i'm installing it onto MBR and when i boot all i get is "L" and nothing else, i even used the slackware install script to try and do it

here is my lilo.conf file

-----------start of lilo.conf-------
Warning: /dev/hde is not on the first disk
Added Linux-2.6 *
root@mr-slack:/etc# cat lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hde
#compact # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
#just a bunch of boring comments
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
#--its not the kernel or path to it because
#--i have tested the kernel, and changing the path to the kernel in /boot doesn't help
image = /usr/src/linux/arch/i386/boot/bzImage
root = /dev/hde2
label = Linux-2.6
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
---------end of lilo.conf-------

does anyone have a clue as to what is going wrong, i had it working on this disk before, i might have installed lilo from another disk though, the drive is a 80gb maxtor and using a promise sata controller if that makes a difference

the only thing i get when install lilo onto the MBR is it says the hde isn't the first disk
 
Old 01-27-2004, 02:00 PM   #2
muah
Member
 
Registered: Aug 2003
Location: Europe
Distribution: Slackware (current)
Posts: 228

Rep: Reputation: 33
Just an idea,
That warning that /dev/hde is not the first disk is probably there to remind u to change boot sequence in BIOS.
 
Old 01-27-2004, 02:23 PM   #3
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
thats what i thought, its not a real error, and my bios is set right so thats not the problem
 
Old 01-27-2004, 02:46 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
How many drives do you have installed?
Normally, if there is only one drive, it will be called /dev/hda

Whereby you have everything a /dev/hde for some reason.
 
Old 01-27-2004, 03:17 PM   #5
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
i have 2 drives installed+2 cd, one drive is PATA one is SATA, i have 2 PATA controllers for hda through hdd (hdc and hdd are the cd drives), then i have SATA witch is hde through hdj (maybe to hdl i haven't tried the other connectors but there is 4 SATA connectors 2 of witch say raid witch i'm not using)

i know that hde is right though, i have installed lilo onto hda witch i'm using right now to boot hde but i'm going to recompile the kernel so i have to reinstall lilo, so far the only way i can do reinstall lilo is to disconnect the SATA drive (no linux cd i have works with the SATA controller) , boot off a cd, install lilo onto the PATA drive, reconnect the SATA drive and boot using lilo on hda

obviously this is a big pain and i'd like to have lilo on the SATA incase i take out the slow PATA drive and easily reinstall lilo when i recompile the kernel

i have also tried installing lilo onto hda but is screws up in the same way is said above unless i boot off a cd and install lilo from there
 
Old 01-28-2004, 05:38 PM   #6
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
does this help anyone on what might be causing it, i ran lilo -v -v and got a few errors

Code:
root@mr-slack:~# lilo -v -v
LILO version 22.5.7.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2003 John Coffman
Released 20-Aug-2003 and compiled at 19:15:26 on Aug 25 2003.
 
Warning: LBA32 addressing assumed
raid_setup returns offset = 00000000  ndisk = 0
 BIOS   VolumeID   Device
Reading boot sector from /dev/hde
Warning: Kernel & BIOS return differing head/sector geometries for device 0x80
    Kernel: 39693 cylinders, 16 heads, 63 sectors
      BIOS: 1023 cylinders, 255 heads, 63 sectors
pf_hard_disk_scan: ndevs=2
  0300  04AE04AD  /dev/hda
  2100  0AF6962E  /dev/hde
device codes (user assigned pf) = 0
device codes (user assigned) = 0
device codes (BIOS assigned) = 3
device codes (canonical) = 3
Warning: /dev/hde is not on the first disk
mode = 0x03,  columns = 80,  rows = 25,  page = 0
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 17 sectors (0x3200 dataend).
bios_boot = 0x81  bios_map = 0x81  map==boot = 0  map S/N: 0AF6962E
BIOS data check was okay on the last boot
 
Boot image: /boot/linux
Setup length is 6 sectors.
Mapped 3862 sectors.
Added Linux-2.6 *
 
 BIOS   VolumeID   Device
  80    04AE04AD    0300
  81    0AF6962E    2100
Writing boot sector.
/boot/boot.2100 exists - no boot sector backup copy made.
Map file size: 32768 bytes.
RAID device mask 0x0000
root@mr-slack:~#
i see it says the bios and kernel have different disk info, could that be causing it?
 
Old 01-28-2004, 05:50 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
It may help to add lba and a map statement to the lilo.config

-----------start of lilo.conf-------
Warning: /dev/hde is not on the first disk
Added Linux-2.6 *
root@mr-slack:/etc# cat lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hde
#compact # faster, but won't work on all systems.
prompt
timeout = 50
LBA32
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
#just a bunch of boring comments
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
#--its not the kernel or path to it because
#--i have tested the kernel, and changing the path to the kernel in /boot doesn't help
image = /usr/src/linux/arch/i386/boot/bzImage
root = /dev/hde2
label = Linux-2.6
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

# Linux bootable partition config ends
 
Old 01-28-2004, 08:05 PM   #8
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 105

Rep: Reputation: 15
Why use Lilo? Why dont you use GRUB instead?
 
Old 07-03-2004, 02:19 PM   #9
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Can anyone help me out with a similar problem? My problem is quite the opposite:

I am supposed to get the message "Warning: /dev/hde is not on the first disk", but all I get is the responce saying:
*WindowsXP
Linux-2.6.7
Linux-2.4.26
Linux-original

The only time I get the warning is when I boot off of the CD-ROM, otherwise I never get it, and that's something that I need. I want to install LILO on my hde's MBR because I can boot off of it, leaving HDA's free so I can boot into Windows incase anything happens to my Linux drive and I have to swap it out (Meaning I wouldn't need a Windows boot disk to get into Windows with my setup). Here's my /etc/lilo.conf:

Code:
~$ cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdd=ide-scsi acpi=on"
boot = /dev/hde
#compact        # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
vga = 773
# 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/hda2
  label = WindowsXP
  table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.7
  root = /dev/hde3
  label = Linux-2.6.7
  read-only #
image = /boot/vmlinuz-2.4.26-custom
  root = /dev/hde3
  label = Linux-2.4.26
  read-only #
image = /boot/vmlinuz
  root = /dev/hde3
  label = Linux-original
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
rob@4300:~$
Edit:

I thought it might help to know my drive layout:
Device Boot Start End Blocks Id System
/dev/hda1 1 7 56196 16 Hidden FAT16
/dev/hda2 * 8 1919 15358140 7 HPFS/NTFS
/dev/hda3 1920 9729 62733825 f W95 Ext'd (LBA)
/dev/hda5 1920 4667 22073278+ 7 HPFS/NTFS
/dev/hda6 4668 7107 19599268+ 7 HPFS/NTFS
/dev/hda7 7108 8523 11373988+ 7 HPFS/NTFS
/dev/hda8 8524 9729 9687163+ 7 HPFS/NTFS

/dev/hdb is all Windows NTFS partitions, pretty much like hda
/dev/hdc & /dev/hdd are DVD and CD-RW drives, respectively

Device Boot Start End Blocks Id System
/dev/hde1 1 62 497983+ 82 Linux swap
/dev/hde2 63 124 498015 83 Linux
/dev/hde3 125 4865 38082082+ 83 Linux

/dev/hda2 is my WindowsXP's C:\ partition, and I'm booting off of the MBR of hde

Last edited by r_jensen11; 07-03-2004 at 02:28 PM.
 
  


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
Graphical LILO not working apocolipse Slackware 3 11-23-2004 12:15 AM
Lilo timeout not working? BajaNick Linux - General 2 09-07-2004 09:36 PM
Lilo Configuration not working wcn Linux - Software 9 05-03-2004 07:37 AM
Lilo/Grub not working cozzyczt Linux - General 3 09-07-2002 07:54 AM
lilo not working gadhiraju Linux - General 6 04-29-2001 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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