LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-02-2004, 11:53 AM   #1
brewmvt
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Sata Raid with Grub


Hello,

I am totaly a newbe to Linux. I just instaled Suse 9.0 and am having a hard time getting GRUB to boot my windows OS that was previously installed. I can change the boot order to get the different OS to boot, but thats not what I am looking for really. I am trying to have GRUB do the dual boot. When I instaled Linux I unplugged my raid drives.

Windows Xp is installed on my Sata Raid set up.

Linux SuSe is on IDE 250 gig hard drive. (Primary Master)

I have tried to add something like this to grub

title Windows XP
rootnoverify (hd2)
chainloader +1

I dont know If I am heading the right direction or not there... I have no idea realy where to start trying to get this to work.

help?
 
Old 11-02-2004, 12:06 PM   #2
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
Window's doesn't like being the slave and make sure Windows is active. But
it can be tricked into thinking it's on the primary[grub].


Post the output of #fdisk -l

Search in Lq. I am pretty sure this question has been answered before.

Last edited by UsualTuxpect; 11-02-2004 at 12:11 PM.
 
Old 11-02-2004, 12:22 PM   #3
Wordan
Member
 
Registered: Aug 2003
Distribution: Debian
Posts: 53

Rep: Reputation: 15
Hi,

I just had the same problem two days ago

I have Windows XP on a PATA RAID array and Debian testing installed on a 60GB disk.

Boot order is the 60GB hdd then the onboard raid controller.

After plowing through the grub manual they mentioned that NTLDR (windows XP boot loader) wont load unless it is the first hdd. Im not sure if I interprited that correctly. They say to use the map command. http://www.gnu.org/software/grub/man...#DOS%2fWindows

This is the section in by /boot/grub/menu.lst file that puts windows in the boot menu

Code:
title Windows XP Professional
	rootnoverify (hd1)
	chainloader +1
	map (hd0) (hd1)
	map (hd1) (hd0)

You can see the map command swaping around the disks. be sure to have the space in the middle. Id emagine this should drop in and work for you so long as you have the boot order set up in the bios for your linux disk, then your SATA raid. However they also say "Caution: This is effective only if DOS (or Windows) uses BIOS to access the swapped disks. If that OS uses a special driver for the disks, this probably won't work." Im not sure what this applies to. I first thought It might not work as I needed to load a driver for the onboard raid when starting the windows installer.
 
Old 11-02-2004, 12:25 PM   #4
brewmvt
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0

Well is windows the slave? Does hd0,1,2,3 refer to IDE only?

Because I have 3 ide devices

WD 250 gb hds PM (1.0 gig Swap 40.0 Is Linux partiton then 209 is NTFS free space)
None PS
CD Rom 1 SM
CD Rom 2 SS

SATA 1 80 GIG Segate
SATA 2 80 GIG Segate

So what is SATA considered being? How do I get grub to identify it?

Thnx Wordan ill give that a try


Last edited by brewmvt; 11-02-2004 at 12:29 PM.
 
Old 11-02-2004, 12:36 PM   #5
Wordan
Member
 
Registered: Aug 2003
Distribution: Debian
Posts: 53

Rep: Reputation: 15
Boot order in bios is
hd0
SCSI


hd0 is the linux disk
SCSI (dont know why they refer to it as that) is my PATA RAID windows installation

grub will detect and number your disks according to the boot order in the bios.

the onboard raid controller is refrenced like any other ide drive by grub(ie. your raid setup appears as a single drive). Im just guessing this also applies to serial ATA

If youdont want to modify your menu.lst file try it in the grub console. When you get the boot menu press c then run the commands. Whether this is available to you depends on how your distrobution has set up grub i guess

rootnoverify (hd1)
chainloader +1
map (hd0) (hd1)
map (hd1) (hd0)
boot


to see the drives
rootnoverify ( <TAB>


just a note: i think i have a problem with my bios. im booting off an older backup bios (dualbios motherboard). Because If I run the main bios for some reason nothing comes up after the boot loader, unless i disable the RAID controller in my bios. But then im without windows.

Last edited by Wordan; 11-02-2004 at 12:50 PM.
 
Old 11-02-2004, 12:47 PM   #6
brewmvt
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
SWEEEET!

It works perfectly !!!
Thank you for the help!!

 
  


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
Grub setup for SATA RAID array (FC3) DarkNemesis618 Linux - Hardware 3 08-14-2005 01:51 PM
Perc3Di SCSI RAID + Adaptec 2810SA RAID = Fatal Grub Error? LinuxOnTheEdge Linux - General 2 03-19-2005 02:35 PM
Sata Raid & Ata Raid Marinmo Linux - Hardware 6 08-13-2004 02:19 AM
Sata RAID with onboard raid controller SourCreamAndOni Linux - Hardware 1 05-21-2004 12:51 AM
does linux support the sata raid and ide raid in k7n2 delta ilsr? spyghost Linux - Hardware 10 04-16-2004 05:27 AM

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

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