Partitioning on existing system

Lowell Gilbert freebsd-questions-local at
Sun Apr 9 18:08:23 UTC 2006

"Wil Hatfield" <freebsd at> writes:

> > Thanks for the great kick in the right direction. Is it really
> > this easy? I
> > guess so cause it is working. I dropped in a helloworld script, chmoded it
> > and even as root I couldn't run it. Supreme!
> >
> > mdmfs -M -o noexec,nosuid -s 100m md0 /tmp
> > chmod 1777 /tmp
> >
> Ahhh crud! I guess it isn't that easy. After a reboot the old /tmp comes
> back with executable permissions. What do I have to do to keep the device
> around?

"tmpmfs" and related variables in rc.conf(5).
By default it does a memory-backed disk instead of file-backed, but
that can be adjusted.

Personally, I find memory-backed /tmp to be more useful anyway.

Lowell Gilbert, embedded/networking software engineer, Boston area

More information about the freebsd-questions mailing list