LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-17-2002, 09:08 AM   #1
ggg
LQ Newbie
 
Registered: May 2002
Distribution: RedHat 7.2
Posts: 7

Rep: Reputation: 0
LILO fatal error


Hi there,

I tried to install a dual boot system on a laptop.
Default OS is XP on /dev/hda1 which is loadable
from the Windows boot loader. I did everything
to move the boot sector to C:\ (dd and that kind
of stuff). Still Linux isn't accessable from the
Windows boot loader (just black screen).
What I am really concerned about is that this
approach worked very well for NT4 and 2000.
Maybe there's a problem with XP?

In another thread someone gave the hint to
execute lilo manually, first. This isn't working!
Typing "/sbin/lilo" results in "Fatal: can't put
the boot sector on logical partition 0x307"

Did anybody faced the same problem?
 
Old 05-17-2002, 11:23 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
What is in your lilo.conf? Especially in the boot= line?
 
Old 05-21-2002, 11:02 AM   #3
ggg
LQ Newbie
 
Registered: May 2002
Distribution: RedHat 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Mara,

I've posted my lilo.conf below.
Any idea?

Regards,

ggg

prompt
timeout=50
default=Windows XP
boot=/dev/hda5
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.7-10
label=Linux
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hda7

other=/dev/hda1
optional
label=Windows XP
 
Old 05-21-2002, 11:08 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
Try changing the line boot=/dev/hda5 to boot=/dev/hda and re run lilo. Currently you're trying to install Lilo to the boot sector of /dev/hda5, which is a partition. You'd still need a bootloader (were you planning on using XPs boot loader?) to load Linux. Changing that line to /dev/hda puts Lilo in the MBR (master boot record), which is where your WinXP bootloader currently resides.
 
Old 05-21-2002, 12:58 PM   #5
ggg
LQ Newbie
 
Registered: May 2002
Distribution: RedHat 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, indeed, I want to use the XP boot loader. As far
as I know (from the HOWTOs and so on) it isn't possible
using LILO in MBR and booting XP from LILO. But maybe
I'm wrong?
 
Old 05-21-2002, 11:54 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Don't install lilo in your mbr. It needs to be installed in the /boot or root ' / ' partition. Change the boot=/dev/hd5 to the partition that you want to install lilo on and run /sbin/lilo. Then make your copy of the boot sector using dd. Also, make sure that the root=/dev/hda7 is pointing to the root ' / ' partition.
 
Old 05-22-2002, 05:17 AM   #7
ggg
LQ Newbie
 
Registered: May 2002
Distribution: RedHat 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
The settings in lilo.conf are OK. I want to install
LILO to /dev/hda5 which is mounted as /boot
and /dev/hda7 is mounted as /.

Running /sbin/lilo results in that error message
given in my first post.

I just recognized that a map file is missing in my /boot
although it is mentioned in lilo.conf. Maybe that's the problem
 
Old 05-22-2002, 09:39 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
That could be the problem and that could explain the error message: "Fatal: can't put the boot sector on logical partition 0x307". It's trying to install lilo in the boot sector of hda7 instead of hda5 and the line ' boot=/dev/hda5 ' is saying to install it in hda5.

Are you sure there is no map file or any file that has map in its name in the /boot folder? Running the command
locate map | less will locate any file or folder that has map in it.
 
Old 05-23-2002, 01:19 AM   #9
ggg
LQ Newbie
 
Registered: May 2002
Distribution: RedHat 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
There is a file called System.map in /boot. It is in fact
a link to System.map-2.4.7-10.
 
Old 05-23-2002, 03:40 AM   #10
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
System.map, that's what I was trying to recall. Create a symbolic link from System.map-2.4.7-10 to map. Like this:
ln -s /boot/System.map-2.4.7-10 /boot/map. Then run lilo again and see if it's ok.
 
Old 05-24-2002, 08:35 AM   #11
ggg
LQ Newbie
 
Registered: May 2002
Distribution: RedHat 7.2
Posts: 7

Original Poster
Rep: Reputation: 0
I am out of office next week. Will tell you on
Mon June 3rd if this works.

Best wishes
 
  


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 fatal: first sector..... HmmLinux Linux - General 7 01-08-2009 12:10 PM
Can't run LILO error : Fatal:raid_setup:stat("/dev/hdi1") robban59 Linux - Newbie 4 05-31-2005 04:44 PM
LILO Fatal Error on multi-disk config. skubik Linux - Software 12 05-05-2003 06:02 PM
lilo - Fatal: No images have been defined. vector Linux - General 2 03-21-2003 01:37 PM
Ran lilo -- got fatal error rdaves@earthlink.net Linux - Software 11 06-12-2001 10:06 AM


All times are GMT -5. The time now is 11:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration