After sending the email I came up with a hack: for file in sda sdb sdc sdd sde sdf sdg do dd if=/dev/$file of=/dev/null count=1 if [ $? == '0' ]; then hds="$hds $file" fi done But I like this much better: hds=`awk '{print $4}' < /proc/partitions |grep sd[a-z]$` I can skip the hardware raid controllers (cciss/ida <--assuming that's a raid controller) as folks are already doing hardware raid. Would a scsi cdrom show up under /dev/cd* or might it pose as an sd-device? (I've never loaded a system with something other than atapi drives it seems.) Many thanks, peter On 10/7/04 6:01 PM, "Philip Rowlands" <phr@xxxxxxxxxxxx> wrote: > On Thu, 7 Oct 2004, Peter Eisch wrote: > >> In the Customization Guide there's an example for how to sniff out >> drives on a system, but that's really only pertinent to IDE-interface >> devices. Is there a similarly clever way to scan scsi controllers? > > This would work to populate the "hds" variable, but for SCSI drives: > > $ hds=`awk '{print $4}' < /proc/partitions |grep '^sd.[0-9]'` > > > Cheers, > Phil > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list >