On Tue, 2003-02-11 at 09:30, Keith Fernandez wrote: > Hi, > Is there a way to put a script in %pre section which tells what hard > disk is present, like hda, hdb, sda, md etc... > and then partiton based on what the hard disk is. > for eg if it was a ide hard disk I would partiton it like this > > > clearpart --all --initlabel > part swap --size 200 --onpart hda1 > part /boot --size 100 --fstype ext3 --onpart hda2 > part / --size 3000 --fstype ext3 --onpart hda3 > > for scsi I would be able to specify --onpart sda1 etc... > > RedHat has given an example for how to set up if there is an ide hdd > available at > http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-kickstart2-preinstallconfig.html > You can use this same script, but instead use 'list-harddrives' command, which will give you the avbailable harddrives, and the size of each harddrive. You can detect SCSI by the leading 'sd'. --brett > -------- -- Brett Schwarz brett_schwarz AT yahoo.com