Computing.Net > Forums > Linux > redhat 7.1 WinXP dual boot problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

redhat 7.1 WinXP dual boot problem

Reply to Message Icon

Name: Christopher Koch
Date: November 13, 2001 at 10:48:03 Pacific
Comment:

I'm trying to install a winXP/linux (redhat 7.1) dual-boot machine. I created these partitions (all Fat32) on my 60G drive:
- 3 gig (intended winXP C:)
- 256M (intended linux /boot)
- 256M (intended linux swap)
- 10G (intended linux /)
- ~47G (intended WinXP D:)

My problems are these:

1) If I install redhat 7.1 first, it installs fine. When I install WinXP however (selecting the 3G partition, and telling it to format to NTFS) It installs, and recognizes the two windows partitions (3G ntfs, 47G fat32). After this, my redhat installation becomes unusable (even with a boot disk). The partitions all still look fine (under winXPs diskpart anyway). If I
try to re-install redhat, I get an "unknown partition type 0" sort of error, and it aborts the install.

2) If I install XP first, same result as 1 above when I try to install redhat (unknown partition type 0).

When I look at the partition types in WinXp's diskpart (the only partition prog I have that will handle ntfs) it does show that the 47G partition is of type 0. So I used diskpart to delete and recreate the partition (bam, lost my D: drive), but the partition now has the correct type. Still no go when installing linux, it gives the same error. Of course, now my Xp installation wont boot.

When I reinstalled XP, I noticed that on install, it thinkgs there is now an extra 8M partition at the end of the partition list. It says something about this being where XP holds it's partition information. I'm wondering if this is the bad partition that linux is complaining about.

The only thing I can think of now is to try installing XP to a fat32 partition (not sure if it will) and see if that helps. The other option would be to leave a small (64M or something) fat32 dos partition at the start, then install XP on the second partition.

Just wondering if anyone has seen this, or knows how to fix it?

Thanks in advance,
Chris

chris@codefast.com
ckoch@home.com



Sponsored Link
Ads by Google

Response Number 1
Name: Nikola
Date: November 13, 2001 at 11:40:37 Pacific
Reply:

Just one question (Im dont know much about XP) ,but why do you use FAT32 and NTFS partition for the Windows XP?

When you enter windows,just copy loadlin from the CD you have (RedHat) and vmlinuz and load linux.Then edit the /etc/lilo.conf
When you configured it,save the file,exit and install it by typing "lilo".
If you configured it properly everyting should work.


0

Response Number 2
Name: Christopher Koch
Date: November 13, 2001 at 12:11:51 Pacific
Reply:

Well, the problem isnt really that I dont know how to boot linux (lilo or loadlin should both work), but that I cannot install linux in the first place to boot it.

The loadlin fix would allow me to boot linux without using lilo, but ONLY if linux is installed, which it is not :(

Thanks for trying though.
Chris


0

Response Number 3
Name: Rapidweather
Date: November 13, 2001 at 15:53:24 Pacific
Reply:

I have mandrake 8.0, redhat 7.1, windows 3.1 - Dos 6.21, and Windows 98 on one computer, using two hard drives. I have to use boot disks for everything but Windows 98, which boots by default.
Get tomsrtbt linux (fits on a floppy), and use fdisk in it to set up partitions for your linux installations. I installed windows 98 first, and I assume that you can
do that with XP also, and then use System Commander to reduce the size of the Windows partition to say, 10GB. Don't stay with System commander, just disable it, and go to tomsrtbt linux to
set up your Linux native "/", swap and "/home" for your first linux installation, say Mandrake 8. You can do
Redhat 7.1 if you prefer. It will go to the extended partitions you have set up with tomsrtbt linux fdisk, and install there. make a boot floppy during the installation, and do not worry about lilo or grub,it won't work on big HDD's.
tosmrtbt linux will tell you that when you fdisk /hda
At this point you can boot normally into
XP, without a bootloader, etc. just turn the computer on. To get to your Linux, insert the boot disk the install had you make, and you will go right to your linux.


0

Response Number 4
Name: freemann123
Date: November 13, 2001 at 16:51:09 Pacific
Reply:

I've got Linux 6.2 and XP installed on a mediocre 12GB HD and everything runs ok. However I did have problems setting it up. For me the problem was loading lilo during boot up, it just stopped at "li" and hangs. Assuming you have something similiar, the solution is to ensure that you put the boot directory of your linux in the first 2GB of your primary HD.

One word of advice is to partition your drive using fdisk in Linux, ensure that the space you allocated for the boot dir is of linux native, this prevents windows from reading it.

If this was waffle then sorry. Hope it is of some use :)


0

Response Number 5
Name: Carey Kelly
Date: November 13, 2001 at 17:04:25 Pacific
Reply:

Too tired to read half that crap from
above.. too much for the eyes. I put
NT and Linux 7.0 on my boss's laptop
without a hitch. And used the same method
with XP and Linux 7.2 so I know they
work.. Both conditions have same hard drive
used.

Install XP (fat32 if ya want to share files
between) or NTFS and a small fat32 to
use a share between them.

Install Linux but do not install lilo
into the MBR install it into the boot part
(the other option) I didn't use grub either
make the boot disk.

After install make sure ya can still boot XP
and use floppy to boot Linux. Can boot both
still continue otherwise error.

