search for: grub_setup_ide

Displaying 1 result from an estimated 1 matches for "grub_setup_ide".

2005 Nov 27
0
centos4.2 -raid 1 and grub
.../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" = "" ] then echo "Assuming SCSI drives" sfdisk -d /dev/sda > /etc/silentm...