chown: changing ownership of '/home/pi/RetroPie': Operation not permitted
Just a little explanation for this: FAT32 (vfat in Linux) is a Windows file system that doesn't support Linux file permissions and ownerships. Those are determined by the mount options (here: uid=1000,gid=1000,fmask=0022,dmask=0022) and are immutable by commands like chmod or chown. Thus, the above error message ist normal behaviour for a vfat mount.
@granderjoree just for future reference you need to remove the # before the line in the config file in order for it to be read. # means ignore this line. That's why permit root login was not working for you.
@herb_fargus Yes , thank-you. Sometimes i try to describe or identify something in an easier way to achieve results . Command line (sudo) is a difficult thing to understand if you're not familiar with it.
@mitu But the keyboard is disabled when it crashes, so you can't type the commands to even open raspi-config to be able to enable SSH.
Sometimes, I can free the keyboard by pressing Alt+PrtScr/SysRq+R simultaneously. It's a Linux Magic SysRq key combination that switches the keyboard from raw mode, which graphical programs tend to use, to XLATE mode. May be worth a try.
Note that on some keyboards, Laptops etc. the key combination is slightly different. See the link above for the variations.