I had the same problem when i first started out on a pi 2, testing stuff crashing and hanging the pi and having to pull the power to get her booting back up again my problem was both a bad card ( every reboot had file system errors) even tho every test i could do on it always said it was ok and an iffy psu.. i swapped out the psu for a good 2 amp one and grabbed a 2 gig samsung card and its never happen'd again. (the 2 gig card only boots the pi before a usb hdd takes over) with the file system on a 32gig partition and the rest of the space is an ntfs partition with my media files on, (so i can power off the pi then attach the usb drive to a windows machine to add/remove media files etc). I also run a custom build of kodi because i found the other builds and distros of kodi restricting ( no disrespect to them. they are good and do good work and testing).. I like to tinker with things as that's how i learn and improve my knowledge base
Sirhc