grub segmentation fault on RAID 1 lvm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings, 

I have come across an error during preparing the rebooting of my system
with an updated kernel.  I am receiving a segmentation fault during the
setup phase of grub.  I have RAID 1, so grub-install does not work, of
course.  I have instead either done it by hand or used my own script
(see below).  I have been able to perform this task sucessfully in the
past up to this point with prior kernels on this hardware.  Below is the
output when doing it manually, with /boot on /dev/hda1 mirrored to
/dev/hdb1 on an ext3 volume (/dev/md0).  My lvm volume is at /dev/hda2
mirrored to /dev/hdb2 (/dev/md1).  Both volumes are clean, and /dev/hdc1
and /dev/hdc2 function as hotspares for their respective partitions.

I have noted the thread "grub segmentation fault when trying to do
setup" on July 19th with an issue like this one.  I was hoping that
someone would have some insight into this before I go clear across town
to boot into rescue mode to complete this task.


 GNU GRUB  version 0.95  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the
possible
   completions of a device/filename.]

grub> device (hd0) /dev/hda

grub> device (hd1) /dev/hdb

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0xfd

grub> setup (hd1)Segmentation fault
root@localhost#

Running kernel: 

Linux localhost 2.6.11-1.35_FC3 #1 Mon Jun 13 00:52:08 EDT 2005 i686
athlon i386 GNU/Linux

Other info:

System has been patched as of 8/24/05 automatically via yum
System is an Athlon 2600 on a Gigabyte GA7VM400M-RZ

Here is my grub.conf:

default=0
timeout=10
title Fedora Core (2.6.12-1.1372_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.12-1.1372_FC3 ro root=/dev/Volume00/root
        initrd /initrd-2.6.12-1.1372_FC3.img
title Fedora Core Primary Slave (2.6.12-1.1372_FC3)
        root (hd1,0)
        kernel /vmlinuz-2.6.12-1.1372_FC3 ro root=/dev/Volume00/root
        initrd /initrd-2.6.12-1.1372_FC3.img
title Fedora Core Secondary (2.6.12-1.1372_FC3)
        root (hd2,0)
        kernel /vmlinuz-2.6.12-1.1372_FC3 ro root=/dev/Volume00/root
        initrd /initrd-2.6.12-1.1372_FC3.img
title Fedora Core Old (2.6.11-1.35_FC3)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.35_FC3 ro root=/dev/Volume00/root
        initrd /initrd-2.6.11-1.35_FC3.img
title Fedora Core Old Primary Slave (2.6.11-1.35_FC3)
        root (hd1,0)
        kernel /vmlinuz-2.6.11-1.35_FC3 ro root=/dev/Volume00/root
        initrd /initrd-2.6.11-1.35_FC3.img
title Fedora Core Old Secondary (2.6.11-1.35_FC3)
        root (hd2,0)
        kernel /vmlinuz-2.6.11-1.35_FC3 ro root=/dev/Volume00/root
        initrd /initrd-2.6.11-1.35_FC3.img


The script that I normally use is as follows:

#!/bin/sh
#
# grubraid.sh
#
# Syntax:  grubraid.sh SOURCE TARGET

GRUBCMD=/sbin/grub
TMP=/tmp/grubraid.tmp

if [ -z "$1" ]; then
  echo "Usage:    grubraid.sh GRUBSOURCEDRIVE DESTINATIONDRIVE"
  echo "Example:  grubraid.sh /dev/hda1 /dev/hdb"
  echo "The source drive must be where /boot/grub is located."
  echo "In a RAID configuration, target a physical drive, not"
  echo "an md device."
  exit 1
fi

SOURCEDRV=`echo $1 | tr -d [:digit:]`
SOURCENUM=$((`echo $1 | sed -r -e 's/\/dev\/hd[a-z]//'`-1))

$GRUBCMD --batch --no-floppy <<EOF &> $TMP
device (hd0) $SOURCEDRV
device (hd1) $2
root (hd0,$SOURCENUM)
setup (hd1)
quit
EOF

if grep Error $TMP ; then
  rm -f $TMP
  echo "Error creating boot image!"
  exit 1
fi

rm -f $TMP

--

Shawn Iverson
Technology Associate
MCSA, Linux+, Network+, A+
New Castle Community School Corporation
shawn@xxxxxxxxxxxxxxx



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux