Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub and SATA-disk again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
emilerl
n00b
n00b


Joined: 05 May 2004
Posts: 6

PostPosted: Thu Sep 23, 2004 2:03 pm    Post subject: Grub and SATA-disk again Reply with quote

I have tried every solution I can find on this forum to get Grub to boot my windows-partition (which is on the last harddrive, last partition) =) but no success

Here is the output of fdisk -l:

Code:

Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         194       97744+  83  Linux
/dev/hda2             195        2178      999936   92  Unknown
/dev/hda3            2179      238216   118963152   83  Linux

Disk /dev/sda: 46.1 GB, 46115758080 bytes
255 heads, 63 sectors/track, 5606 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           2       16033+  83  Linux
/dev/sda2               3        5606    45014130    c  W95 FAT32 (LBA)

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2        5977    48002220    f  W95 Ext'd (LBA)
/dev/sdb2   *        5978       14593    69208020    c  W95 FAT32 (LBA)
/dev/sdb5               2        5977    48002188+   7  HPFS/NTFS


And here is my grub.conf:

Code:

Default 0
timeout 30

splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.8 R4
root (hd0,0)
kernel /kernel-2.6.8-gentoo-r4 root=/dev/hda3

title=Gentoo Linux 2.6.8 R3
root (hd0,0)
kernel /kernel-2.6.8-gentoo-r3 root=/dev/hda3

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


When I try to boot Windows, I get "NTLDR is missing" etc .. and have to reboot. If I enter my BIOS and change the boot-disk from the first /dev/hda (where Grub is installed), to the SATA-disk with Windows, it boots without problem.

What am I missing here? Do I have to map partitions as well as harddrives or what is it?
Back to top
View user's profile Send private message
kezzla
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 253
Location: Austin, TX

PostPosted: Thu Sep 23, 2004 7:19 pm    Post subject: Reply with quote

Try this:
Code:

title WindowsXP
map (hd0) (hd2)
map (hd2) (hd0)
chainloader (hd2,0)+1
Back to top
View user's profile Send private message
emilerl
n00b
n00b


Joined: 05 May 2004
Posts: 6

PostPosted: Fri Sep 24, 2004 12:45 am    Post subject: Reply with quote

Thanks for the tips. Didn't work though.

I got some message about a non working executable format or something ... Any other ideas?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Sep 24, 2004 1:52 am    Post subject: Reply with quote

Since your Windows boot partition is /dev/sdb2, you probably want this
Code:
chainloader (hd2,1)+1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum