LinuxQuestions.org
Visit Jeremy's Blog.
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 08-12-2004, 08:53 AM   #1
Sonic_Traveler
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Rep: Reputation: 0
Problem with Lilo, /dev/hda1 have no valid bootsector


Hello

During the installation of my Slackware 10 system, Lilo could not install succefuly.
I get into my system with a bootdisk.
Lilo puts out this error message:

********************************************************
bash-2.05b# lilo
Added Slacki10 *
Fatal: First sector of /dev/hda1 doesn't have a valid boot signature
*********************************************************


Here is my lilo.conf:

**********************************************************
bash-2.05b# more lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda3
#compact # faster, but won't work on all systems.
prompt
timeout = 50
# 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
# Linux bootable partition config begins

image = /boot/vmlinuz
root = /dev/hda3
label = Slacki10
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = FreeDOS
table = /dev/hda
# Windows bootable partition config ends
***********************************************************

I`ve installed FreeDOS on /dev/hda1.
Can anybody help me ?
 
Old 08-12-2004, 09:06 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
I would replace the "boot = /dev/hda3" to "boot = /dev/hda", so that
lilo is installed to MBR.
 
Old 08-12-2004, 09:09 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
try ' /sbin/lilo -P ignore ' if it works
 
Old 08-12-2004, 10:02 AM   #4
Sonic_Traveler
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I tried both solutions, but none of them seems to work. I get the same lilo error output.
Any suggestions?

THX

Sonic Traveler
 
Old 08-12-2004, 12:03 PM   #5
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
Can you try commenting out the lines for your freedos

then execute /sbin/lilo

then please paste the output here. if something still goes wrong
 
Old 08-12-2004, 12:12 PM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
and ' /sbin/lilo -F ' ?

man lilo :
-F Override boot sector check for filesystems (e.g.,
swap, XFS, ...) which might be destroyed by the
installation of the LILO boot sector on the first
sector of the partition. These filesystems use the
first sector as a superblock.

Compare with "-P ignore", which bypasses certain
partition table checks.
 
Old 08-12-2004, 04:40 PM   #7
Sonic_Traveler
LQ Newbie
 
Registered: Aug 2004
Posts: 8

Original Poster
Rep: Reputation: 0
@insyte

Hello

I commented out the whole FreeDOS stuff... it works now.
`lilo`

Added Slacki10

But now, I cannot boot FreeDOS anymore.
Should I reinstall FreeDOS, don`t know if that fix the bootsector.

Greetings Sonic
 
Old 08-12-2004, 09:19 PM   #8
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
can you run cfdisk, just check if if your freedos partition is marked as bootable
 
Old 08-12-2004, 09:30 PM   #9
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
Next uncomment the first two lines for freedos

Quote:
other = /dev/hda1
label = FreeDOS
then add

Quote:
chainloader=/boot/fdosboot.bin
copy fdosboot.bin into your /boot directory

then /sbin/lilo

hope that works

If it still doesn't
try uncommenting

Quote:
table = /dev/hda
and see if it works
 
  


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 says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
Mounting problem with WD 200GB IDE onChaned 2 Master /dev/hda1 A6Quattro Fedora 1 10-29-2005 04:19 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM
lilo problem - no valid boot signature djbanaan Slackware 9 08-18-2004 07:57 AM
I accidentally removed lilo from my bootsector. Grafbak Linux - Newbie 2 06-20-2003 03:22 PM

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

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