SOS: userdata lost

zroot/home canmount on local
zroot/home mountpoint /home local
zroot/home/vladas canmount on local
zroot/home/vladas mountpoint /home/vladas inherited from zroot/home
zroot/usr canmount off local
zroot/usr mountpoint /usr local
zroot/usr/home canmount on default
zroot/usr/home mountpoint /usr/home inherited from zroot/usr

Thank you for the reply, I am still stuck here.

echo $HOME

/root :flushed:

whoami

grep vladas /etc/passwd

(Hint: do not rush to attempt edition of the file.)

whoami — root (because I am logged in a single user mode)?

root@:/ # grep vladas /etc/passwd
vladas:*:1001:1001:Vladas Palubinskas:/home/vladas:/usr/local/bin/fish

Thanks, that makes sense.

ls -hln /home/vladas/.xinitrc

No such file or directory

1 Like

From https://forums.freebsd.org/posts/519529:

The package message mentioned a method of parsing the file, but did not express a requirement for the file to exist.

Sorry, I made mistake.

-rw-r--r-- 1 1001 1001 1478 Aug 28 2021 /home/vladas/.xinitrc
1 Like

cat /home/vladas/.xinitrc

(Re: your post 2, it seems reasonable to summarise that the user data is not lost; that we should focus on possible explanations for failure to execute a login command.)

I don’t know enough about NomadBSD to tell whether the rollback might have had a negative impact.

These zpool properties may also be informative:

root@:/ # zpool history
History for 'zroot':
2021-08-28.18:25:47 zpool create -o altroot=/tmp/nbsdinstaller.2241 -m none -f zroot /dev/gpt/nbsdrootfs
2021-08-28.18:25:47 zfs set compression=on zroot
2021-08-28.18:25:47 zfs set atime=off zroot
2021-08-28.18:25:48 zfs create -o mountpoint=none zroot/ROOT
2021-08-28.18:25:48 zfs create mountpoint=/ zroot/ROOT/nomadbsd-5806f915
2021-08-28.18:25:48 zfs create -o canmount=off -o mountpoint=/usr zroot/usr
2021-08-28.18:25:49 zfs create zroot/usr/home
2021-08-28.18:25:49 zfs create -o exec=off -o setuid=off zroot/usr/src
2021-08-28.18:25:49 zfs create zroot/usr/obj
...
2021-08-28.18:25:57 zpool set bootfs=zroot/ROOT/nomadbsd-5806f915 zroot
2022-02-27.18:41:55 zfs create -v -o compression=gzip -o canmount=off -o mountpoint=/home zroot/home
2022-02-27.18:58:48 zfs create -v zroot/home/vladas

My system here was locked from vladas and became read-only for admin.

Then I attempted to fix my pool — the history goes on:

2022-02-27.19:09:57 zfs set canmount=on zroot/home/vladas
2022-02-27.20:04:20 zfs set canmount=on zroot/home
2022-02-27.21:20:05 zfs set compression=off zroot/home

AFAIK, the rollback cannot damage, it just brings back the former state — always valid. We can just lose the latest data.

1 Like
root@:/ # cat /home/ vladas/.xinitrc
#!/bin/sh
export EDITOR=ee
. ~/.xprofile

[ -z "$1" -o '$1" = "default" ] && exec ck-launch-session openbox-session exec ck-launch-session "$1"
1 Like

Probably not relevant, but I’m curious:

If you unmount those two, then does there remain a symbolic link?

Here (with FreeBSD, and users added by adduser(8)):

% file /home
/home: symbolic link to usr/home
% 

As far as I can remember, /home and /home/vladas were real assets from the begining, and /usr/home was always empty, with no links. Anyway, the system was locked before the mounting attempt — immediately after zfs create -v zroot/home/vladas.

root@:/ # file /home
/home: directory

There is no such /etc/adduser.conf file — should I create it? Don not know how. :no_mouth:

Weird: I installed FreeBSD-13 on another computer, set up its user account, and got /usr/home/name for his assets, with ~/home symlink to the real user directory. Why is NomadBSD installation different?

20.2 chapter of the FreeBSD Handbook:

# service zfs start

to start the service according /etc/rc.conf — sure, but I am curious: what would happen if this service was turned off? Would that ruin the file system with an entire operating system? Or maybe just reset zpool, and eventually cancel the read-only access restriction?

Welcome back :smiley: Studies did not lead to an answer, and cancellation of user’s dataset I set up by zfs destroy zroot/home/vladas did not restore access to the system. ZFS even found and destroyed my files and settings backed up in /usr/home/vladas (not linked from /home/vladas)! So I decided to reinstall NomadBSD in my laptop from USB. ZFS again, following the same dataset commands as previously:

# zfs create -v zroot/home
# zfs create -Pv zroot/home/vladas

This time successfully, cheers!