error: unknown filesystem.
Entering rescue mode...
grub rescue
Switch on the System, wait untill you get the Grub Rescue Screen.Type the following commands
You will get something like this (hd0),(hd0,msdos1)(hd0,msdos2)(hd0,msdos3) based on no of partitions
You need to find which drive is Ubuntu root. For that type the following:
Ex: set prefix=(hd0,msdos2)/boot/grub
If you are not getting an error: You can proceed to the next command after that:
Your PC will now boot successfully. Now select Ubuntu & login.
Open Terminal( Ctr+Alt+T or use the search)
Now the bootloader error is fixed you should be able to boot your System normally & even your data is intact.