> cd /

Find OpenBSD install date


As suggested on twtxt, one may look at filesystem creation time to get a good approximation of system install date.

Here how I did it. There may be better methods, so let me know :)

I use /usr/src slice as reference, probably unused, or reboot in single mode with "> boot -s" to use another slice.

mount | awk '/usr\/src/ {print $1} # find device, return sd0i for me
umount /usr/src                    # not used right now
dumpfs sd0i |\                     # get time data, look at lowest
	awk '/time/ {print $6, $7, $8, $9, $10}' |\
	sort -u
mount /usr/src                     # mount back

Something to say?

Send mail to the list

list HOWTO