I am trying to install Knoppix 3.3 on a Compaq Proliant 1600R server with a
Compaq Array Controller. Instead of the disk being /dev/sda it is
/dev/ida/c0d0.
The knx-hdinstall script doesn't see my partitions:
# cat /proc/partitions
major minor #blocks name
72 0 8882160 ida/c0d0
72 1 53024 ida/c0d0p1
72 2 913920 ida/c0d0p2
72 3 7915200 ida/c0d0p3
Here is the bit of code that tries to find the partitions:
# select hard disk for partitioning
> $TMP
NUMHD=0
if [ -f /proc/partitions ] ; then
while read x x x p x
do
case "$p" in
hd?)
if [ "`cat /proc/ide/$p/media`" = "disk" ] ; then
echo "$p `tr ' ' _ </proc/ide/$p/model`" >> $TMP
NUMHD=$[NUMHD+1]
fi
;;
sd?)
x="`scsi_info /dev/$p | grep MODEL | tr ' ' _`"
x=${x#*\"}
x=${x%\"*}
echo "$p $x" >> $TMP
NUMHD=$[NUMHD+1]
;;
*) ;;
esac
done < /proc/partitions
fi
HARDDISKS="`cat $TMP`"
As you can see it only looks for IDE or non-compaq SCSI hard drives.
I am no programmer, so I was wondering how I would get around this problem.
There are a couple of options.
1. Remove most of the above code, find out where $TMP points to and write my
own $TMP file.
2. One of the helpful coders on the list could tell me what I need to add to
the above code so it would recognise my partitions.
3. Leave the RedHat 7.2 installation that is already on there.
I would prefer option 2. If I can get it to work, then I will send the
changes to the author of the original script (giving credit where it is due
of course).
Can anyone help me out?
Later
David Kirk