title: Changing MongoDB data store directory
body: <p>Until now I have not been specifying a MongoDB data directory and have had only one 30 GB primary partition.</p>
  
  <p>I just ran out of space and added a new hard disk. How can I transfer my data (that is apparently in <code>/var/lib/mongodb/</code>) and configure MongoDB so that everything runs off of the new disk without affecting my existing installation?</p>