Is it possible to enable Samba on VLow Write Image

I've solved this problem - see guide at http://openenergymonitor.org/emon/node/12124

I would like to enable Samba on the VLow Write Image and I can't get it to start at boot due to the read only file system. If I type "rpi-rw" followed by "Sudo /etc/init.d/samba restart" and "rpi-ro" Samba works until the next reboot. Does anyone know what it is trying to write to so I can move it somewhere that has write access at boot or another workaround?

I've tried making a script consisting of

rpi-rw
Sudo /etc/init.d/samba restart
rpi-ro

This causes Samba to work but the file system remains read write, adding the same commands into "/etc/rc.local" does the same thing

extremefox's picture

Re: Is it possible to enable Samba on VLow Write Image

Hi Sheppy,

i have the similar problem, but even worse. I am not able to connect to my rpi. I am using the latest emonSD card image(17-June-2015). I went throught this tutorial: http://pimylifeup.com/raspberry-pi-nas/. When i tried to search on win7 for the shared folder created on rpi, i failed. I got the error: Windows 7 cannot access samba share (error 53 and network path was not found). I did rpi-rw before instalation and also when tried to run samba.

I ran the same tutorial steps on official release of Raspberry Pi and everything worked. It was quick and easy as described in tutorial. On EmonPi build no success. For this reason i assume the win7 sharing and network discovery is working right and the problem is on emonPi settings.

How can you see the shared folders (not solving the issue you have)? did you do any special steps? The same problem - error with connection i have with the xrdp remote desktop. I think the issue is similar to the samba.

Any sugeestion please?

sheppy's picture

Re: Is it possible to enable Samba on VLow Write Image

Sounds like you need to open up the samba ports on the Pi's firewall. Can't remember the exact syntax to use but google will help. From mine I have

pi@emonpi ~ $ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
80/tcp                     ALLOW       Anywhere
443/tcp                    ALLOW       Anywhere
22/tcp                     ALLOW       Anywhere
135/tcp                    ALLOW       192.168.0.0/16
137/udp                    ALLOW       192.168.0.0/16
138/udp                    ALLOW       192.168.0.0/16
139/tcp                    ALLOW       192.168.0.0/16
extremefox's picture

Re: Is it possible to enable Samba on VLow Write Image

Hi, you were right. I added the missed ports and everything is working now. I also made reboot and everything worked as well. samba started up automatically without problem. Thank you very much!

sheppy's picture

Re: Is it possible to enable Samba on VLow Write Image

Pleased to help. One other thing, you may find your Pi's file system is no longer in read only mode with Samba active. Mine seems that way but hasn't suffered after a few power cuts.

extremefox's picture

Re: Is it possible to enable Samba on VLow Write Image

Hi, sorry for late response. You are right. The mode is read-write :(

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.