LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 08-07-2005, 06:52 PM   #1
Silverflow
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1 , FC4
Posts: 9

Rep: Reputation: 0
Unhappy GRUB Stage2Read Error


haha cool smlies

anyways I got the GRUB Stage2Read Error after installing FC4. I have sort of a complicated setup.
Code:
sda \
     >RAID 0 Via controller  Windows 2000 (not the boot drive)
sdb /

hda > Windows boot partition + FC4 (boot drive)
Grub is installed on the MBR of hda.

I'd like to have GRUB boot windows off of my raided drives as well as fedora off of hda. BTW, when I installed windows first, windows would not boot by itslef! Instead it gave some IO error. I hope hda isn't a dead drive I am able to boot linux rescue and edit the grub config files in vi... but I'm not sure what to change! I'm on a different windows computer and I can't post my grub config.

Does anyone have a similar setup? Any help would be appreciated!
 
Old 08-07-2005, 07:45 PM   #2
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
thought you should read more details about GRUB HOWTO
and find the key words like
Code:
map hda hdb
map hdb hda
hope to help

zhy2111314

Last edited by zhy2111314; 08-07-2005 at 09:13 PM.
 
Old 08-07-2005, 08:34 PM   #3
Silverflow
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1 , FC4
Posts: 9

Original Poster
Rep: Reputation: 0
eh.. looked through the grub howto... no luck
 
Old 08-07-2005, 09:08 PM   #4
Silverflow
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1 , FC4
Posts: 9

Original Poster
Rep: Reputation: 0
here is my grub.conf file:
Code:
default=0
timeout=5

splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
     root (hd0,1)
     kernel /vmzlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd-2.6.11.1.1369_FC4.img
title Windows 2000 Professional
     rootnoverify (hd0,2)
     chainloader +1
here is my device.map file:
Code:
(fd0)     /dev/fd0
(hd0)     /dev/hda


I wrote that by hand but that should be it. It seems like there should be more to my device.map file....
 
Old 08-07-2005, 09:25 PM   #5
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
add
Code:
map (fd0) (hda)
map (hda) (fd0)
for a try.
e.g.
Quote:
Originally Posted by feng_ye@linuxsir.org
# 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=0
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /boot/vmlinuz-2.4.18-5 ro root=/dev/hdc2 hdd=ide-scsi
initrd /boot/initrd-2.4.18-5.img
title Red Hat Linux (2.4.18-3)
root (hd0,1)
kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hdc2 hdd=ide-scsi
initrd /boot/initrd-2.4.18-3.img
title Windows
map (hd0) (hd1)
map (hd1) (hd0)

rootnoverify (hd1,2)
chainloader +1
makeactive
boot
 
Old 08-07-2005, 09:27 PM   #6
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
Quote:
If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:

grub> map (hd0) (hd1)
grub> map (hd1) (hd0)
From http://www.gnu.org/software/grub/
 
Old 08-07-2005, 09:52 PM   #7
Silverflow
LQ Newbie
 
Registered: Nov 2004
Distribution: Mandrake 10.1 , FC4
Posts: 9

Original Poster
Rep: Reputation: 0
After commenting out the lines containing my windows entry, GRUB still stops at stage 2 with a read error. Is there any way to have both linux and windows on 2 raided drives? When I run the Fedora installer it tells me that the partition tables on my raided drives are unreadable and it will erase everything on those drives if i add partitions. Fedora doesn't seem to see my raided drives as one even though it does load my raid driver when the installer starts. -growl-
 
Old 08-07-2005, 10:00 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,177

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
Silverflow shouldn't need to resort to device map.
If Silverflow has a valid Windows "system" partition (*) on hda, then the Windows system can be elsewhere - without needing to "map" drives in grub.

According to grub.conf, you have the following partitions;
/dev/hda1 - ????? (no indication)
/dev/hda2 - Fedora
/dev/hda3 - Windows system (what you called boot) partition

Is this correct ???. If not, might explain the stage2read error.
Have you modified this file ???.

Reboot the FC4 CD, and get into recovery mode, and post the output from
Code:
fdisk -l
(that's l for list).

(*)note: not called a boot partition by M$oft - that (i.e. the "boot" partition) is the partition with the system files on it ....
No, I'm not joking.
 
Old 08-07-2005, 10:04 PM   #9
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
maybe i was wrong ,i thought you have two different harddisks,you should use command 'fdisk -l' like syg00 said
 
  


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Boot problem: "GRUB Loading stage2read Error" after installing PCI Ethernet card nsyng Fedora - Installation 1 06-06-2005 06:53 AM
GRUB loading stage2Read Error SparceMatrix Linux - General 8 06-10-2003 06:31 AM
GRUB error? DriveReady SeekComplete DataRequest Error sth Linux - Hardware 3 02-26-2003 05:10 PM


All times are GMT -5. The time now is 08:29 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