[gentoo-user] Grub won't boot SATA WinXP disk

2006-04-22 Thread mattr
I just put in a SATA drive into an otherwise PATA machine.  I put Windows XP 
on the new drive.  I added the following to my grub.conf:

title=Windows XP
rootnoverify (hd2,0)
makeactive
chainloader +1

but when I tell grub to boot this item, I get an otherwise blank screen with 
the text:

rootnoverify (hd2,0)
makeactive
chainloader +1

and nothing else happens.

I have never had difficulty getting grub to play with Windows in the past, but 
that was always with PATA hardware.

I have tried editing the grub configuration at boot time to see if grub 
doesn't like my drive number or something.  I used the TAB autocompletion 
feature which lists three disks (hd0, hd1, and hd2).  The former two are 
definitely my raid array based on the number of partitions they contain.  The 
latter has only one partition (according to grub's TAB autocompletion) which 
is as it should be given that it is obviously the Windows disk.

I'm at a loss here.  Any help would be greatly appreciated.  I'm afraid I have 
to use my BIOS to switch boot disks until I resolve this.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Grub won't boot SATA WinXP disk

2006-04-22 Thread Allan Spagnol Comar
Hi, I have had a similar problem, and it was about the disk and
partition numering. When I configured grub, it seems to me that SATA
disk was disk 0, but when botting it was disk 1, I saw you try some
combination of numbers, but, you are sure about partition number ? it
was in fack at first partition your windows system ? I will try
something that way, I could help more if you print a fdisk -l here.

holpe it helps, Allan

On 4/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I just put in a SATA drive into an otherwise PATA machine.  I put Windows XP
 on the new drive.  I added the following to my grub.conf:

 title=Windows XP
 rootnoverify (hd2,0)
 makeactive
 chainloader +1

 but when I tell grub to boot this item, I get an otherwise blank screen with
 the text:

 rootnoverify (hd2,0)
 makeactive
 chainloader +1

 and nothing else happens.

 I have never had difficulty getting grub to play with Windows in the past, but
 that was always with PATA hardware.

 I have tried editing the grub configuration at boot time to see if grub
 doesn't like my drive number or something.  I used the TAB autocompletion
 feature which lists three disks (hd0, hd1, and hd2).  The former two are
 definitely my raid array based on the number of partitions they contain.  The
 latter has only one partition (according to grub's TAB autocompletion) which
 is as it should be given that it is obviously the Windows disk.

 I'm at a loss here.  Any help would be greatly appreciated.  I'm afraid I have
 to use my BIOS to switch boot disks until I resolve this.
 --
 gentoo-user@gentoo.org mailing list




--
An application asked:
Requeires Windows 9x, NT4 or better,
so I´ve installed Linux

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Grub won't boot SATA WinXP disk

2006-04-22 Thread Christopher E
Hello there,

Try adding a map in there like this

map (hd1) (hd0)
map (hd0) (hd1)

now I am assuming that your windows is on /dev/sdb in linux or its it
your first drive if it is /dev/sdb the above code should work, put
this under the windows title :-)

the reason you are puting this twice is to swap both of the dirves

Hope that helps

Sincerely,
Christopher

On 4/22/06, Allan Spagnol Comar [EMAIL PROTECTED] wrote:
 Hi, I have had a similar problem, and it was about the disk and
 partition numering. When I configured grub, it seems to me that SATA
 disk was disk 0, but when botting it was disk 1, I saw you try some
 combination of numbers, but, you are sure about partition number ? it
 was in fack at first partition your windows system ? I will try
 something that way, I could help more if you print a fdisk -l here.

 holpe it helps, Allan

 On 4/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  I just put in a SATA drive into an otherwise PATA machine.  I put Windows XP
  on the new drive.  I added the following to my grub.conf:
 
  title=Windows XP
  rootnoverify (hd2,0)
  makeactive
  chainloader +1
 
  but when I tell grub to boot this item, I get an otherwise blank screen with
  the text:
 
  rootnoverify (hd2,0)
  makeactive
  chainloader +1
 
  and nothing else happens.
 
  I have never had difficulty getting grub to play with Windows in the past, 
  but
  that was always with PATA hardware.
 
  I have tried editing the grub configuration at boot time to see if grub
  doesn't like my drive number or something.  I used the TAB autocompletion
  feature which lists three disks (hd0, hd1, and hd2).  The former two are
  definitely my raid array based on the number of partitions they contain.  
  The
  latter has only one partition (according to grub's TAB autocompletion) which
  is as it should be given that it is obviously the Windows disk.
 
  I'm at a loss here.  Any help would be greatly appreciated.  I'm afraid I 
  have
  to use my BIOS to switch boot disks until I resolve this.
  --
  gentoo-user@gentoo.org mailing list
 
 


 --
 An application asked:
 Requeires Windows 9x, NT4 or better,
 so I´ve installed Linux

 --
 gentoo-user@gentoo.org mailing list



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Grub won't boot SATA WinXP disk

2006-04-22 Thread maxim wexler
I've done this on SATA and IDE drives and combos of
the same and I never got XP to boot unless I used
rootnoverify (hd0,0). Macro$haft insists on being
first in my experience. FWIW.

Make a grub boot disk(if you haven't already) and
practice until you find the proper sequence of
commands; then you can put them into a conf file and
do a grub-install. I'd do that first. A false move
could wipe out your MBR.

As I recall I completey destroyed the boot partition
on a brand new HD while fumbling with GRUB. But it was
still under warranty Whew!

--- [EMAIL PROTECTED] wrote:

 I just put in a SATA drive into an otherwise PATA
 machine.  I put Windows XP 
 on the new drive.  I added the following to my
 grub.conf:
 
 title=Windows XP
 rootnoverify (hd2,0)
 makeactive
 chainloader +1
 
 but when I tell grub to boot this item, I get an
 otherwise blank screen with 
 the text:
 
 rootnoverify (hd2,0)
 makeactive
 chainloader +1
 
 and nothing else happens.
 
 I have never had difficulty getting grub to play
 with Windows in the past, but 
 that was always with PATA hardware.
 
 I have tried editing the grub configuration at boot
 time to see if grub 
 doesn't like my drive number or something.  I used
 the TAB autocompletion 
 feature which lists three disks (hd0, hd1, and hd2).
  The former two are 
 definitely my raid array based on the number of
 partitions they contain.  The 
 latter has only one partition (according to grub's
 TAB autocompletion) which 
 is as it should be given that it is obviously the
 Windows disk.
 
 I'm at a loss here.  Any help would be greatly
 appreciated.  I'm afraid I have 
 to use my BIOS to switch boot disks until I resolve
 this.
 -- 
 gentoo-user@gentoo.org mailing list
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Grub won't boot SATA WinXP disk

2006-04-22 Thread Mick
On 22/04/06, maxim wexler [EMAIL PROTECTED] wrote:
 I've done this on SATA and IDE drives and combos of
 the same and I never got XP to boot unless I used
 rootnoverify (hd0,0). Macro$haft insists on being
 first in my experience. FWIW.

The map command bypasses that little problem, by virtually fooling the
M$Windoze OS to see that it is in the first hard drive.

 Make a grub boot disk(if you haven't already) and
 practice until you find the proper sequence of
 commands; then you can put them into a conf file and
 do a grub-install. I'd do that first. A false move
 could wipe out your MBR.

So would an 'intentional' move to install Grub in the MBR of the first
device.  A boot floppy is handy, but as long as Grub boots normally
you can press 'c' to drop into a command prompt and use find to find
whatever partition you're after, or 'e' to edit individual entries in
the menu, until the particular OS boots.

 As I recall I completey destroyed the boot partition
 on a brand new HD while fumbling with GRUB. But it was
 still under warranty Whew!

Using the fixmbr command from a WinXP installation CD would restore
it.  Better though to install Grub's boot code in the MBR.  BTW, the
fixboot command will restore the partition boot sector in a hosed
WinXP partition.  None of this will help with a hardware failure of
course, and I am at a loss as to how any software manipulation that
Grub can perform would damage a hard drive.

In conclusion, I agree with Christopher's suggestion that the only way
to make WinXP boot from any other than the first drive is to use the
map command.  A point to note is that WinXP is installed on the third
device so instead of hd1, hd0 you may want to try hd2, hd0.

Good luck.
--
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Grub won't boot SATA WinXP disk

2006-04-22 Thread mattr
On Saturday 22 April 2006 11:22 am, Christopher E wrote:
 Hello there,

 Try adding a map in there like this

 map (hd1) (hd0)
 map (hd0) (hd1)

 now I am assuming that your windows is on /dev/sdb in linux or its it
 your first drive if it is /dev/sdb the above code should work, put
 this under the windows title :-)

 the reason you are puting this twice is to swap both of the dirves

 Hope that helps

 Sincerely,
 Christopher


Problem solved!  My system is arranged thusly:

Grub is installed on hd0 and hd1 (they are a RAID mirror).  These are known as 
hda and hdc in Linux.  Windows is installed on hd2,0.  This is known as sda1 
in Linux.

I had to add:

title=Windows doesn't play nicely with others
map (hd2) (hd0)
map (hd0) (hd1)
map (hd1) (hd2)
rootnoverify (hd2,0)
makeactive
chainloader +1

to my grub.conf.  Actually, I could simply do these maps instead:

map (hd2) (hd0)
map (hd0) (hd2)

since hd0 is identical to hd1.

Thanks for all the help, everyone.
-- 
gentoo-user@gentoo.org mailing list