# hda1 -> linux, hda2 -> swap, hda3 -> linux sfdisk /dev/hda << EOF 0,512,83,* 513,800,82,* 801,,83,* ; EOF