resizepart: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/resizepart - from package: util-linux

You may install the required package with command apt-get install {package}
Error in other languages:
resizepart: bevel nie gevind nie
resizepart: comandă negăsită
resizepart: comando não encontrado
resizepart: commande introuvable
resizepart: command not found
resizepart: käsku ei ole
resizepart: không tìm thấy lệnh
resizepart: komanda nerasta
resizepart: Kommando nicht gefunden.
resizepart: kommandot finns inte
resizepart: komut yok
resizepart: nie znaleziono polecenia
resizepart: níor aimsíodh an t-ordú
resizepart: no se encontró la orden
resizepart: no s'ha trobat l'ordre
resizepart: opdracht niet gevonden
resizepart: parancs nem található
resizepart: perintah tidak ditemukan
resizepart: príkaz nenájdený
resizepart: příkaz nenalezen
resizepart: команда не найдена
resizepart: командата не е открита
resizepart: 命令找不到
resizepart: コマンドが見つかりません