LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GRUB Stage2Read Error (https://www.linuxquestions.org/questions/linux-newbie-8/grub-stage2read-error-350952/)

Silverflow 08-07-2005 06:52 PM

GRUB Stage2Read Error
 
:newbie: 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 :cry: 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.
:rolleyes:
Does anyone have a similar setup? Any help would be appreciated! :)

zhy2111314 08-07-2005 07:45 PM

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

Silverflow 08-07-2005 08:34 PM

eh.. :confused: looked through the grub howto... no luck

Silverflow 08-07-2005 09:08 PM

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....

zhy2111314 08-07-2005 09:25 PM

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


zhy2111314 08-07-2005 09:27 PM

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/

Silverflow 08-07-2005 09:52 PM

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-:cry:

syg00 08-07-2005 10:00 PM

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.

zhy2111314 08-07-2005 10:04 PM

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


All times are GMT -5. The time now is 08:33 AM.