I just finished doing this on RHL 7.3, so this should work for you too. Just to make it easy, I've included the relevant parts of my ks.cfg. Pay close attention to the mknod stuff, you'll need it. You could also do this with sfdisk, but this way allows you a little more flexibility (in my opinion). --- BEGIN ks.cfg --- # let the RedHat installer handle filesystems. # we've already created the partitions with our %pre section part /boot --fstype ext2 --onpart sda1 part swap --onpart sda2 part / --fstype ext3 --onpart sda3 part /tmp --fstype ext2 --onpart sda5 part /usr --fstype ext3 --onpart sda6 part /home --fstype ext3 --onpart sda7 part /var --fstype ext3 --onpart sda8 part /var/lib/mysql --fstype ext3 --onpart sda9 %pre --interpreter /usr/bin/bash # use the preinstall section here to partition the disk # the device doesn't exist, so let's create it dev=/tmp/sda mknod ${dev} b 8 0 # partition definitions clean='o' # create a new partition table boot='n p 1 "" +50M t 1 83' # kernels and such swap='n p 2 "" +2G t 2 82' # swap space root='n p 3 "" +1536M t 3 83' # / (base os and misc.) ext='n e 4 "" ""' # rest of disk for logicals tmp='n "" +2G t 5 83' # /tmp (big, just in case) usr='n "" +1536M t 6 83' # /usr (system, small) home='n "" +3G t 7 83' # /home (apps, relatively small) var='n "" +3G t 8 83' # /var (logfiles) mysql='n "" "" t 9 83' # /var/lib/mysql (databases, big) # create the partitions. Thanks for the help, Gabriel Donnell eval printf '"%s\n"' ${clean} ${boot} ${swap} ${root} ${ext} ${tmp} ${usr} ${home} ${var} ${mysql} w | fdisk ${dev} # __ END of %pre __ --- END ks.cfg --- On Mon, Nov 17, 2003 at 03:49:50PM -0500, Depankar Neogi wrote: > Hi, > > I perform kickstart based installation for a RH7.2 (actually RHAS2.1) > system. > I would like to know if I can specify ks.cfg the exact device and > partition to create. > > Currently I do - > ----------------- > clearpart --all > part /boot --fstype ext3 --size 256 --ondisk sda > part swap --size 1000 --grow --maxsize 1028 --ondisk sda > part / --fstype ext3 --size 1000 --ondisk sda > part /usr --fstype ext3 --size 1000 --grow --maxsize 4000 --ondisk sda > ..... > ----------------- > > My problem is that from system to system installation, the "device - > partition" > combination varies. I would like my "/" to be always on "/dev/sda1" and > "/usr" always on /dev/sda2 etc. > > Since I start from scratch, I am not able to use > "--onpart <part> or --usepart <part>" option. > > Is there a way to achieve the creation of device before creation of > partition ? > > Or, is there any other way I can achieve my objective ? > > thanks, > > -Depankar > > > _______________________________________________ > Anaconda-devel-list mailing list > Anaconda-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/anaconda-devel-list > Chris Cosby SciCare Software Services 770.236.1128 (office) 678.488.5982 (cel) On Mon, Nov 17, 2003 at 03:49:50PM -0500, Depankar Neogi wrote: > Hi, > > I perform kickstart based installation for a RH7.2 (actually RHAS2.1) > system. > I would like to know if I can specify ks.cfg the exact device and > partition to create. > > Currently I do - > ----------------- > clearpart --all > part /boot --fstype ext3 --size 256 --ondisk sda > part swap --size 1000 --grow --maxsize 1028 --ondisk sda > part / --fstype ext3 --size 1000 --ondisk sda > part /usr --fstype ext3 --size 1000 --grow --maxsize 4000 --ondisk sda > ..... > ----------------- > > My problem is that from system to system installation, the "device - > partition" > combination varies. I would like my "/" to be always on "/dev/sda1" and > "/usr" always on /dev/sda2 etc. > > Since I start from scratch, I am not able to use > "--onpart <part> or --usepart <part>" option. > > Is there a way to achieve the creation of device before creation of > partition ? > > Or, is there any other way I can achieve my objective ? > > thanks, > > -Depankar > > > _______________________________________________ > Anaconda-devel-list mailing list > Anaconda-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/anaconda-devel-list > Chris Cosby SciCare Software Services 770.236.1128 (office) 678.488.5982 (cel)