LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

storagectl

Enumerate and mount storage volumes provided by systemd storage providers

TLDR

List all available storage volumes
$ storagectl volumes
copy
List storage providers
$ storagectl providers
copy
List volume templates
$ storagectl templates
copy
List volumes matching a glob
$ storagectl volumes '*foo*'
copy
Mount a directory volume using the storage mount helper (as root)
$ mount -t storage fs:myvol /mnt/myvol
copy

SYNOPSIS

storagectl [OPTIONS...] {COMMAND} [NAME...]

DESCRIPTION

storagectl is a command-line tool to inspect storage providers and the storage volumes they expose. It is part of the systemd project.A storage provider implements the `io.systemd.StorageProvider` Varlink interface and registers an AF_UNIX socket under `/run/systemd/io.systemd.StorageProvider/` (system) or the user equivalent.systemd ships two providers:- `systemd-storage-block@.service` — exposes the system's block devices.- `systemd-storage-fs@.service` — exposes regular files and directories from a backing filesystem (supports on-the-fly creation via templates).storagectl can also act as a mount helper (`mount -t storage ...` or `mount -t storage.FSTYPE ...`) to acquire and mount volumes at arbitrary locations. The source is specified as `PROVIDER:VOLUME`.

OPTIONS

--system

Operate on system providers (default).
--user
Operate on per-user providers.
--json=MODE
Output as JSON ("short", "pretty", or "off").
--no-pager, --no-legend, --no-ask-password
Control output and authentication behavior.

COMMANDS

volumes [GLOB]

List volumes (default command). Optional glob filters volume names.
templates [GLOB]
List supported volume templates (for providers that support dynamic creation).
providers
List known storage providers and whether their sockets are reachable.

CAVEATS

This tool is relatively new (added in systemd 261). Storage providers are an experimental/low-level interface primarily for advanced use cases and other systemd components (e.g. machinectl).

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid