Basicly Grub is waiting for boot commands.
Which drive is root?
Where is the kernel?
Etc...
if you type
help at the grub> prompt it will print all the available commands.
A simple example would use the following commands.
Code:
grub> root(hd0,0) [ENTER]
grub> kernel /boot/vmlinuz root=/dev/sda1 [ENTER]
grub> boot [ENTER]
root(hd0,0) this tells grub which partion has the boot folder with the kernel
kernel /boot/vmlinuz root=/dev/sda1 this sets the kernel and any kernel arguments
boot this tells grub to use the above information and boot the system
once you boot your system you can create a config file and store all the commands
For a full explanation see
GNU GRUB Manual