On Fri, Nov 07, 2003 at 02:10:58PM +1300, David Kirk wrote:
> 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.
That's because the OS is being presented the logical drives on the RAID
arrays, rather than physical disks.
> 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
'ida' is related to the array controller drive--most modern Compaq
machines use 'cciss' instead. c0d0p1 is controller 0, logical drive 0,
partition 1.
> 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]
> ;;
Try adding:
ida/c?d?)
echo "$p CPQ_IDA_LD" >> $TMP
NUMHD=$[NUMHD+1]
;;
> *) ;;
> esac
> done < /proc/partitions
> fi
> HARDDISKS="`cat $TMP`"
> I am no programmer, so I was wondering how I would get around this
> problem. There are a couple of options.
> 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.
The above should work--I've tested the code snippet I've suggested
against a machine with a similar configuration (except it's using the
cciss driver). I haven't tested a Knoppix install using this
modification, though, so you might hit other snags.
The one problem with my code snippet is that I don't bother to read the
model information from the drive. I don't know what Knoppix uses this
for, but the drives detected by my bit of code will have a model of
"CPQ_IDA_LD".
Cheers,
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]