LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-10-2003, 01:44 PM   #1
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Rep: Reputation: 15
Boot problem...


Hi ppl !

Just installed RH 8.0 finaly in my laptop... but because when i got the laptop i had some problems with RH install procedure i didn't install it ... and proceded with the instalation of WindowsXP leaving a partition for future Linux instalation...
Now that i'v instaled RH i can't make LILO work!

This is how my partitions look like :

hda1 ----> win
hda2 ----> boot
hda3 ----> /
hda4 ----> swap

Remember this is a hard drive from a laptop so it's the same disk!
Can boot partition not be the first partition? because if it realy must be in the first partition i have to format windowsXp and i realy don't whant to do that...
How can i make it work? any sugestions?

thanks

Spooky OuT
 
Old 01-10-2003, 01:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
First things first mate :)

Show us your lilo.conf and we'll start from there.
And it's certainly not a Lilo or Linux problem but
a user error ;)

You can boot linux of more or less anything.

Cheers,
Tink
 
Old 01-10-2003, 04:56 PM   #3
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Original Poster
Rep: Reputation: 15
Ok new problem !! i can't even get into the the linux by boot disk!
when he is running the kernel in the disk it gives this msg:
...
isapnp: scanning for pnp cards...
CPU 0: Machine check Exception:000000...07
Bank 3: b4000..0083b at 0...01fc0003bb
kernel panic: unable to continue



Technical Specs:
Compaq Presario 920EA
AMD Mobile Athlon XP 2000+
256 Mb RAM
30 Gb HD
ATI Mobility Radeon U1/IGP320M

About the partition... when i'm in the Disk Druid he gives me this msg when i'm making /boot partition :
warning:boot partition /boot may not meet booting constraints for your architecture.
Is this a problem?

i'v installed lilo in /dev/hda2 First Sector of boot partition
is this correct for my system with windows partition in hda1?
 
Old 01-10-2003, 10:25 PM   #4
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
What is in your MBR? Your post reads like you are using LILO as your boot loader, then you close with it being in the superblock of your first Linux partition. It is put there when another boot loader (such as NTLDR, the NT boot loader) is used. With Red Hat 8.0, this is an intentional change (Red Hat does not default to this and it takes some figuring out how to do it).

When you start your computer, does it just boot normally to XP? Is that what you are calling "can't make LILO work?"

Is this as simple as you had a functioning XP program and when you added Linux, you didn't overwrite the MBR, so now you need to tell the NTLDR to also load Linux?

First, you need to get Linux booting--you'll need a boot image from it. If the boot disk doesn't work, put the installation CD back in and boot from it. When it gets to the boot prompt, follow the instruction for a rescue boot.

When you get Linux up, log on as root, put a floppy in the drive, mount the floppy drive (right click on the desk top, select disks and click on floppy) and in a terminal window, copy a file with the boot image to the floppy with this command:

dd if=/dev/hda2 of=/dev/fd0/bootsect.lnx bs=512 count=1

Exit Linux and start XP.

Copy a:\bootsect.lnx [to] c:\

Bring up a Command Prompt window (Start, Accessories, Command). You next need to edit a hidden, read-only system file. Type this:

attrib -r -a -s -h c:\boot.ini

Next:

edit c:\boot.ini

At the end of the file, add this line:

C:\bootsect.lnx="Red Hat 8.0"

Save the file. If you want to reset boot.ini's attributes, change the '-' signs to '+' and reissue the attrib command.

Reboot your system and you should have the option to boot either system. Make sure they both work.

Good luck
 
Old 01-12-2003, 05:14 PM   #5
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Original Poster
Rep: Reputation: 15
Here is Lilo.conf
------------------------------------------------------------------------------------
Prompt
Timeout = 50
Default = WindowsXP
boot =/dev/hda2
map =/boot/map
install =/boot/boot.b
message =/boot/message
Linear

Image =/boot/vmlinuz-2.4.18-14
Label = Linux
initrd =/boot/initrd-2.4.18-14.img
Read-only
Append ="hdc=ide-scsi root=LABEL=/"
Other =/dev/hda1
optional
LABEL= WindowsXP
------------------------------------------------------------------------------------

