LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2005, 10:23 AM   #1
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Rep: Reputation: 15
lilo fatal: first sector.....


after having installed a new kernel I configured lilo so it will boot with the new kernel but when i run lilo I get this error.

Code:
Fatal: First sector of /dev/hda1 doesn't have a valid boot signature
fdisk -l /dev/hda gives:

Code:
Device Boot      Start End     Blocks           ID     System
 /dev/hda1          1     62     497983+        82    Linux/swap
 /dev/hda2*       63   1886  14651280      83    Linux
 /dev/hda3       1887 4865  23928817+    83    Linux
anyone who knows why it does what it do, and what to do to correct it?

thanks for helping out

/ Tony
 
Old 09-22-2005, 12:05 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"anyone who knows why it does what it do, and what to do to correct it?"

The problem might be in your /etc/lilo.conf file. Could you post /etc/lilo.conf?

--------------------------------
Steve Stites
 
Old 09-22-2005, 01:01 PM   #3
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Original Poster
Rep: Reputation: 15
what's not showing here is comment out from lilo.conf. hope this will help

Code:
lba32
boot=/dev/hda
root=/dev/hda2
install=/boot/boot-menu.b
map=/boot/map
delay=20
vga=normal

image=/vmlinuz
    label=Linux
     read-only
#   restricted
#   alias=1

image=/vmlinuz.old
    label=LinuxOLD
    read-only
#   optional
#   restricted
#   alias=2

image=/boot/vmlinuz-2.6.8.2.6.8
    label=Debian-2.6.8
    read-only
#   alias=n
#   vga=ask
#   optional
 
Old 09-22-2005, 05:14 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Fatal: First sector of /dev/hda1 doesn't have a valid boot signature"

This messge means that lilo has been told to install its boot record on /dev/hda1 and that is an invalid place to put it. In your lilo.conf the line:
boot=/dev/hda
tells lilo to put its boot record on the MBR. Did you tell lilo otherwise when you ran the lilo command? If you just ran the command:
lilo
then lilo should have placed the boot record on the MBR and everything should work OK.


-----------------------------
Steve Stites
 
Old 09-22-2005, 06:53 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Just do a

lilo -b /dev/hda

that will place lilo in the MBR for you.
 
Old 09-26-2005, 06:48 PM   #6
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Original Poster
Rep: Reputation: 15
This is what i have done so far without any result.

First I did:
Code:
lilo -b /dev/hda
After that:

Code:
dd if=/dev/hda of=/home/mbr_hda bs=512 count=1
I have opend the file /home/mbr_hda with an hexeditor and changed the value on 0000:01BE from 00 to 80.

I have also tried fdisk like this:
Code:
fdisk /dev/hda
a
1
w
Tried this as well:
Code:
lilo -P fix -v 5
what more can I do? nothing seems to work. any more ideas, anyone? I really want the box to work.
 
Old 10-14-2005, 09:30 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Not sure of the various alternatives you have tried, but

When the command

lilo -b /dev/hda

is issued while you are running the Linux as the root user, Lilo would report any error if there is one. Normally it would confirm every booting entry has been "added" or reports a "fatal error" if it finds the partition unbootable.
 
Old 01-08-2009, 12:10 PM   #8
sbrookfield
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
I just had a similar problem and fixed it by reducing the amount of entries in my lilo.conf, hope it helps the next person!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Grub/Lilo at the First Sector of the Boot Partition?? ckamheng Linux - General 2 08-21-2004 09:35 AM
lilo - Fatal: No images have been defined. vector Linux - General 2 03-21-2003 01:37 PM
lilo -v Fatal: Unable to open /dev/md10 straka Linux - General 0 03-07-2003 11:04 AM
LILO fatal error ggg Linux - Software 10 05-24-2002 08:35 AM
Ran lilo -- got fatal error rdaves@earthlink.net Linux - Software 11 06-12-2001 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:42 AM.

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