If there are errors on the filesystem while rebooting the server gets stuck on file recovery console.

just issue command fsck from the console.

and then after the file system check is done reboot.

System would work fine now.