I am not a coder, but was looking at sfdisk to create 128 MB swap and the rest for root partition. sfdisk -uM /dev/hda <<EOF ,128,S , EOF It could be wrong, there is not much info in man page. I guess a "Here Doc" cannot be coded. Any ideas. Rob. Get your own FREE E-mail address at http://www.linuxfreemail.com Linux FREE Mail is 100% FREE, 100% Linux, and 100% yours!