make a dos floppy
boot into linux using linux boot floppy
do a 'df -h'
look for the /boot should be something
like /dev/hda2 or /dev/hhda5 or wherever
ya put the damn thing. found it?

the if=/dev/hda2 should be where your /boot is
mounted so plug it in as needed below.

do a 'dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1'
this will copy boot infor to your /
goto / and see (cd /) bootsect.lnx

then put in your dos floppy and so the follow

mount -t msdos /dev/fd0 /mnt (mount floppy)
cp bootsect.lnx /mnt (copy to floppy)

then ls the /mnt to see if there

umount /mnt ( unmount floppy)


now boot into XP and goto command promt

cd \ to the root of c: and type the follow

attrib -r -s -h boot.ini
edit boot.ini

add the line c:\bootsect.lnx="linux" to
the bottom of the boot.ini file

save and exit
the type attrib +r +s +h boot.ini

reboot and now you can boot both. Have done
this several times.

You can also search for the method to dual boot
NT thats what i did the first time. except

DO NOT INSATLL LILO INTO THE MBR doing a fdisk/mbr
wouldn't even fix it untill I relized that I
got rid of lilo when I did that and would have
to use the boot floppy each time I wanted linux.

Good luck with it. After the first time you
can punch it out easliy. aside from typos


0

Related Posts

See More



Response Number 6
Name: Carey Kely
Date: November 13, 2001 at 18:45:56 Pacific
Reply:

It on my website as well.
http://www.poopoccurs.com

I just put it up the instructions.


0

Response Number 7
Name: Christopher Koch
Date: November 14, 2001 at 09:46:01 Pacific
Reply:

Thanks All,

I tried it again at home last night, but this time I formatted c: with fat32, rather than NTFS on the install, and everything worked fine... damn ntfs. Dunno why that should cause weird partition stuff but it did.

Now that it's all installed, Maybe I should try converting the drive to ntfs... nah, that's just tempting fate :) Do I really want to install everything again? He-he.

Anyhows, Just thought I'd let y'all know it's workin.


0

Response Number 8
Name: drl
Date: November 14, 2001 at 22:06:06 Pacific
Reply:

there are known issues with the new version of ntfs that ships with xp. it alters the partition table. Windows 2k Service pack 2 does it, too. i found out by using powerquest software (partition magic and drive image pro) and finally reading about the issue on powerquest's support site.


0

Response Number 9
Name: victor
Date: January 13, 2002 at 19:35:38 Pacific
Reply:

I have tried four and five times do as kelly said .But all failed.The problem is:
My linux is just can boot by floppy disk and with no graphics log in just console log in and no desktop.
the second I cann't boot linux when I choose boot linux .
The partition magic 7.0 cann't be used , it says "Init failed error 117" Partition's drive letter cann't be indentified"
What is the problem is?How to figure out?
Please send comments to victorxm2000@yahoo.com


0

Response Number 10
Name: Alan Smith
Date: January 24, 2002 at 16:50:05 Pacific
Reply:

I followed Carey's instructions and they worked perfectly first time, even though I have next to nil Linux experience! I hope you're in Tech Support Carey, it'd make a wonderful change from incompetent muddlers one normally finds.

Victor: once you have completed (and can boot) the WinXP install, leave some free space on a hard drive and boot off the Linux CD. Follow the installation steps, but use fdisk (not Disk Druid or Partition Magic) to define your Linux partitions (m for menu, p to print a list of partitions, n for new partition, and w to write the partition table and exit). Once you have done this, the rest is pretty much follow your nose (you should install tour boot loader on the boot partition, not the MBR). This work for me anyway. HTH.

Cheers, ADS


0

Response Number 11
Name: redhat guy
Date: February 9, 2002 at 18:14:08 Pacific
Reply:

remember this: redhat CAN NOT read xp and XP won't accept the cut you make! (512 bytes of Lilo of Grub) as you use on Fat system. XP has different ntfs than 2k or normal NT


0

Response Number 12
Name: Tim
Date: March 23, 2002 at 21:26:33 Pacific
Reply:

Ok, I know XP inside and out, but I'm really a total novice at Linux. I wanted to be able to load Linux from the NT Bootloader. Here's my configuration:
20gb Laptop Hard Drive:
8gb FAT32 C drive for XP
5gb NTFS D drive for backups of my files
5gb left for linux. My /boot partition ends up being hda3. However, when I go in there and type:
dd if=/dev/hda3 of=/bootsect.lnx bs=512 count=1

I get the message: "1+0 In. 1+0 Out."

Next, I looked in the /boot partition and found a file called boot.b. I wondered if this might be the bootsector (nevermind the fact that it is NOT 512 bytes, rather it is 6kb). So I copied that file to C:\, referenced it in the boot.ini, and tried to boot Linux. No such luck. I end up getting a big string of "LI" time after time again. I figured maybe I should change from using bootsect.lnx in the command I referenced above and use boot.b. I still got the error 1+0 in 1+0 out.

Can anyone tell me what's wrong here?

P.S. I'm using Redhat 7.2 by the way


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: redhat 7.1 WinXP dual boot problem

installing 7.1 and dual booting with XP www.computing.net/answers/linux/installing-71-and-dual-booting-with-xp/10038.html

Redhat 7.1, VMware 3 display problems www.computing.net/answers/linux/redhat-71-vmware-3-display-problems/11137.html

dual boot xp / redhat 7.1 www.computing.net/answers/linux/dual-boot-xp-redhat-71/14661.html