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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-02-2006, 09:37 PM
|
#1
|
Member
Registered: Feb 2004
Posts: 52
Rep:
|
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
|
|
|
05-02-2006, 10:32 PM
|
#2
|
Member
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100
Rep:
|
Which OS is giving you the error? FC5 or Windows?
|
|
|
05-02-2006, 10:55 PM
|
#3
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
its error i get i cant boot in any of OS.
|
|
|
05-02-2006, 11:03 PM
|
#4
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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
?
|
|
|
05-02-2006, 11:09 PM
|
#5
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
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
|
|
|
05-02-2006, 11:15 PM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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
|
|
|
05-02-2006, 11:20 PM
|
#7
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
anyone else have any solution for this?
|
|
|
05-02-2006, 11:22 PM
|
#8
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
Didn't work?
|
|
|
05-02-2006, 11:31 PM
|
#9
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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
|
|
|
05-02-2006, 11:39 PM
|
#10
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
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 11:43 PM.
|
|
|
05-02-2006, 11:44 PM
|
#11
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
Quote:
Originally Posted by billymayday
Didn't work?
|
nope it didint work.. i tried to change to (hd1,2) didnt work
|
|
|
05-02-2006, 11:47 PM
|
#12
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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?
|
|
|
05-02-2006, 11:55 PM
|
#13
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
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 11:59 PM.
|
|
|
05-03-2006, 12:07 AM
|
#14
|
Member
Registered: Feb 2004
Posts: 52
Original Poster
Rep:
|
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
|
|
|
05-03-2006, 12:18 AM
|
#15
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|