On Sun, 1 Feb 2009, Joy Methew wrote:
hello all,
i have two hadr disk sda and hda.
I have installed Windows xp on a seperat hard drive(on sda). I installed
the new hard drive and then installed Redhat linux 5 on the new drive(hda).
i set the prority on other(xp) bydefault.
redhat is running fine but when i enter on other it`s not running.
i m sending out put of "fdisk -l" and grub.conf.
thanks
[root@localhost ~]# fdisk -l
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 2 5100 40957717+ f W95 Ext'd (LBA)
/dev/hdc2 * 5101 8924 30716280 83 Linux
/dev/hdc3 8925 9179 2048287+ 82 Linux swap / Solaris
/dev/hdc5 2 5100 40957686 7 HPFS/NTFS
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2065 16587081 c W95 FAT32 (LBA)
/dev/sda2 2066 9725 61528950 f W95 Ext'd (LBA)
/dev/sda5 2066 4615 20482843+ b W95 FAT32
/dev/sda6 4616 7165 20482843+ 7 HPFS/NTFS
/dev/sda7 7166 9725 20563168+ b W95 FAT32
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hdc2
# initrd /boot/initrd-version.img
#boot=/dev/hdc
default=1
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-8.el5.img
title Other
rootnoverify (hd0,4)
chainloader +1
I believe your /boot/grub/device.map will need a line that says :
(hd1) /dev/sda
and the grub.conf statement called 'Other' would need to say:
rootnoverify (hd1,6)
chainloader +1
Although I have never not created partitions 3 and 4 on my disk .. so I
don't know how their absence is handled.
You also may wish to look at Super Grub Disk
<http://www.supergrubdisk.org/>
Barry
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list