Thanks a lot man... This certainly helps. I'll see if I can follow your example into making something useful with libparted. I found the API references here http://www.gnu.org/software/parted/api/modules.html