LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-25-2004, 03:18 AM   #1
daveteusink
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
Grub to Boot WindowsXP on SATA


Ok,
So, i finally gave in and installed linux on a normal ATA drive so I could get it on to one of my two 10krpm WD Raptor drives. How can i configure grub to boot XP which is installed on sd2/hdg or hd3???? I'm not really sure I've tried a few different things that dont work. What will happen if I install XP again now that I have my linux install working? Will it erase grub? Sorry i'm such a n00b.

ps anyone know the XFree86 (I know X.org I'll do soon)
config for a logitech MX duo to get the scroll wheel to work
the normal ZAxisMapping isnt working.

Thanks
 
Old 07-25-2004, 05:23 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
AFAIK depending upon the destination drive of Windows XP it will erase the bootloader on it WITHOUT asking (which is typically windows - inpolite). However I am not sure if it is the same scenario if you install Windows on another drive.

SATA and Linux definatively is possible and when you know how to do it it is rather easy. There are different appropoaches depending on your Linux distribution. Somebody told me Fedora supports SATA during installation - but I did not check that yet. However one way will work with ANY distribution:[list=1][*]install on a ATA drive[*]boot with Kanotix (http://www.kanotix.de) or a similar CD-based distro with SATA support[*]partition, format and mount the SATA drive[*]copy over the data from the ATA drive to the SATA drive[*]adjust /etc/fstab on the SATA drive (SATA uses names like SCSI)[*]write the boot loader to the SATA drive[*]reboot[/list=1]
Most probably you need to do following steps before executing step 6:
  • install a kernel with SATA support (2.6.x or 2.4.x with patches)
 
Old 07-25-2004, 02:54 PM   #3
daveteusink
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Exclamation You dont understand

Installing linux is the easy part. I've got Gentoo on a normal ATA IDE Hard Drive running kernel that fully supports my SATA (2.6.7-r11) I need to know how to write the grub config file so that the WindowsXP install (I installed on one of my sata drives before i installed linux) will execute correctly. I've tried stuff like
title="Windows XP"
rootnoverify (sd1,0)
chainloader +1

but this does not lauch XP correctly. Do i need to do something special bc it is a SATA drive? Should I be using (hd3,0) ?? since its my 3rd attached HD..
If i do a reinstall of WindowsXP (unknows future need) to get grub back all I need to do is boot of a CD and re-run grub at command line???
Hope this makes my problems a little clearer
 
Old 07-25-2004, 03:17 PM   #4
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Bit of a n00b myself, but does grub use (hdn,n) notation for paths, (e.g. to the kernel) and lilo-like /dev/hda notation for root partitions?

I could be completely wrong here, not at my own box to check...</covers_back>
 
Old 07-25-2004, 06:32 PM   #5
daveteusink
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Grub? who really knows

Grub assigns hard drives numbers based on how they appear in the system.. i e hdb could end up beaing hd0 if hda is a cdrom. I need a grub expert to help me with this one.....
 
  


Reply



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 XP w/ Grub (IDE + SATA) TruckStuff Linux - General 3 09-25-2006 09:01 PM
GRUB and Win SATA boot rizzy MEPIS 3 08-29-2005 10:58 AM
Setting up GRUB to boot a SATA partition ShastaMaroon Linux - General 2 10-27-2004 12:02 PM
Canot Boot WindowsXP from GRUB snufferz Linux - Newbie 9 04-01-2004 11:34 AM
grub problem....windowsXP will not boot...please help me*tear* bock9259 Linux - Newbie 5 04-01-2004 11:29 AM

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

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