LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2005, 01:11 AM   #1
RodimusProblem
Member
 
Registered: Dec 2004
Distribution: Knoppix 3.6
Posts: 135

Rep: Reputation: 15
lilo Error


I'm working towards triple-Booting;

Anyway, partitions laid out and everything, I installed another Linux Distro (Morphix) on /dev/hda5.

Lilo spits out the following error: "/dev/hda5 doesn't have a valid boot signature".

Now is this because /dev/hda5 isn't a primary partition or did I do something else wrong?


I have a max of 3 primary partitions, not counting the extended partition. My swap partition is /dev/hda3 , the last primary partition.

Should I just switch swap to /dev/hda5 and Morphix to /dev/hda3 ?


The repartitioning, formating and installation got this PC a bit hot, so I'm going to let it cool for a bit before I try any more partitioning & formating.



Note: If possible I'd like to get LFS going too, but I can pass it up.
 
Old 01-05-2005, 02:59 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

post ur lilo.conf file and output of

fdisk -l /dev/hda

regards
 
Old 01-05-2005, 03:19 AM   #3
RodimusProblem
Member
 
Registered: Dec 2004
Distribution: Knoppix 3.6
Posts: 135

Original Poster
Rep: Reputation: 15
lilo.conf being over 5 KB long, here's the file sans comments...
Code:
lba32
boot=/dev/hda
root=/dev/hda2
bitmap=/usr/share/lilo/nekotmp3.bmp
bmp-colors=14,,6,3,,2
bmp-table=48p,98p,1,15,17
bmp-timer=254p,432p,4,,0
install=bmp
delay=20
prompt
timeout=50
map=/boot/map
vga=791
default="Linux"

image=/boot/vmlinuz
	label="Linux"
	initrd=/boot/initrd.img
	append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet"
	read-only
image=/boot/vmlinuz-2.4.27
	label="Linux(2.4)-1"
	initrd=/boot/initrd.img-2.4.27
	append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet"
	read-only
	
image=/boot/vmlinuz-2.6.7
	label="Linux(2.6)-2"
	initrd=/boot/initrd.img-2.6.7
	append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet"
	read-only
other=/dev/hda1
	label="WinXP(hda1)"
other=/dev/hda5
	label="MophixGamer"
fdisk -l /dev/hda yeilds:
Code:
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1219     9791586    7  HPFS/NTFS
/dev/hda2            1220        2494    10241437+  83  Linux
/dev/hda3            2495        3131     5116702+  82  Linux swap
/dev/hda4            3132        7296    33455362+   f  W95 Ext'd (LBA)
/dev/hda5            3132        4406    10241406   83  Linux
/dev/hda6            4407        5043     5116671   83  Linux
/dev/hda7            5044        7295    18089158+   b  W95 FAT32
 
Old 01-05-2005, 04:48 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
can you boot into anything with this?

with each image=(path to kernel) entry you'll probably need a root=/dev/xxx entry to tell lilo where to go

with the other=/dev/hda1 entry you might need to add below it table=/dev/hda (same with the "other" entry below)

so

try to add (on the second "other" )
other = /dev/hda5
label = MorphixGamer
table = /dev/hda

also try addig root = /dev/hdX entries on the entries that start with "image".

Oh and at the top of the file the entry root=/dev/hda2
try commenting that out.

Last edited by __J; 01-05-2005 at 04:50 PM.
 
Old 01-05-2005, 06:04 PM   #5
RodimusProblem
Member
 
Registered: Dec 2004
Distribution: Knoppix 3.6
Posts: 135

Original Poster
Rep: Reputation: 15
Bingo! That did the trick!
I edited the image parts so they had the root=/dev/hdaX line, commented out the first root=/dev/hda2 and removed the other entry for Morphix.


Now I can boot into WinXP, Morphix or Knoppix.

Thanks a lot!


Unfortunetaly Lilo wasn't very far off with the bad data on /dev/hda5. The boot stuff and most of the data is there, but some got corrupted in the install (not bad blocks or damaged disk, just buggy installs). I'll re-install it from a fresh CD later.
 
  


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 L 99 error dllmetal Linux - General 10 12-21-2014 04:29 AM
Lilo error mattp Linux - Newbie 11 08-24-2004 11:14 PM
LILO LinuxEBDA error to /usr/bin/gdm error true_atlantis Slackware 0 04-28-2004 02:31 PM
error loading operating system (lilo error) KoKi Slackware 1 03-03-2004 05:46 PM
Lilo error 99 Groucho Slackware 1 09-30-2003 02:58 PM


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