Background I have a 1TB portable usb hard drive which I want to host mongodb data. The OS is ubuntu 15.04 Procedure stop your mongodb service sudo service mongod stop edit `/etc/fstab` so that the computer automatically mounts your portable drive under “mongodb” user everytime the OS boots up: UUID=018483db-1b1c-4dd2-a373-58a6aa5a10be / ext4 errors=remount-ro …
Continue reading “Change mongodb data path to portable hard drive”