Can you tell us more about the problem and exactly what you are trying to do.
Tell us more about how you are starting X and the errors being reported back. Post them here.
Tell us about this shell you refer to. What shell and what is the relation to the pendrive.
This should help us help you.