I still have a hard time booting from rescue mode ... i have to make this command to get into linux....

Linux rescue noauto nomce nousb

this is a laptop and it has some issues about getting linux started ....

Spooky OuT
 
Old 01-12-2003, 05:43 PM   #6
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
boot=/dev/hda2

This looks like you installed LILO into the beginning of the Linux partition and not the MBR. This makes the questions I asked even more important. Please reread them and post the answers.
 
Old 01-13-2003, 04:46 AM   #7
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
What is in your MBR?
My guess is XP since LILO does not appear...

Quote:
When you start your computer, does it just boot normally to XP?
Yes it just goes to XP...

I can't creat that disk because in my rescue mode it gives me a messege that /dev/fd0/bootsect.lnx is not a directory
... remember that i have some issues about my laptop working with linux don't know how far can this be related...
 
Old 01-13-2003, 07:27 AM   #8
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
I don't know how far they are related, but just looking at this, you have XP booting through NTLDR and LILO set to boot Linux from your Linux partition.

The dd command couldn't find the directory because the floppy wasn't mounted. Rescue mode is a little restricted, so let's get a boot disk made and boot from it.

In Rescue mode, you should be at a Shell prompt. First find out what version kernel you are using. This is done with the uname command:

uname -r

It will print out something like this:

2.4.18-14

Actually, that is what my Red Hat CDs shipped with (but there is not guarantee that you have that kernel).

With that version number, put a floppy in and type this command:

/sbin/mkbootdisk 2.4.18-14

Replace the kernel version with yours.

With the boot disk, boot your computer and follow my original instructions.


Last edited by deadbug; 01-13-2003 at 08:00 AM.
 
Old 01-13-2003, 07:50 AM   #9
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Original Poster
Rep: Reputation: 15
but isn't there a possiblity for LILO to work by itself?booting without NTLDR?

that command isn't for a Linux option to appear in NTLDR boot ? or is for the LILO to show up?

"of=/dev/fd0/bootsect.lnx" does not work
"of=/mnt/floppy/bootsect.lnx" does work

Last edited by Spooky; 01-13-2003 at 08:05 AM.
 
Old 01-13-2003, 08:04 AM   #10
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Okay while I was editing (correcting) what I wrote you came on and asked a question.

Can you use LILO in the MBR? Yes you can. That is not what you originally set up, but we can walk you through the change, if that is what you want.

I was merely telling you how to adapt your NTLDR to trigger LILO when it isn't in the MBR.

You could also set up Grub to do all of this.

Which one do you want to do?
 
Old 01-13-2003, 08:08 AM   #11
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Original Poster
Rep: Reputation: 15
LILO
 
Old 01-13-2003, 08:40 AM   #12
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Great, first make the boot disk, then change your lilo.conf so the fourth line reads boot=/dev/hda, the run this command in a terminal window:

/sbin/lilo

You should be set with LILO.
 
Old 01-13-2003, 10:53 AM   #13
Spooky
Member
 
Registered: Dec 2002
Location: Portugal
Distribution: Fedora Core 5
Posts: 82

Original Poster
Rep: Reputation: 15
It work's with this configuration!! thanks
------------------------------------------------------------------------------------
Prompt
Timeout = 50
Default = WindowsXP
boot =/dev/hda
map =/boot/map
install =/boot/boot.b
message =/boot/message
Linear

Image =/boot/vmlinuz-2.4.18-14
Label = Linux
initrd =/boot/initrd-2.4.18-14.img
Read-only
Append ="hdc=ide-scsi root=LABEL=/ noauto nomce nousb"
Other =/dev/hda1
optional
LABEL= WindowsXP
------------------------------------------------------------------------------------




Last edited by Spooky; 01-14-2003 at 04:24 AM.
 
  


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
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
Boot problem w/FC2 - DISK BOOT FAILURE maugou Fedora 2 06-30-2004 06:37 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM
Problem with Mandrake 9 boot /Debian boot on 1 PC cmisip Linux - Distributions 4 11-04-2002 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:54 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
Open Source Consulting | Domain Registration