Codebase for my homepage.
git clone git://vcs.sapka.me/michal-sapka-me
Log | Files | Refs

commit 118bbe281f5253eb23a4c6583c6bfdde7b8d5827
parent 8c88f03f311e69673fa140074e3fbcbb3eff3356
Author: d-s <ds@voyager.local>
Date:   Fri, 17 Mar 2023 14:13:18 +0100

feat: article for 2023-03-18

Aassets/content_images/zfs-logo.png | 0
Acontent/2023/first-time-the-zfs-saved-me.md | 31+++++++++++++++++++++++++++++++
Aresources/_gen/images/zfs-logo_hu73e89407e3aa5dae3d1372791b2ee1d9_66759_150x0_resize_q75_h2_box_3.webp | 0
Aresources/_gen/images/zfs-logo_hu73e89407e3aa5dae3d1372791b2ee1d9_66759_300x0_resize_q75_h2_box_3.webp | 0
4 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/assets/content_images/zfs-logo.png b/assets/content_images/zfs-logo.png Binary files differ. diff --git a/content/2023/first-time-the-zfs-saved-me.md b/content/2023/first-time-the-zfs-saved-me.md @@ -0,0 +1,31 @@ +--- +title: "First Time the ZFS Saved Me" +category: "software" +abstract: Automatic snapshot saved me from a full system reinstalation +date: 2023-03-18T06:04:33+01:00 +year: 2023 +draft: false +tags: +- FreeBSD +- ZFS +--- +{{<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. diff --git a/resources/_gen/images/zfs-logo_hu73e89407e3aa5dae3d1372791b2ee1d9_66759_150x0_resize_q75_h2_box_3.webp b/resources/_gen/images/zfs-logo_hu73e89407e3aa5dae3d1372791b2ee1d9_66759_150x0_resize_q75_h2_box_3.webp Binary files differ. diff --git a/resources/_gen/images/zfs-logo_hu73e89407e3aa5dae3d1372791b2ee1d9_66759_300x0_resize_q75_h2_box_3.webp b/resources/_gen/images/zfs-logo_hu73e89407e3aa5dae3d1372791b2ee1d9_66759_300x0_resize_q75_h2_box_3.webp Binary files differ.