views:

53

answers:

0

I seem to be unable to properly mount my mongoDB database as a drive using gridfs-fuse. Here are the steps I am following:

I followed the directions listed here: http://www.coffeepowered.net/2010/02/24/serving-files-out-of-gridfs-part-2/.

I am running Mac OS X Leopard (64 bit) and have mongodb running and linked at /opt/mongo. Scons runs perfectly:

scons: Reading SConscript files ...
Checking for C library mongoclient... yes
Checking for C library fuse... yes
Checking for C library boost_thread-mt... yes
Checking for C library boost_filesystem-mt... yes
Checking for C library boost_system-mt... yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o main.o -c -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/mongo/include main.cpp
g++ -o operations.o -c -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/mongo/include operations.cpp
g++ -o options.o -c -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/mongo/include options.cpp
g++ -o local_gridfile.o -c -D_FILE_OFFSET_BITS=64 -I/opt/local/include -I/opt/mongo/include local_gridfile.cpp
g++ -o mount_gridfs main.o operations.o options.o local_gridfile.o -L/opt/local/lib -L/opt/mongo/lib -lmongoclient -lfuse -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt
scons: done building targets.

I use the following command to mount:

./mount_gridfs --db=mydb --host=localhost /mnt/gridfs

When I try to cd to /mnt/gridfs I get the following error:

-bash: cd: /mnt/gridfs: Input/output error

When I try to visit using Finder I get the following error:

The alias "gridfs" can't be opened because the original item can't be found.

Any ideas what might be causing this or how I can fix it?