LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-26-2002, 07:17 AM   #1
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Rep: Reputation: 0
Lilo troubles - RedHat Linux & Win XP *Please help


Hi all

I've installed RH Linux 7.2 and can't boot up Win XP anymore...
It boot automatically into Linux (no choice for OS)

I have two HD: 1st -> 2 partion with Win2000/WinXP
2nd -> Redhat Linux 7.2

I know that there is something wrong with the bootloader...

Could someone give me advice how to solve this problem?
(I'm absoult beginner in Linux *I don't know any commands there)

Many thanks for your replies *thx mgroyal
 
Old 03-26-2002, 07:37 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Which bootloader do you use? LILO? Grub?
 
Old 03-26-2002, 07:38 AM   #3
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
Bootloader Lilo

Yes I'm using Lilo...
 
Old 03-26-2002, 07:56 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Could you send there your /etc/lilo.conf ?
 
Old 03-26-2002, 08:15 AM   #5
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
The Lilo setup was done automatically by the Redhad installation...

So,I've no idea about configuration...

Are you talking about a Linux command? Where/how can I set up Lilo manually?

What I need to do that I can boot up Windows?
 
Old 03-26-2002, 08:30 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
/etc/lilo.conf is a text file where lilo configuration is kept. You can edit it to make a choice between Linux and Windows. But if you were using XP boot manager it will be better to let Windows use its boot manager. You can delete lilo using
lilo -u
but remember to make a boot disk to have a possibility to get to Linux after this. A good guide about using NT bootloder (which is the same XP uses) is in NT-bootloader-HOWTO (or it has a similar name).
 
Old 03-26-2002, 08:53 AM   #7
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
Hi mara

Thanks for your patience and responsing my stupid questions....

So things become clear... Just learnt that vi = edit ... So, I'll try to adding follow lines to the lilo config file:

other = /dev/hda#
label=Win Xp

if this not working I'll try your soulution lilo -u and adding linux in boot.ini.

Unfourtantely I can't make any boot disk -> only CD RW -> no floppy....

I hope that one of them will work properly....

Thanks mgroyal
 
Old 03-26-2002, 09:35 AM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Boot cd is a boot disk, too. :-)
 
Old 03-27-2002, 06:51 PM   #9
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
I've installed RedHat 7.2 using LILO Boot-loader on the first sector of the boot partition and NOT ON MBR. A linux bootdisk has been successfully created... So, I can normally boot up WinXP and Linux will only boot up by using the appropriate bootdisk.

In Linux I created the bin-file using:
dd if=/dev/hdb2 of=/tmp/LiloBoot.bin bs=512 count=1
->
mcopy /tmp/LiloBoot.bin a:
->
Then I started Windows and copied the file to d:\
->
This I added to the boot.ini: d:\LiloBoot.bin="RH Linux 7.2"
Note: "I removed /fastdedect from Win entries because I heard this will ignore booting up Linux
->
Then I restarted the system and tried to boot up by choicing the Linux panel entry. No luck at all... The system restart again and come back to the boot menu...

So, in my opinion I set up everthing correctly und I'm wondering why it's not working. Below you'll find my hole system specification. I'd be very grateful if some could help me in that matter...

Tanks in advance for every reply *Cheers Marco

My System profile:
----------------------
HD1 (60GB)
c: -> 1 Partition -> NTFS -> Win2000 (This I want to uninstall later)
d: -> 2 Partition -> NTFS -> WinXP (Main OS)

HD2 (10GB)
Linux Redhat 7.2

From Disk Druid:
---------------------
dev/hda1 Win2000 NTFS
dev/hda2 Erweitert
dev/hda5 WinXP NTFS

dev/hdb1 Boot
dev/hdb2 EXT
dev/hdb3 Swap

------------------------------------------------------------------------

/dev/lilo.conf (created automatically by RH Installer):
------------------------------------------------------------------
prompt
timeout=50
default=linux
boot=/dev hdb1
map=/boot/message
lba32

image=/boot/umlinuz-2.4.7-10
initrd=/boot/initrd-2.4.7-10.img
read-only
root=/dev/hdb2
append="hdc=ide-scsi"
 
Old 03-28-2002, 02:20 AM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
You did it correctly, but lilo is installed in hdb1, not hdb2. Try the same but with hdb1.
 
Old 03-28-2002, 03:10 AM   #11
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
Yes! Mara you're still there...

I also tried hdb1 without success... I'm considering if I this way is working for WinXP (thats the solution for Win2000)

Is it possible that NTFS partition can cause problems?

I have read something like this:

Win2000 = NTFS(1)
WinXP = NTFS(2)

Or, just crap?
 
Old 03-28-2002, 04:10 AM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Try lilo
then dd.
It may be that lilo was not installed.
 
Old 03-28-2002, 04:27 AM   #13
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Change this line:
map=/boot/message

To this:
map=/boot/map

Then run /sbin/lilo
 
Old 03-28-2002, 05:10 AM   #14
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
Mara,

What you mean with lilo was not installed... I thought lilo is installed when I can boot up Linux... How can I try lilo? Is that same was Linuxcool is recommending?

Linuxcool,

Can you briefly explain me what map=/boot/map means

For runnining lilo:
cd /sbin/lilo
lilo (just typing lilo?)

Is there annother command than vi for editing files... I hate vi because I can't quite it with q and have even big problems to make any adjustments....

Sorry for these questions but I'm now at enterprise can't test anything at this time...
 
Old 03-28-2002, 05:58 AM   #15
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
The lilo program is installed, but it should be started to place itself in the begging of a partition. Im' not sure it was done in your case.
To start lilo you can just type lilo. It's placed in sbin (so you can also use /sbin/lilo with the same effect).
 
  


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
redhat 9 & win xp networking ezeuba Red Hat 2 05-13-2004 05:54 PM
Lilo & win disk doggod Mandriva 2 02-03-2004 11:52 AM
Lilo: Dual boot Debian & Win 2000 mudelf Linux - General 3 11-12-2003 02:55 AM
LILO - dual booting win 95 / redhat 6.2 DiamondViper Linux - General 4 02-13-2002 09:45 PM
Win me & RedHat uttamsaxena Linux - Software 1 08-26-2001 02:15 PM

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

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