MOUNT.ZFS(8)

πŸ“¦
version 2.4.4 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

okay bestie, pull up a chair β€” this is mount.zfs(8) from the System Manager's Manual, and honestly? it's a tiny little page but it's doing SO much behind the scenes. she's the backstage crew of your filesystem, fr fr. πŸ’…


✨ NAME ✨

mount.zfs β€” mount ZFS filesystem πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

mount.zfs [-sfnvh] [-o options] dataset mountpoint

that's it. that's the whole vibe check. dataset and mountpoint, plus some flags you probably won't touch. πŸ‘‘


🌸 DESCRIPTION 🌸

okay so. the mount.zfs helper is the little go-between that mount(8) uses when it needs to mount filesystem snapshots and mountpoint=legacy ZFS filesystems. she also gets called by zfs(8) whenever the ZFS_MOUNT_HELPER environment variable is not set. multitasking queen. 🫢

but listen β€” the actual guidance here is that you, the user, should invoke either mount(8) or zfs(8) in most cases. mount.zfs is the helper doing the behind-the-scenes work, not the main character you call directly. (respectfully, let the frontends handle it. that's the assignment. πŸ’€)

the options are handled according to the Temporary Mount Point Properties section over in zfsprops(7) β€” with the exception of the ones described below, which get their own lil rules. πŸŽ€

and one more thing: if /etc/mtab is a regular file and -n was not specified, it will be updated via libmount. yes bestie, she keeps receipts. πŸ“


πŸ’– OPTIONS πŸ’–

  • -s β€” ignore unknown (sloppy) mount options. like when someone brings a plus-one you didn't invite and you're just like... sure, whatever, come in. πŸ™ˆ
  • -f β€” do everything except actually executing the system call. all dressed up, no place to go. iconic fake-out. ✨
  • -n β€” never update /etc/mtab. she will NOT be taking notes. πŸ’…
  • -v β€” print the resolved mount options and parser state. show us the lore, bestie. πŸ”
  • -h β€” print the usage message. the "help me help you" button. πŸ’œ
  • -o zfsutil β€” this private flag is how you tell mount.zfs that mount(8) is being called by the zfs(8) command. it's the secret handshake. iykyk. 🀝

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie β€” short, sweet, and lowkey essential. this one came from OpenZFS, dated May 24, 2021. 🌈✨ go mount something iconic, ily, bye! πŸ’–πŸŽ€πŸ¦‹