Displaying 1 result from an estimated 1 matches for "grub_setup_scsi".
2005 Nov 27
0
centos4.2 -raid 1 and grub
...own risk...
Jerry
---------
# To load a blank drive with the old partition information use the command:
# sfdisk /dev/hda < /etc/silentm/raidinfo.partitions.hda
# The following command will setup the passed argument to boot in case
the main disk is faulty
# $1 is either /dev/hdb or /dev/sdb
grub_setup_scsi()
{
grub << EOF
find /boot/grub/stage1
device (hd0) /dev/sdb
root (hd0,0)
setup (hd0)
EOF
}
grub_setup_ide()
{
grub << EOF
find /boot/grub/stage1
device (hd0) /dev/hdb
root (hd0,0)
setup (hd0)
EOF
}
DISK_TYPE=`fdisk -l /dev/hda | grep "/dev/hda"`
if [ "$DISK_TYPE"...