NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: create /tmp with ffs vs. tmpfs ?
On Mon, Aug 12, 2024 at 06:43:45AM -0700, Steve Rikli wrote:
> Or maybe you're pointing out the "25%" etc. sizing behaviors of the
> NetBSD sysinst; I hadn't quite worked out how exactly to make the
> non-default /tmp partition in sysinst -- so far I've just been using the
> "Set sizes of NetBSD partitions" menu selector, but I also see "Manually
> define partitions" and other things, so I figured I'd be able to find a
> sufficient hammer with some more poking around.
Oh indeed, it is not as easy as I thought it would be - neeed to hack
on sysinst again and make this better.
There is no easy way in sysinst to do a /tmp partition with tmpfs right now,
you need to work around this by:
- at the "choose partition sizes" stage
1) set /tmp to size 0
2) add a user defined partition for mountpoint /tmp2 and give it the
size you want
- at the next "partition details" stage (you will notice /tmp vanished,
corrctly for a tmpfs thing, but /tmp2 is still there)
1) edit the /tmp2 entry and fix the mount point to /tmp, and select
whatever file system you want to use
You can't add the correct partition at the first stage because even with
size 0 and tmpfs magic it won't allow you specifying /tmp again for another
partition. This obviously is a bug.
Martin
Home |
Main Index |
Thread Index |
Old Index