Thread: Embedded.
View Single Post
  #1   (View Single Post)  
Old 28th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Default Embedded.

Hiya.

I have a bunch of questions about OpenBSD on embedded.
At the moment one specific question.

I am using CF and am interested in getting the card read only for obvious reasons.
Apparently it's as simple as editing my fstab. :]

Here is my fstab:
Code:
# cat /etc/fstab
/dev/wd0a / ffs ro 1 1
swap /tmp mfs rw,nosuid,-P=/tmplate,-s=65536 0 0
As far as I understand that's all I need to do.
Not being familiar with this I rebooted to test. :]
I tried this:
Code:
# mount -v
/dev/wd0a on / type ffs (rw, local, ctime=Thu Aug 14 17:39:12 2008)
mfs:12843 on /tmp type mfs (rw, asynchronous, local, nosuid, ctime=Thu Aug 14 17
:39:09 2008, size=65536 512-blocks)
As you can see it looks read write.
To be sure I tried to make a file in /.
Sure enough it works.
Any thoughts?

Best wishes.
Reply With Quote