Skip to content

Quick tip for mounting zfs disks in arch, its trivial.

  • install zfs dkms modul from aur - yay zfs-dkms
  • reboot, have the zfs disk plugged in
  • shows importable pools - sudo zpool import
  • import it - sudo zpool import Pool-01

if it was not exported before unplugging from the original machine then add -f flag

  • the import command will mount it in the root by its name, with datasets under it
  • when you are done with whatever - sudo zpool export Pool-01

If you need to access snapshots, you find them in a hidden .zfs directory inside datasets.

Show hidden files wont help, nor ls -al but you can cd in to it cd /Pool-01/Dataset-01/.zfs or paste the full path in to your file explorer.


/background for this

I am setting up homeserver for selfhosted stuff. Truenas scale in a VM is going to be serving as a NAS. It is centered around zfs, and I wanted to test that I can just unplug the disk out, put it elsewhere and access data. Would go for open media vault if it felt like cumbersome process.

The above process took me surprisingly long, as I spent time dicking with repos and switching kernels and reading whatnot...

When all that is needed is the zfs dksm modul and then import the disk. Somehow I went in with the impression I am about to do a rocket surgery.

1 points0 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 60% up
Kind
Text
ID
varwmc

Author

28
posts
532
comments
13
media
View profile

1 comment

Thank you, your use case is almost exactly what I'm trying to do and turns out zfs-dkms was all I needed... This saved me an hour or five

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.