LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2007, 06:47 PM   #16
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30

I have the same problem, with a few deviations:
1. I put LILO on a diskette (about a year ago I put it on the MBR, had the same problem and couldn't use my computer for a week. Burn me once shame on you, burn me twice...)
2. My error is L with 07 repeating
3. The error code pops up before LILO's menu shows up.

Would I follow the same guidelines to fix the problem?

Thanks,
David
 
Old 03-05-2007, 07:01 PM   #17
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I would just restore Lilo. It does go pear shape sometimes.

Task B3 of the last link in my signature refers.

Last edited by saikee; 03-06-2007 at 07:35 AM.
 
Old 03-05-2007, 07:07 PM   #18
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
I am using Slackware 11's installer, and I have tried to reinstall LILO onto the diskette at least half a dozen times, both simple install and expert mode. I have Linux on I believe the master drive (I just switched them before I installed LILO, power cords werent long enough as is). Windows is on the other drive.

I remember having this error a long time ago and I can't remember for the life of me how I fixed it.
 
Old 03-05-2007, 07:44 PM   #19
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you physically alter the ribbon cable for the Linux then the partition reference would change and your Linux should not boot.

You must update the new partition reference in

(1) /etc/lilo.conf.
(2) /etc/fstab

and then restore Lilo again.

For example if Linux was in the master drive its partitions would be in hda. When plugged as a slave the Linux will regard the same disk as hdb.
 
Old 03-05-2007, 08:26 PM   #20
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Well, since I posted that, I have been back to my computer, and the old master is still the master, and the old slave is still the slave.

Now when you refer to task B3, does this automatically know that my lilo is on a floppy? I have a feeling that isnt the case.

Thanks,
David
 
Old 03-06-2007, 03:17 AM   #21
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Task B3 is to use any Live CD to restore Lilo into the MBR.
 
Old 03-06-2007, 04:42 PM   #22
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
OK, I have two main questions, and apparently I need it spelled out for me lol.

Here is my Lilo (With the useless stuff cut out)
Code:
# Start LILO global section
boot="/dev/hdb3"
message = /boot/boot_message.txt
#prompt
#timeout="0"
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga="795"
...
# Windows bootable partition config begins

image="/boot/vmlinuz"
	root="/dev/fd2"
	label="Linux"
  read-only
# Linux bootable partition config ends
1. Now then, if I want to have LILO on a floppy, and my root partition is /dev/hdb3?

2. Once I have lilo.conf corrected, how would I put it on the floppy? Would I simply put it on the floppy and its good to go?

Thanks,
David
 
Old 03-06-2007, 05:06 PM   #23
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Think you got a wrong idea about Lilo.

The "root=" statement is a hard disk address for Lilo to load the root of the Linux into the memory. Therefore you can't have root=/dev/fd2 because a floppy is too small to store the root filing system of the entire Linux.

I think you could put root=/dev/hdb3 if that is the partition of "/" of your Linux.

To put Lilo on a floppy you do it with the command
Code:
lilo -b /dev/fd0
The above will install Lilo into the floppy that boot up the Linux in hdb3.
 
Old 03-06-2007, 05:13 PM   #24
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
ok, thanks a lot for the help, I don't think I put that fd2 on there... but sure enough it's in the lilo.conf. Who knows, I may just be going senial at a very early age lol.
 
Old 03-06-2007, 05:22 PM   #25
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Lilo has been serving many old kernels and it is true one can put a kernel into a floppy in the older days and has the whole system in a floppy (no GUI).

Nowadays it is a lot easier to boot up Lilo in a floppy and let it go into the hard disk to load the kernel and the root of the Linux.
 
Old 03-07-2007, 03:21 AM   #26
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Well I still can't get it to load right, I either get a 99 error code or a 04 code.

I get these warnings when I install LILO:
"Warning: '/proc/partitions' does not exist, disk scan bypassed"
"Warning: The boot sector and map file are on different disks"

This is my LILO file now:
Code:
disk=/dev/hdb bios=0x80
vga="795"
image="/boot/vmlinuz"
root="/dev/hdb3"
label="Linux"
read-only
Whenever I put
Code:
boot="/dev/fd0"
it says that it is ignoring it. I also put
Code:
disk=/dev/hdb bios=0x80
in there because the Linux drive is the second drive, and I remember that will have BIOS treat it like the first one.

What am I doing wrong? What I don't understand is why the LILO config program gives the option to install LILO onto a floppy, but it never works.
 
Old 03-09-2007, 07:33 AM   #27
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You are doing things I do not know.

I would have my lilo.conf as
follow
Code:
boot="/dev/hdb3"
vga="795"
image="/boot/vmlinuz"
root="/dev/hdb3"
label="Linux"
read-only
and then issue the terminal command
Code:
lilo -b /dev/fd0
 
Old 03-09-2007, 12:16 PM   #28
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Well I've gotten further, all the way past the LILO menu, but it still hangs at
Code:
boot: Loading Linux............................
Here is a summary of what is going on.

I am booting from a floppy (/dev/fd0). My Slackware partition is /dev/hdb3. I am using the vmlinuz kernal.

Here is my custom-made lilo.conf (which is in /etc/lilo.conf)
I have LILO on a floppy so I can boot Linux immediately.

Code:
disk=/dev/hdb #this line and 
bios=0x80     #this line tell BIOS to treat hdb as the master                                    drive
map=/mnt/floppy/map #tells LILO where to put the map file (I don't know what that is, just know I need it
default=Linux #which image to boot automatically
boot=/dev/fd0 #which device to put all of this on, the floppy
prompt        #brings up the prompt
timeout=0     #I have it set up just to boot the default image instead of waiting for input
change-rules  #don't know what this is for
reset         #this goes along with the line above, I just see it in all the sample lilo.conf files
#Start Linux partition
image=/boot/vmlinuz 
root=/dev/hdb3 
initrd=/boot/initrd.gz #I think this is the problem, it should start loading everything after saying "Loading Linux" and that is what this is for 
label=Linux 
read-only
#End Linux partition
It gives me no warnings when I run /sbin/lilo. When I then reboot, it goes all the through the menu then just hangs.

I compiled the initrd.gz by typing in
Code:
mkinitrd -c -f reiserfs -r /dev/hdb3
So I think my problem is I may be building initrd.gz wrong. Any ideas?

Thanks,
David
 
Old 03-19-2007, 12:21 AM   #29
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
Hallelujah! Just had to switch disk to 0x81, Thanks a lot yall!
 
  


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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
lilo ntldr missing after running lilo after slackware install SeriousArnoud Slackware 1 08-16-2005 10:07 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 05:50 PM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration