LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2006, 08:37 PM   #1
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Rep: Reputation: 15
Grub Error - Windows XP and FC 5


here is fdisk -l
Code:
Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot         Start       End       Blocks       Id       System
/dev/hda1 *                 1      3825     30724281       7        HPFS/NTFS
/dev/hda2                3826     14946     89329432+      f        W95 Ext'd (LBA)
/dev/hda5                3826      5100     10241406       7        HPFS/NTFS
/dev/hda6                5101      9562     35840983+      7        HPFS/NTFS
/dev/hda7                9563     14946     43246948+      7        HPFS/NTFS



Disk /dev/hdd: 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/hdd1 *                 1      3144     25254148+      7        HPFS/NTFS
/dev/hdd2                3145     24321    170104252+      f        W95 Ext'd (LBA)
/dev/hdd5                3145      6169     24298281       83       Linux
/dev/hdd6                6170     12096     47608596       7        HPFS/NTFS
/dev/hdd7               12097     18250     49421973+      7        HPFS/NTFS
/dev/hdd8               18251     24321     48765276       7        HPFS/NTFS
after that i did

Code:
grub-install --recheck /dev/hda

Installation finished. No error reported
This is contents of the device map /boot/grub/device.map
check if this is correct or not. if any of the lines is incorrect, fix it and re-run the script 'grub-install'.

(fd0)    /dev/fd0
(hd0)    /dev/hda
(hd1)    /dev/hdd
then i typed this to check if they are correct

Code:
cat /boot/grub/device.map

(fd0)    /dev/fd0
(hd0)    /dev/hda
(hd1)    /dev/hdd
then i rebooted i got same error

Code:
GRUB Loading stage 1.5.

GRUB Loading, Please wait...
Error 21
here is the config file again

Code:
 # 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 (hd2,4) 
 #          kernel /boot/vmlinuz-version ro root=/dev/hdd5 
 #          initrd /boot/initrd-version.img 
 #boot=/dev/hda 
 default=1
 timeout=30 
 splashimage=(hd2,4)/boot/grub/splash.xpm.gz 
 hiddenmenu
 title Fedora Core (2.6.15-1.2054_FC5)
           root (hd3,4)
           kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
           initrd /boot/initrd-2.6.15-1.2054_FC5.img
 title Windows XP Prfessional
           rootnoverify (hd0,0)
           chainloader +1
 
Old 05-02-2006, 09:32 PM   #2
drowbot
Member
 
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100

Rep: Reputation: 15
Which OS is giving you the error? FC5 or Windows?
 
Old 05-02-2006, 09:55 PM   #3
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
its error i get i cant boot in any of OS.
 
Old 05-02-2006, 10:03 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I believe 21 means Selected disk does not exist.

Since Grub uses it's own drive designations (you've listed them yourself), shouldn't it read something like:

default=1
timeout=30
splashimage=(hd1,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,4)
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_FC5.img
title Windows XP Prfessional
rootnoverify (hd0,0)
chainloader +1

?
 
Old 05-02-2006, 10:09 PM   #5
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
I believe 21 means Selected disk does not exist.

Since Grub uses it's own drive designations (you've listed them yourself), shouldn't it read something like:

default=1
timeout=30
splashimage=(hd1,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,4)
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_FC5.img
title Windows XP Prfessional
rootnoverify (hd0,0)
chainloader +1

?

got the same error
 
Old 05-02-2006, 10:15 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not my area, but what I'd do is comment out the linux load (and the splash) and see if windows boots.

Then I'd do some grub reading and check that hdd5 equals hd1,4 and not hd1,5, hd1,2 or hd1,3.

My money's on hd1,2, but as I said, not my area
 
Old 05-02-2006, 10:20 PM   #7
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
anyone else have any solution for this?
 
Old 05-02-2006, 10:22 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Didn't work?
 
Old 05-02-2006, 10:31 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
From the manual page:

The device syntax used in GRUB is a wee bit different from what you may have seen before in your operating system(s), and you need to know it so that you can specify a drive/partition.

Look at the following examples and explanations:

(fd0)

