LinuxQuestions.org
Register a domain and help support LQ
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 05-02-2004, 07:27 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Rep: Reputation: 57
Cannot boot from C: after Lilo


I tried installing Lilo.

I have Win98 on hda
Linux on hdb2

This was my linux.conf

boot=/dev/hda
lba32
prompt
timeout=10
message = /boot/message
root=/dev/hdb2
default=2

image="/boot/vmlinuz"
label="1"
root="/dev/hdb2"
read-only


other=/dev/hda1
label="2"

When I rebooted all I got was a series of 1's and the Pc was frozen.
I had to recue it with fdisk/mbr

What is wrong with my lilo.conf?

There was an error message when I ran lilo about it being on a different disc

Thanks
 
Old 05-02-2004, 10:02 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Re: Cannot boot from C: after Lilo

Quote:
Originally posted by arubin
There was an error message when I ran lilo about it being on a different disc
That's most likely the problem, but without an error message posted here for us to see, I don't think anyone is going to know what the problem is.
 
Old 05-02-2004, 01:10 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Original Poster
Rep: Reputation: 57
The warning is

The boot sector and map file are on different disks
 
Old 05-02-2004, 02:19 PM   #4
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
I don't know much about Lilo configuration, but I pasted in the relevant part of my own /etc/lilo.conf for a dual-boot system. It seems you're actually missing the boot map file.
Code:
boot=/dev/hdg
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
disk=/dev/hdg bios=0x80
image=/boot/vmlinuz
        label="linux"
        root=/dev/hdg8
        initrd=/boot/initrd.img
        append="devfs=mount hdb=ide-scsi acpi=ht resume=/dev/hdg7 splash=silent"
        vga=788
        read-only
other=/dev/hdg1
        label="windows"
        table=/dev/hdg
 
Old 05-02-2004, 02:35 PM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Original Poster
Rep: Reputation: 57
That gives me a fatal. cannot find map
 
Old 05-02-2004, 03:24 PM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Original Poster
Rep: Reputation: 57
I had left out the slash

I have now added map=/boot/map

It makes no difference. Stil get L 01 01 01 on booting
 
Old 05-02-2004, 04:55 PM   #7
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
Try removing double quotes "" from image and root lines
Ciao

Last edited by urka58; 05-02-2004 at 04:57 PM.
 
Old 05-02-2004, 04:57 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
On some systems it's called System.map, certainly on RedHat it's called System.map

The different disks thing shouldn't be an issue...mine have always been on separate disks
 
Old 05-02-2004, 06:50 PM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Original Poster
Rep: Reputation: 57
Thank you for your suggestions. Unfortunately neither appears to have made any difference.

My current conf is

boot=/dev/hda
map=/boot/System.map
lba32
prompt
timeout=10
message = /boot/message
root=/dev/hdb2
default=2
image=/boot/vmlinuz-ide-2.4.22
label="1"
root=/dev/hdb2
read-only


other=/dev/hda1
label="2"
 
Old 05-03-2004, 05:12 PM   #10
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
You still have a couple of errors.
@ boot line try hda1 instead of hda.
hda is a generic name of the device. hda1 is the name of a partition.
They don't necessarely match.
what you should edit either is
map=/boot/map.
map file is a "list" of sectors where the kernel resides.
They are read by lilo with the help of some BIOS features sequentially in order to get the kernel into memory.
System.map is a list as well, but it is used by klogd to pass infos to ksyslogd about the memory mapping. In other words the map file is essential for booting. System.map is only involved in logging features. (important but the kernel can boot without them either).
Ciao
 
Old 05-04-2004, 09:47 AM   #11
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Original Poster
Rep: Reputation: 57
In all the reading I have done I have never seen boot=/dev/hda1 suggested
 
Old 05-04-2004, 04:49 PM   #12
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,220

Original Poster
Rep: Reputation: 57
Talking

I have solved it!

The problem was the BIOS.

Since I had installed the 2nd hard disc I had not changed CMOS. The 2nd disc was being autodetected everytime the PC was booted.

I went to the BIOS set up, got it to autodetect the 2nd disc and the saved the settings.

Now it works!

Thanks to all who tried to help.
 
Old 05-04-2004, 05:15 PM   #13
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 540

Rep: Reputation: 32
yes, it was a mistake.......it was actually "root"
happy you solved your problem.
Ciao
 
  


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 boot screen wont show windows to boot into!! please help Fear58 Linux - General 3 07-10-2004 10:55 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 05:50 PM
lilo and openmosix was just installed and was added to lilo boot menu but.. kublador Linux - Software 0 06-18-2003 02:59 AM
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


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