Seem to have deleted my home folder

Hi, I was having a couple of glitches with Ubuntu, and since my home folder was mounted on a separate partition I thought the quickest way to sort it out was to reinstall.

Everything went smoothly, except because I changed my username from "james" to "jam", my Documents, Pictures etc. were not where they should be. Instead there were two folders in the /home directory, named james and jam.

I thought the solution was simple, so I ran
sudo mv james jam

Which promptly removed my folder named james, but the jam was still empty. I don't know what happened!

Any help appreciated.

I don't know what happened

I don't know what happened either. Running that command should not have gobbled your folder.

It's not going to be easy to recover your data. See here:
http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html