DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th February 2012
ragnvaldf ragnvaldf is offline
New User
 
Join Date: Feb 2012
Posts: 2
Default Running system in tmpfs or with readonly root

Hello! I currently use an old laptop with 768mb ram as my router running hardened gentoo.
Since I do not trust the old harddrive, I created an initrd that squashes the root filesystem onto tmpfs then runs off of that. This also has the added bonus that if the computer ever crashes(Or power is lost) I don't have to worry about a corrupt filesystem.

Now i'm considering switching to openbsd. Partly because i'm curious, and partly because keeping gentoo updated is a lot of work.

The only software I will use is: openvpn,sshd,squid(transparent if possible. Only used for caching),rsyslog(remote logging),ntpd,tmux,dhcpcd(or any alternative..) and finally cron.

How would you recommend I set this up? If I can't run the whole system in tmpfs, can I do it with read-only root? I'm also curious about running all the services in a guest os.
Any input is much appreciated. Thank you!
Reply With Quote
  #2   (View Single Post)  
Old 26th February 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome.

My live media (link in .sig) run with read/only ISO9660 filesystems from CD/DVD, with six read/write Memory File Systems (MFS) mounted: /dev, /etc, /root, /var, /home, and /tmp. This is done with a modified /etc/rc script.

See mount_mfs(8) for details on creating "ramdisk" filesystems.
Reply With Quote
  #3   (View Single Post)  
Old 4th March 2012
ragnvaldf ragnvaldf is offline
New User
 
Join Date: Feb 2012
Posts: 2
Default

Thank you so much for the tip. Will check it out. All i'm missing is the time to rewrite my netfilter rules for use with pf.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tmpfs on OpenBSD tmpusr OpenBSD General 4 12th August 2016 08:42 PM
Create MS/XP file system so it will be recognized on a XP system. FBSD Guides 0 1st May 2010 06:49 AM
Cloning or duplicating a running system using dump/restore FBSD Guides 0 26th February 2010 09:31 AM
DragonFly BSD Update on tmpfs and swapcache work (in master) J65nko News 1 22nd February 2010 01:32 AM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM


All times are GMT. The time now is 10:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick