LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2003, 04:10 AM   #1
DigitalTygrrr
Member
 
Registered: Apr 2003
Location: /home/BillyGoatStrut
Distribution: Ubuntu, Debian "Sarge", Mac OS X
Posts: 110

Rep: Reputation: 15
Windows, Redhat, Grub and a Promise card


I've searched these forums for the past 3 hours and I can't find a thread that helps my situation. Basically I had 2 separate computers (1 rh9 and 1 xppro) that, for crazy reasons, I decided to combine into one.

So...I have 1 HD with rh9 on it plugged into primary, master. I have 2 HD's with xppro on them plugged into IDE 1 and IDE 2 on the promise card. but here's the kicker...the 2nd xp HD is completely striped with half of the 1st xp HD. (NTFS, dynamic)

Currently, the only way I can choose OS is to set my boot sequence in BIOS. both OS's boot perfectly when I do this. but I would like to have an easier way to do it.

I've tried to add xp to grub...but whenever I select xp, it just comes right back to grub.

this is my grub.conf:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img

title Windows XP Pro
rootnoverify (hd1,0)
chainloader+1
~
~
I've used (hd0,0) (0,1) (1,1) (1,0)

any ideas?
 
Old 04-27-2003, 04:38 AM   #2
DigitalTygrrr
Member
 
Registered: Apr 2003
Location: /home/BillyGoatStrut
Distribution: Ubuntu, Debian "Sarge", Mac OS X
Posts: 110

Original Poster
Rep: Reputation: 15
btw-I've just tried the 'map' thing and then added makeactive and I've still had no luck.
 
Old 04-27-2003, 09:56 AM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What does grub recognise the device as?
(hd1,0)

Make sure of that first then you know what to set as your root.
 
Old 04-27-2003, 03:57 PM   #4
DigitalTygrrr
Member
 
Registered: Apr 2003
Location: /home/BillyGoatStrut
Distribution: Ubuntu, Debian "Sarge", Mac OS X
Posts: 110

Original Poster
Rep: Reputation: 15
the root for linux? I would assume (0,1). I've tried to run fdisk -l, but I've had no luck. so I can't be for sure.

How can you activate fdisk? I know it's there...I've seen it in /sbin.
 
Old 04-27-2003, 10:49 PM   #5
indulis
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Rep: Reputation: 0
...or try cfdisk which is an easier to use utility

cfdisk /dev/hdb

(or fdisk /dev/hdb)

I'd recommend you are VERY CAREFUL not to write any changes to disk that you are absolutely not sure of or you can trash everything in a hurry! I'd recommend that you print the parition table and keep it, as you can use it to try to rescue the disk if you do stuff up.

With fdisk this is
fdisk /dev/hdb
x
p [then cut/paste it to a document and save to a floppy disk or print out on paper]
d [same thing]

m gives you help
r returns you to the "main" menu

cfdisk also has a print option

Using these utilities you should be able to see the XP partition. Remember to subtract 1 from the partition number you see to get the number used by grub.

Cheers,

Indulis
 
Old 04-27-2003, 11:41 PM   #6
DigitalTygrrr
Member
 
Registered: Apr 2003
Location: /home/BillyGoatStrut
Distribution: Ubuntu, Debian "Sarge", Mac OS X
Posts: 110

Original Poster
Rep: Reputation: 15
finally ran fdisk -l...it seems that had to type '/sbin/fdisk -l'...not really sure why. anyway...windows is recognized by linux as the 1st partition on the second HD. hd (1,0). I also know for a fact that windows will boot from floppy whenever I have my BIOS set to load linux. I just had to do a minor adjustment to boot.ini.

so...my question remains. why won't grub load winxp if I use the grub.conf from post#1? it's gotta be a silly little answer. I just know it.

at least I don't have to change the bios every time I wanna go from rh9 to xp!
 
Old 04-28-2003, 12:11 AM   #7
DigitalTygrrr
Member
 
Registered: Apr 2003
Location: /home/BillyGoatStrut
Distribution: Ubuntu, Debian "Sarge", Mac OS X
Posts: 110

Original Poster
Rep: Reputation: 15
I can even add a 'floppy' option to GRUB and it will boot windows. but I still can't put a windows option in GRUB!
 
Old 04-28-2003, 01:05 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I'm not 100% sure about this but as far as I can remember - Grub does not always recognise the drive the same as linux. Open a grub console before you boot and mount each root in turn, eg:
root(hd1,0)

Then find a file that you know should be on windows:
find / io.sys

Once it finds it you should know which drive /partition windows is on. You can discount hd0 because that is what linux is on.
 
Old 04-28-2003, 01:55 PM   #9
DigitalTygrrr
Member
 
Registered: Apr 2003
Location: /home/BillyGoatStrut
Distribution: Ubuntu, Debian "Sarge", Mac OS X
Posts: 110

Original Poster
Rep: Reputation: 15
Aliright...I wasn't able to mount root for HD1 and HD2. (unknown file system . partition type 0x42)

But...I was able to do a GEOMETRY for HD1 and HD2. and I verified that my windows boot partition is on HD (1,0).

I simply think GRUB can't read my windows HD's because they are dynamic disks.

So...my next step is to use NTLDR and add rh9 to my boot.ini. although I haven't had much luck with that either. I create a boot image on my floppy but whenever I try to boot from the floppy, it does not work.

AAARRRGH!

it's very frustrating. any ideas???
 
Old 04-28-2003, 02:28 PM   #10
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you could get the geometry then I can't see why it wouldn't boot. You may also want to check out the official redhat doc:
http://www.redhat.com/advice/tips/dualboot.html

This tells you how to boot windows xp with grub (you will need to change the hd values to match your system - see below - this is probably your best option) or ntldr.

Code:
title Windows XP Pro
	map (hd1,0) (hd0,1)
	map (hd0,1) (hd1,0)
	setup (hd1)
	rootnoverify (hd0,1)
	chainloader +1
 
  


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
booting from grub with redhat9 and promise carde markshifman Linux - Hardware 1 11-04-2003 12:01 PM
promise ultra66 card support in redhat 9? SerfurJ Linux - Hardware 3 08-24-2003 09:10 PM
Dual booting redhat 9 with windows XP using GRUB TechnoBod Linux - Software 2 07-09-2003 06:58 AM
Redhat / Windows XP / Grub question bmar Linux - General 3 04-07-2003 01:32 PM
Redhat 7.2 + Grub + Windows ME Furtzi Linux - Newbie 1 02-19-2002 11:26 PM


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