HD Install :: undefined mode number
It is always best to resolve your video setting by using the liveCD and then the VGA mode will be passed to the hard drive install script.
In your case:
As user root edit /etc/lilo.conf
Look for VGA=791
Change it to VGA=normal
After your edit is complete then issue the lilo command to reinstall lilo bootloader
original here.