So, here's the story of this problem
I have my work laptop dualbooted with Windows7 and Ubuntu 12.04 LTS. I was doing preparations for a tutorial on openGL I wanted to do and I installed some packages, namely, libxmu-dev and libxi-dev. However, one of these changed like 20 packages that were largely the same but with xorg-* instead of xserver-* prefixes. When I rebooted several peripherals didn't work. I mistakenly destroyed the partition that held Ubuntu after making my backups but when I rebooted this message was lying in wait for me.
error: unknown partition grub rescue:
I tried using ls to move around the partitions but no matter what I do I always get the same message.
error: unknown partition
I even tried reinstalling Ubuntu but the install process failed when it reached the grub configuration. What do I do? PS: Sorry If this is a common question, I read around the forums and everyone could read and modify their partitions on first try, not my case however.