View Full Version : GRUB configuration code?
magicoddeffect
2008-06-07, 07:42 PM CDT
I've semi-fixed my previous boot problem.
All I need to know now is this: What is the proper boot code for GRUB for my XP hard drive?
When I boot up GRUB, I can select Fedora or XP to boot, but XP won't boot.
It has only two lines of code, which I know are incorrect because they do nothing. One has something to do with "chainloader +1", and is second. The first, I think, is "rootnoverify (hd0)".
XP is on hd1. Or /dev/sdb.
stoat
2008-06-07, 07:57 PM CDT
It has only two lines of code, which I know are incorrect because they do nothing. One has something to do with "chainloader +1", and is second. The first, I think, is "rootnoverify (hd0)".
XP is on hd0. Or /dev/sdb.Hello magicoddeffect,
Maybe you are remembering some of those things wrongly because what you described often happens when XP ends up as a non-first drive in grub.conf. If that is so here, then the map GRUB menu command is indicated. You can read an example of another person's tangle with that issue in another thread here (http://forum.fedoraforum.org/forum/showthread.php?t=186928). If you need help figuring that stuff out, or if you try it and it doesn't work, or if I guessed wrongly about your situation, then return and post the results of these commands in a Fedora terminal...su
cat /boot/grub/grub.conf
/sbin/fdisk -lIt's not a number one. It's a lower-case letter L.
magicoddeffect
2008-06-07, 11:36 PM CDT
I did remember wrongly. XP is on hd1, not 0.
Here's the results of viewing grub.conf.
[magicoddeffect@localhost ~]$ su
Password:
[root@localhost magicoddeffect]# cat /boot/grub/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 (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25.4-30.fc9.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.25.4-30.fc9.x86_64 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.25.4-30.fc9.x86_64.img
title Fedora (2.6.25-14.fc9.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.25-14.fc9.x86_64 ro root=UUID=bb5d4cf9-9f33-4582-8863-9b6eb19cdee3 rhgb quiet
initrd /initrd-2.6.25-14.fc9.x86_64.img
title Windows XP
rootnoverify (hd1,0)
chainloader +1
[root@localhost magicoddeffect]# /sbin/fdisk -l
Disk /dev/sda: 20.4 GB, 20491075584 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x79067906
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 2491 19808145 8e Linux LVM
Disk /dev/dm-0: 20.2 GB, 20283012096 bytes
255 heads, 63 sectors/track, 2465 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 18.1 GB, 18152947712 bytes
255 heads, 63 sectors/track, 2206 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x09a209a2
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 24320 195350368+ 7 HPFS/NTFS
[root@localhost magicoddeffect]#
(And I did know about the L. I'm not that stupid when it comes to terminals.)
stoat
2008-06-08, 05:28 AM CDT
(And I did know about the L. I'm not that stupid when it comes to terminals.)So, how was I supposed to know that? You know, it just so happens that people make that simple mistake far more times than they have the gall to say something like what you just said to someone trying to help them. Good luck, pal.
magicoddeffect
2008-06-08, 12:28 PM CDT
Anyways, Windows won't boot. I tried the hard drive swap command in grub.conf. Still does nothing.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.