On Thu, 15 Oct 2015 18:19:12 +0200
Paolo Aglialoro <paol...@gmail.com> wrote:

> Hello,
>
> I would like to create an embedded amd64 installation, with system
> running on a 8GB 233x CF card attached to an Intel ITX mb.
>
> In order to minimise nand wear off, I would like to put on ramdisk
> (the machine would have 2GB ram, so I believe enough also for that,
> but I still can upgrade it to 4GB if needed) the parts of the file
> hierarchy with most intensive system write I/O, like, for
> instance, /tmp and I imagine some parts of /var.
>
> My questions are two:
> 1. What are the dirs I should take into account to go to ramdisk?
> 2. What is the correct filesystem type to put in fstab for all the
> entries of point 1. in order to store them in ramdisk?
>
> Thanks in advance for ur answers
>

1. /var and /dev
2. swap /var mfs rw,-P=/mfs/var,-s=32768,nodev,nosuid,noexec 0 0
   swap /dev mfs rw,-P=/mfs/dev,-s=8192,-i=128,nosuid,noexec 0 0

Back in time when I was building OpenBSD system resistant to frequent
power outages for the first time (completely read-only), I created this
'works-for-me' howto:
https://www.mimar.rs/sysadmin/2014/openbsd-otporan-na-nestanke-struje

It is in Serbian, but most important stuff is code and commands, the
rest will probably be understandable by help of some online translator.

Regards,
--
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/

Reply via email to