Solved tmpfs in fstab w/ zfs root and then no boot!

here is my fstab (just picture the tmpfs lines not commented out):
6502


And if I reboot with those tmpfs line in there I get:

6503


I will do some more google searching in the morning, but for now can you?:

6504
 
The directories where you want to mount the TMPFS are non existent. You have to create the mount points first.
Code:
mkdir /tmp/tmpfs
 
You already got the answer, but if you had just read through the error messages yourself, you could have spotted it yourself.
No doubt, error messages can look cryptic as a whole, but it usually helps to read through them - line by line - while ignoring stuff you don't understand.
mount: /tmp/tmpfs: No such file or directory
mount: /usr/home/reverseeee: No such file or directory
 
Negative ghost rider(s), that is not the answer.

It looks like it tries to mount the legacy filesystems before the zfs one...

The mount points do exist. In a ZFS zroot filesystem, that somehow is not mounted before the fstab has not been mounted yet, so no place to mount the tmpfs:

6507


Hmm: https://forums.freebsd.org/threads/problems-with-fstab-priorities-when-booting-from-zfs.28788/

tmpfs,late does not work but that is the WRONG syntax (this post is wrong: https://lists.freebsd.org/pipermail/freebsd-rc/2010-January/001822.html bad bad bad). I do not think that guy tried late. I think he did the jail mounting style.

If you read the fstab man page,
Code:
late
goes into the options section!!!!

So it works now, you just need late:

6508


So the above is how you create a tmpfs on FreeBSD with a space age zfs rootfs.
 
Back
Top