I also went to a community college for a couple of years before transferring to a larger university. Like you, one of my major concerns was that my community college coursework wouldn't transfer entirely to my new school. Unfortunately, I think you will need to do some research in order to find out which courses will transferable. Generally, any issues with the credit transfer process are due to restrictions that the school you would like the credits to transfer to has in place. Therefore, I would suggest contacting the admissions department of the school you are hoping to transfer to and asking questions about their credit transfer policy. For example, the school I transferred to limited me to a total of 66 possible transfer credits. Fortunately, most credits earned during the first 1 or 2 of college are general education courses that are readily transferable among schools.
In order to be most effective when contacting your target school's admissions department, I would suggest having a list of all of the courses that are necessary for your targeted degree at the community college. That should greatly assist the counselor you speak with in helping you track what credits will be accepted. Additionally, some 4-year schools have agreements with community colleges in the area that allow for direct transferability of credits earned at the community college.