Skip to content
  • Blog
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Community Forum

N

nicklas

@nicklas
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent

  • Protect your Raspberry PI SD card, use Read-Only filesystem
    N nicklas

    Interesting. I haven't rechecked but I had problems when /tmp wasn't mounted in /etc/fstab as tmpfs. What made me try that was the original blog post that you refer to. In his /etc/fstab is a line for /tmp, but he doesn't mention it in the text.

    I use minibian jessie, so it is not the full raspbian distro. Don't know if that could make a difference.

    Blog articles comments life filesystem card log end

  • Protect your Raspberry PI SD card, use Read-Only filesystem
    N nicklas

    I think I have solved my samba problem with an ugly hack.
    I copied everything in /var/lib/samba to a backup-folder.
    THen I put a symlink to /tmp so /var/lib/samba is found there.

    Then I put a line in rc.local that copies the content of my backed up /var/lib/samba back (which now points to /tmp
    and another line starting smbd

    Now I can connect to my shares in my read only filesystem.
    Of course I copy only the needed files, but this was the quich and dirty version 🙂
    I have disabled nmbd, but it should work too now I guess.

    To not make unsuccessful appempts to start smbd before doing the copy I also disabled sbd with update-rc.d

    Blog articles comments life filesystem card log end

  • Protect your Raspberry PI SD card, use Read-Only filesystem
    N nicklas

    Hello

    Thank you very much for a very helpful tutorial!

    I have one comment and one question.

    I think you should mention that you also have to mount /tmp as tmpfs in /etc/fstab
    After doing that it works like a charm.

    But I also want samba to serve some files from my rpi. I find samba hard to handle here since it seems to need to write to some files in /var/lib/samba. When I boot with writable / it works, but not if I remount as writable after boot. If I make it writable after boot, it seems like smbd starts, but I cannot connect to the shares. What I think I have to do is create some files in /tmp at boot time maybe with tdbtool, but I don't know yet what files and if it will work. I will continue to investigate, but any time saving tips is highly appreciated :-).

    Blog articles comments life filesystem card log end
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Blog
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups