Have seen similar threads but can't find a solution.

I have a Samsung Galaxy Y where the boot is stuck and doesn't get past the Samsung logo. I also can't connect it to my computer via the USB to read any files as the computer will say 'installing drivers' and then stop connecting. There is an electricity connection as the battery is charging.

In recovery mode, I have applied both the wipe data/factory reset and wipe cache partition but the problem doesn't get solved.

In recovery mode when entering 'reboot system now' I get the error E: failed to mount data <invalid argument>
E: copy_log_files_to_data : : can't mount /data and then it just goes back to looping at startup.

Any ideas will be greatly appreciated.
Thanks