UFS Strange things with Optane

Recently bought an 16GB Intel Optane stick. The UEFI sees all clear, and device appeared as /dev/nda0 immediately. Created GPT sheme with gpart, then successfully added three partitions — 8GB for swap, 4GB for /tmp and remaining 1.4GB for /home/preciousme/.cache. No ZFS but good old freebsd-swap and freebsd-ufs.
Troubles started after putting this all to /etc/fstab, boot process fails with errors like «unable to find /dev/nda0p2», and fsck also tells that there's no superblock while gpart shows that all is ok. So then fully deleted sheme and did all again with no luck.
What I'm doing wrong?
 
How far did you get? After creating the file systems, did you get them mounted at least once? Did they vanish after a reboot? Power cycle?

In theory, with the minimalist description you're giving, it sounds right. Maybe copy all the commands you used (when you try it next time) into a post here, but that's a lot of work.
 
My bad, I forgot about newfs for UFS2 partitions, now partitions mounting and checking works.

System started, but lxqt now hangs on logon. I see no error messages from it, but in /var/log/messages there an multiple errors like "dbus-daemon: Failed to start message bus: Failed to bind socket "/tmp/dbus-*******": Permission denied".

And so optane partitions configuration in /etc/fstab:

/dev/nda0p1 none swap sw 0 0
/dev/nda0p2 /tmp ufs rw,nosuid,noatime 0 0
/dev/nda0p3 /home/user/.cache ufs rw,nosuid,noexec,noatime 0 0


Sorry for improper formatting, the usage of this forum from tablet is kinda pain.
 
UPD: checked by exclusion, all works except /tmp. Commented the record out and lxqt logs in successfully, apps working too.
What can cause this strange behavior?
 
The /etc/fstab line is formatted correctly, as far as I can see. Can you check that /dev/nda0p2 really exists (see gpart), and really has a UFS file system (with file or fstyp)? Did you create the file system on it with newfs?

The dbus error smells like you have no working /tmp, but that should break a lot of other stuff on your system too.
 
Hm, mounted under root /dev/nda0p2 to /home/user/mntest.

Under user:
> ls -Fgh /home/user/mntest/ :
total 0 B


Under root:
> ls -Fgh /home/user/mntest/ :
total 20 KB
drwxrwxrwt 2 wheel 512B Aug 22 15:10 .ICE-unix/
drwxrwxrwt 2 wheel 512B Aug 22 15:11 .X11-unix/
drwxrwxrwt 2 wheel 512B Aug 22 15:10 .XIM-unix/
drwxrwxrwt 2 wheel 512B Aug 22 15:10 .font-unix/
drwxrwxr-x 2 operator 512B Aug 22 03:13 .snap/


Previously /tmp mounted to tmpfs and all works fine. Maybe for UFS2 some security flags needs to be set?
 
Back
Top