summaryrefslogtreecommitdiff
path: root/content/blog/2023/first-time-zfs-saved-me.md
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-03-04 23:23:11 +0100
committermms <michal@sapka.me>2024-03-04 23:23:11 +0100
commit3cbe80fd1738dfb896e0cefa1fc2cf0d0ea74319 (patch)
treec0c837bc1c38564060ebfd08a116199ae19cf556 /content/blog/2023/first-time-zfs-saved-me.md
parent72371c30c3561b8dc5db01d19f947442e1a7ad8b (diff)
chore: bsd to org
Diffstat (limited to 'content/blog/2023/first-time-zfs-saved-me.md')
-rw-r--r--content/blog/2023/first-time-zfs-saved-me.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/content/blog/2023/first-time-zfs-saved-me.md b/content/blog/2023/first-time-zfs-saved-me.md
new file mode 100644
index 0000000..0e2fa32
--- /dev/null
+++ b/content/blog/2023/first-time-zfs-saved-me.md
@@ -0,0 +1,28 @@
+---
+title: "First Time the ZFS Saved Me"
+category: blog
+abstract: Automatic snapshot saved me from a full system reinstalation
+date: 2023-03-18T06:04:33+01:00
+year: 2023
+draft: false
+---
+{{<img-pull-right "zfs-logo.png">}}
+As I was recently trying to [enable auto-switching audio to headphones](/2023/switching-between-speakers-and-headphones-on-freebsd/), I borked my FreeBSD installation. Somehow the speakers stopped working, and the headphone output added a loud hiss. Unfortunately, I was unable to fix it.
+
+My first thought was to reinstall the system, but then I remembered that I've read about [ZFS Snapshots](https://docs.oracle.com/cd/E19253-01/819-5461/gbcya/index.html).
+
+```
+zfs list -t snapshot
+```
+
+revealed that FreeBSD has already created a few of those recently. I knew this OS and ZFS go hand in hand, but I was still pleasantly surprised.
+
+To return the system to a previous version, all I had to do was
+
+```
+zfs snapshot <name>
+```
+
+and my system stopped responding. I was in X, so that's entirely on one. But the rollback was so instantaneous that my first thought was that something fried.
+
+After a good, old hard reset, everything worked as it was a few days ago. ZFS very well may be my new best friend.