LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-19-2007, 06:50 PM   #1
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Why would LILO randomly fail?


I install LILO; alls fine, but at some point LILO will only boot up to "LIL" and I have to use the rescue disk, uninstall it twice, then reinstall it (yes, it's happened that many times).

Here is my setup:
Code:
/dev/hda
hda1 NTFS

/dev/hdb
hdb1 NTFS
hdb2 VFAT
hdb3 reiserfs
I used to have it setup to where /boot/map was on hdb3, but now I got ntfs-3g and put it on hda1.
 
Old 04-20-2007, 08:34 AM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
randomly failing ususally points to hardware errors.
have you something unusual in your lilo.conf? what does lilo-v output?

have a look at the official lilo site http://lilo.go.dyndns.org/ ,too and see if your problem persists with the newest version.
 
Old 04-20-2007, 12:13 PM   #3
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Here is my lilo.conf

Code:
#disk="/dev/hdb"
#bios=0x81
map="/mnt/Windows/boot/map"

#disk=/dev/hda
#    	bios=0x81
#disk=/dev/hdb
#	bios=0x80

boot=/dev/hda

LBA32
compact

prompt
timeout="150"

default=Slackware
vga="773"

#Start Slackware Config
image="/boot/vmlinuz"
	label="Slackware"
	initrd="/boot/initrd.gz"
	root=/dev/hdb3
#End Slackware Config

# Windows bootable partition config begins
other = /dev/hda1
	label="Windows"
	#boot-as=0x80
	table = /dev/hda
# Windows bootable partition config ends
here is the output of 'lilo -v'

Code:
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.

Reading boot sector from /dev/hda
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/vmlinuz
Mapping RAM disk /boot/initrd.gz
Added Slackware *

Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Added Windows
I'll try updating to 22.8 if it's stable enough
 
Old 04-20-2007, 06:46 PM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
compact

might want to rem the compact call "#compact" can cause strange problems.
 
Old 04-21-2007, 04:23 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by davidguygc
I install LILO; alls fine, but at some point LILO will only boot up to "LIL" and I have to use the rescue disk, uninstall it twice, then reinstall it (yes, it's happened that many times).

Here is my setup:
Code:
/dev/hda
hda1 NTFS

/dev/hdb
hdb1 NTFS
hdb2 VFAT
hdb3 reiserfs
I used to have it setup to where /boot/map was on hdb3, but now I got ntfs-3g and put it on hda1.
LILO works by saving the disk address of your kernel at LILO time. When you boot your system, LILO doesn't need to know how to access filesystems like ext2, reiserfs, etc. The problem is, sometimes your kernel can move. Some filesystems are more likely than others to move things around in the process of self-defragging and managing space.

I think you're experiencing a normal consequence of how LILO works. I found it almost intolerable with JFS, an intermittent problem with reiserfs and almost never a problem with ext2/3.

I would continue using the compact option as it increases booting speed a lot and I don't think it's related to your problem.

Last edited by Randux; 04-21-2007 at 04:25 PM.
 
Old 04-23-2007, 11:11 AM   #6
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
OK, how can I change the FS w/o destroying the data?
 
Old 04-23-2007, 01:49 PM   #7
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
You can't.
 
Old 04-23-2007, 02:03 PM   #8
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Quote:
Originally Posted by Randux
LILO works by saving the disk address of your kernel at LILO time. When you boot your system, LILO doesn't need to know how to access filesystems like ext2, reiserfs, etc. The problem is, sometimes your kernel can move. Some filesystems are more likely than others to move things around in the process of self-defragging and managing space.

I think you're experiencing a normal consequence of how LILO works. I found it almost intolerable with JFS, an intermittent problem with reiserfs and almost never a problem with ext2/3.

I would continue using the compact option as it increases booting speed a lot and I don't think it's related to your problem.
are you sure? i think that would be kind of stupid of the developers of those filesystems..

davidguyc: it's worth a try, to either use grub and see if the problem persists or mail the lilo guy (with the information he requests on his homepage, of course)
 
Old 04-23-2007, 03:25 PM   #9
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Well, LILO crashed again, and I can't get it up and running again. Where can I go to create a new Live CD? The one I have, it's kernel is too old, and I would like to possibly put my current kernel on a cd, as well as ntfs-3g.
 
Old 04-23-2007, 10:51 PM   #10
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
I never had a problem with lilo crashing... with exception of that one time when I wiped my linux partition.... it still booted lilo and gave all the options for about a month after that. Then one day it finally realized that its config file was missing.... Also, with my slack 11 install I do notice that once in a while when I boot it just sits there, before it shows lilo, with that stupid little cursor on the top left. Then I shut it off, boot it up again, and its fine. Just something to kinda laugh at I guess?

Later,
DragonM15
 
Old 04-23-2007, 11:45 PM   #11
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Rep: Reputation: 16
Get the diagnostic utility for your hard drive. UBCD is great it has
most of them on it. All your files live on the hard drive so check its integrity first.
 
Old 04-24-2007, 05:15 AM   #12
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by erklaerbaer
are you sure? i think that would be kind of stupid of the developers of those filesystems..

davidguyc: it's worth a try, to either use grub and see if the problem persists or mail the lilo guy (with the information he requests on his homepage, of course)
Yes, I'm sure. It works pretty well with ext2/ext3 which is probably what everybody was using when LILO was first written. On those filesystems, the kernel doesn't seem to move around very much. I've had one problem with LILO in about six months using ext2/3. It's annoying but easy enough to fix.

It's really an advantage to LILO when you think about it. GRUB and other file-system-aware bootloaders have to have coded-in support for every filesystem they will allow you to boot from because they run standalone at boot-time (before Linux is running). LILO ("LInux LOader") uses the file system support built into Linux- it gets set up while Linux is running so it can just do normal file IO from a c language program without having to care about what kind of filesystem you're using. As soon as Linux supports a new filesystem (XFS, JFS, whatever) LILO instantly works, while GRUB has to have code specifically to read the filesystem without Linux running. Like most things in the programming world, it's a tradeoff.

Use the Slackware installer disk 1 to boot into your system, chroot, then run LILO.

P.S. And see the following post which shows another advantage of LILO's design- you can toast a config file or delete the whole OS and filesystem you ran LILO from and it will still work

How to change your filesystem: you have to have some extra space on your drive. Create a partition, format it as ext2 (or ext3) then copy from old to new. Once you're sure everything on the new system is valid, delete the old system, make a new ext2/3 filesystem there, and copy everything back.

Last edited by Randux; 04-24-2007 at 05:18 AM.
 
Old 04-24-2007, 05:17 AM   #13
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by DragonM15
I never had a problem with lilo crashing... with exception of that one time when I wiped my linux partition.... it still booted lilo and gave all the options for about a month after that. Then one day it finally realized that its config file was missing.... Also, with my slack 11 install I do notice that once in a while when I boot it just sits there, before it shows lilo, with that stupid little cursor on the top left. Then I shut it off, boot it up again, and its fine. Just something to kinda laugh at I guess?

Later,
DragonM15
Because LILO does all his setup when you run LILO from the command line, he doesn't read configs when booting. He creates a file and saves the disk address of it and that's all he needs. That's why you can delete a config (or even the whole OS and filesystem that you used LILO from) and as long as nothing else changes, you can still boot all your other systems.
 
Old 04-24-2007, 08:14 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I would make sure that the hardware is not the problem. Get the diagnostics for your drive. Run them!

As stated the 'UBCD' is another source for diagnosing this type of problem. It looks like the 'IPL' is your problem, you could use 'ranish' to make sure that the 'MBR' is set to 'standard IPL'.

It really looks like a hardware problem!
 
Old 04-25-2007, 11:59 AM   #15
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Well, if the hardware is the problem (God forbid), I guess it doesn't matter, I am getting the last bit of parts of my new computer in the mail tomorrow. Where can I go exactly to find out how to do hardware diagnostics. I plan on using one of my old HDD's as a backup drive, and I don't want to have a backup drive that's about to fail.
 
  


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 randomly stops working davidguygc Linux - Hardware 1 04-15-2007 10:21 PM
Bootloader problems (both grub & lilo fail?) Method9455 Debian 2 04-15-2007 08:18 PM
Fail installing Lilo larienz Slackware 7 11-12-2006 08:54 PM
lilo caused to fail NFS statd shanenin Linux - Software 2 09-04-2003 08:35 PM
Lilo, but fail to load my windoze 2000 cc208 Linux - Software 2 02-19-2001 03:07 PM

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

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