Как правильно написать?

  • what is correct?
    He lived aboard the ship or he lived on board ship.

  • aboard - это предлог