LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Dual operating system: Grub dont detect Windows Xp installed in Sata Harddisk (https://www.linuxquestions.org/questions/linux-hardware-18/dual-operating-system-grub-dont-detect-windows-xp-installed-in-sata-harddisk-432086/)

sanjeebko 04-05-2006 04:41 PM

Dual operating system: Grub dont detect Windows Xp installed in Sata Harddisk
 
This is my Harddisk Partation.
_____________________________________
Disk /dev/hda: 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/hda1 * 1 1972 15840058+ c W95 FAT32 (LBA)
/dev/hda2 1973 3897 15462562+ c W95 FAT32 (LBA)
/dev/hda3 3898 14593 85915620 f W95 Ext'd (LBA)
/dev/hda5 3898 7836 31639986 b W95 FAT32
/dev/hda6 11662 14593 23551258+ 7 HPFS/NTFS
/dev/hda7 7837 7849 104391 83 Linux
/dev/hda8 7850 11661 30619858+ 8e Linux LVM

Partition table entries are not in disk order

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2612 20980858+ c W95 FAT32 (LBA)
/dev/sda2 2613 24320 174369510 f W95 Ext'd (LBA)
/dev/sda5 2613 7927 42692706 7 HPFS/NTFS
/dev/sda6 7928 16671 70236148+ 7 HPFS/NTFS
/dev/sda7 16672 24320 61440561 7 HPFS/NTFS
__________________________________________________________________
i have installed Windows XP in /dev/sda1 and linux fedora core 5 in
/dev/hda7(swap) and /dev/hda8(/).
grub detects fedora core 5. but while i select windows xp , it shows
error message .

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 (hd1,6)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd1,6)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,6)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
title Windows Xp
rootnoverify (hd1,0)
chainloader +1
____________________________________________________________________
this file was origanally created by Fedora core 5 installation .while selecting windows Xp in grub, it shows a error and restarts the grub. how can i install both windows xp and fedora core 5 in such case.

:cry: please reply me soon in full detail(i am using linux for first time).

Penguin of Wonder 04-05-2006 06:27 PM

Does your Fedora core install boot and/or run properly? You have what looks like some errors or your written your post wrong. You say your swap is /dev/hda7, but you've got /dev/hda7 setup up as Linux, not swap. Your hexcode should be 82, not 83.

Code:

/dev/hda7 7837 7849 104391 83 Linux
should say..

Code:

/dev/hda7 7837 7849 104391 82 Swap
As far as your chainloading problems, check out this thread I found on another forum. They have some good advice.

http://www.fedoraforum.org/forum/arc...php/t-348.html

Or if your lazy, here is a working grub.conf snippet from a guy with a similar problem,

Code:

title WinXP64
rootnoverify (hd2,0)
makeactive
map (hd2) (hd0)
map (hd0) (hd2)
chainloader +1


Electro 04-05-2006 07:30 PM

Windows is strange because it always wants to be the first drive. You need to remap the drives so Windows can boot up. The lines below should boot up Windows.

title Windows Xp
rootnoverify (hd1,0)
makeactive
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1


All times are GMT -5. The time now is 11:47 PM.