LinuxQuestions.org
Visit Jeremy's Blog.
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-27-2002, 05:53 PM   #1
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Rep: Reputation: 0
Dual Boot Winxp / Linux


After many lost hours trying to install a dual boot system with WinXp and Linux, I'm looking forward that somewhere is a real Crack who can finally help me to solve my troubles. First of all I don't want to set lilo on MBR because of bad experience (Reinstalling Windows). So, my goal to start linux from the Winboot-loader...
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, 01:31 PM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
They don't look right to me.

/dev/hdb1 is /boot. Why this?

dd if=/dev/hdb2 of=/tmp/LiloBoot.bin bs=512 count=1

Then according to your lilo.conf
--
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"
--
Your partitions are uncommon. That could be a problem. If it's your first, I suggest you go for defaults: reformat HD2, do NOT make any /boot, either dedicate the entire disk to Linux or make it empty, boot to RH7.2. CD, use DiskDruid to make only ONE partition /, write lilo to /dev/hdb, write bootdisc, install, try bootdisc and then finally do the dualboot.
 
Old 04-03-2002, 02:35 AM   #3
mgroyal
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Original Poster
Rep: Reputation: 0
jetblackz, tanks for your reply...

You were right... The boot partion is hda2...

This I've already changed... My main problem was the hall.dll error by booting up linux. This was because I copied the LiloBoot.bin to my d-drive... The LiloBoot.bin must be on the first partition (for Windows always c otherwise you'll get the hall.dll error meassag by booting up linux...

Now it works.. YES!

Cheers mgroyal
 
Old 04-03-2002, 09:40 AM   #4
futurist
Member
 
Registered: Mar 2002
Location: malaysia
Distribution: Mandriva 2006 RC1
Posts: 486

Rep: Reputation: 30
Windows XP screws up, can't play many old games!

and linux is too tedious for users who want everything fast!!!!
suck!!!
 
Old 04-03-2002, 10:41 AM   #5
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Hey futurist:
Open mozilla or netscape and type:
about:mozilla
That tells you what Windows got coming!
 
Old 04-04-2002, 01:37 AM   #6
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
This is what I did to dual boot Win2000 & Mandrake Linux 8.0:

1. Install Windows 2000. Partition part of it for Windows 2000 (either NTFS or FAT32 will work).

2. Install Linux (any distribution).

You have to follow the following two steps exactly:

a. When asked where to install LILO, DO NOT install LILO in the MBR (Master Boot Record), since this will overwrite Windows OS Loader and you may have to reinstall Windows 2000. Instead, install LILO in other partition (superblock of the root partition of Linux drive).
b. Create a Linux boot disk. For now, this will be your only way of booting up to Linux.

3. After you have finished installing Linux, boot up to Linux (use the Linux boot disk).

4. Dump Linux boot sector to a file. Type the following:
dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
If your linux boot partition is not in the hda2 partition, change if=/dev/hda2 accordingly (use df to get the correct partition).
For example, if your linux boot partition is in hda3, change the command to:
dd if=/dev/hda3 of=/bootsect.lnx bs=512 count=1

Once you run this command, you will have bootsect.lnx file in "/" (root) directory.

5. Mount a DOS formatted disk. Type:
mount -t msdos /dev/fd0 /mnt

6. Copy the bootsect.lnx file to the diskette:
cp /bootsect.lnx /mnt

7. Boot up to Windows 2000 (by removing the Linux boot disk).

8. After booting up to Windows 2000, insert the DOS disk, and copy the file A:\bootsect.lnx to C:\ drive.

9. Edit C:\boot.ini. Usually this file is not visible. Start notepad, then open file C:\boot.ini. Add the following line to the bottom of the file:
C:\BOOTSECT.LNX="Linux"

10. Now reboot, and you will option to boot either to Windows or Linux.

Good Luck!
 
  


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
Dual Boot Linux And WinXP theutherwhitemeat Linux - Software 9 07-31-2005 01:38 AM
Dual Boot In Linux and WInxp reply2vinay Linux - Hardware 7 07-23-2005 01:36 AM
how to dual boot linux/winxp henrylam Linux - Newbie 4 05-16-2004 06:59 PM
Dual Boot WinXp and Linux sparex Linux - Newbie 7 04-12-2004 12:03 AM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM


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