Skip to content
PhillyNJ edited this page Apr 27, 2014 · 12 revisions

Welcome to the Sharemounter wiki! This page will provide instructions on how to use Sharemounter for the Raspberry Pi. Although mounting a shared network drive on your Raspberry Pi is not difficult, its cumbersome and it may require you to either enter your network password in clear text or save your password in clear text. Either way was not an option for me.

Sharemounter is written in C. The program is designed to read a config file with your network settings and prompt you for your password, which will be masked.

Sharemounter reads a config file which is setup in the following format:

type=mac
ip=192.168.X.X/OSX_Share_Name
folder=/home/pi/passport
username=OSX_UserName

type indicates if the share is windows or mac. There are 2 options mac or windows ip is the ip address of your mac or windows machine and the share name folder is the directory where you want to mount the share on your Raspberry Pi username is your mac or windows username

You will need to compile the code. The original code was compiled using gcc. If you don't have gcc installed:

sudo apt-get install gcc

To compile the code:

sudo make

Make the file executable:

sudo chmod + sharemounter

To execute:

sudo ./sharemounter /path/to/config/file

Your should see something like this:

Mounting 192.168.X.X from XXXX on /home/pi/XXXX
Mounting of volume XXXX of server XXXXX succeeded.

To access the mounted share, you must be in su

sudo su

To unmount the share, you must be in su.

umount /home/pi/nameofshare 
Clone this wiki locally