First of all, GRUB requires that the device name be enclosed with `(' and `)'. The `fd' part means that it is a floppy disk. The number `0' is the drive number, which is counted from zero. This expression means that GRUB will use the whole floppy disk.

(hd0,1)

Here, `hd' means it is a hard disk drive. The first integer `0' indicates the drive number, that is, the first hard disk, while the second integer, `1', indicates the partition number (or the pc slice number in the BSD terminology). Once again, please note that the partition numbers are counted from zero, not from one. This expression means the second partition of the first hard disk drive. In this case, GRUB uses one partition of the disk, instead of the whole disk.

(hd0,4)

This specifies the first extended partition of the first hard disk drive. Note that the partition numbers for extended partitions are counted from `4', regardless of the actual number of primary partitions on your hard disk
 
Old 05-02-2006, 10:39 PM   #10
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
From where grub should be reading?

here where i have installed Windows XP
Code:
/dev/hda2                3826     14946     89329432+      f        W95 Ext'd (LBA)
here where i have installed FC 5
Code:
/dev/hdd5                3145      6169     24298281       83       Linux

Last edited by gujuboy; 05-02-2006 at 10:43 PM.
 
Old 05-02-2006, 10:44 PM   #11
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
Didn't work?
nope it didint work.. i tried to change to (hd1,2) didnt work
 
Old 05-02-2006, 10:47 PM   #12
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd have thougt hda,1 for Windows (or is it extended in which case it would be hda,4 if hda1 is primary?). Is hdd5 a primary or extended partition?
 
Old 05-02-2006, 10:55 PM   #13
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
here is my IDE Configuration
Code:
IDE Cntroller                                  Both
PCI IDE Bus Master                             Enabled
Hard Disk Pre-Delay                            Disabled


•  Primary IDE Master                    Maxtor 6Y120P0
               Drive Installed                       Maxtor 6Y120P0
               Type                                  Auto
               Maximum Capacity                      117246MB
               
               Configuration Options Selected by BIOS
                
               LBA Mode Contro                       Enabled
               Multi-Sector Transfers                16 Sectors
               PIO Mode                              Mode 4
               Ultra DMA                             Mode 5
               Cable Detected                        80 Conductor


•  Primary IDE Slave                      WDC WD400EB-11CPFO
               Drive Installed                       WDC WD400EB-11CPFO
               Type                                  Auto
               Maximum Capacity                      38166MB
               
               Configuration Options Selected by BIOS
                
               LBA Mode Control                      Enabled
               Multi-Sector Transfers                16 Sectors
               PIO Mode                              Mode 4
               Ultra DMA                             Mode 5
               Cable Detected                        80 Conductor

•  Secondary IDE Master                  _NEC DVD_RW ND-3540A
               Drive Installed                       _NEC DVD_RW ND-3540A
               Type                                   Auto
               
               Configuration Options Selected by BIOS
                
               LBA Mode Control                     Enabled
               Multi-Sector Transfers               Disabled
               PIO Mode                             Mode 4
               Ultra DMA                            Mode 2
               Cable Detected                       80 Conductor

•  Secondary IDE Slave                   ST3200822A
               Drive Installed                       ST3200822A
               Type                                  Auto
               Maximum Capacity                      131071MB

               Configuration Options Selected by BIOS
                
               LBA Mode Control                      Disabled
               Multi-Sector Transfers                16 Sectors
               PIO Mode                              Auto
               Ultra DMA                             Disabled
               Cable Detected                        80 Conductor

Last edited by gujuboy; 05-02-2006 at 10:59 PM.
 
Old 05-02-2006, 11:07 PM   #14
gujuboy
Member
 
Registered: Feb 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
I'd have thougt hda,1 for Windows (or is it extended in which case it would be hda,4 if hda1 is primary?). Is hdd5 a primary or extended partition?
lol i m confused now.. i dontknow where i have installed windows in .. all i know is windows in Disk /dev/hda: 122.9 GB, 122942324736 bytes
 
Old 05-02-2006, 11:18 PM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It's the partions you need to worry aout, not the drives. You already know the drives from the original post.

And yes, I think grub is confusing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 10/Windows XP Pro - GRUB Error 17 Byronious Linux - Newbie 6 11-18-2005 10:41 PM
Dual boot Linux with Windows: Grub Error 17 Veniogenesis Linux - Newbie 3 10-23-2005 09:41 AM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 07:47 AM
Error w/ grub booting windows xp Ryknow215 Linux - General 26 05-22-2004 02:10 AM
grub or windows error and how to fix netquest1 General 2 04-30-2004 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration