Grub Rescue Without CD : Error

I deleted 2 partitions on my hard disk and now I am unable to boot my pc. I searched and found that it is possible to boot without a CD, but the method is not working for me because I can't find the partition with the /boot directory.Each -ls (hd0,x) command says unknown file system.(x=1,2,3) Please help.I am stuck for 7 hours now.

The method I was using is :

ls
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) // Tried to locate /boot after this
set prefix=(hd0,x)/boot/grub
set root=(hd0,x)
set
ls /boot ---> says unknown filesystem in every case for each x value 

--Rest steps abandoned


Solution 1:

If the steps you've done always returned an "Unknown FileSystem" error, this only means that one of the two unnamed partitions is actually your Ubuntu partition ! I assume the other partition was the swap .. I suppose why they were unnamed under Windows, because they were formatted as exFat, the FileSystem used among linux systems .. And, since Windows can't recognize these FileSystems, it simply showed them unnamed, and probably warned you that they might be used by other systems .. I know that, because I actually formatted my linux partitions three times that way !

The only solutions I think would be most practical is to re-install Ubuntu, your software and some recovery software in case you stored some important files in your Ubuntu partition ..

Also, Green partitions in the windows disk manager refer to Extended Partitions, I'm not sure what that's supposed to mean, but that's how most linux systems are assembled ..