I have installed a mongodb on my ubuntu and to my surprise mongodb is looking in the wrong data directory.
In in mongod.conf it says: storage: dbPath: /var/lib/mongodb
However, when I start the mongod serve from my terminal it says: exception in initAndListen: 29 Data directory /data/db not found., terminating
Any suggestions why my mongodb is not correctly loading the config file?