NBDTAB(5)
π NAME π β NBDTAB(5): /etc/nbdtab, the config file for nbd-client
okay so bestie, this is /etc/nbdtab, the configuration file for nbd-client. That's the whole NAME vibe, but the rest of this page is where the actual useful tea lives. π«β¨
β¨ SYNOPSIS β¨
/etc/nbdtab
π¦ DESCRIPTION π¦
This file lets you set up predefined connections for nbd-client. It can hold multiple definitions, one per line, and each line contains four space-separated fields. Lowkey iconic.
To connect a device specified in the nbdtab file, run nbd-client(8) with the short name of that device as the sole argument. It will then look up the required information in nbdtab, and make the connection. Slay. π
Fields are separated from one another by any number of space or tab characters; records are separated from one another by newline characters. The file may also contain any number of comments, which start with a '#' character and continue until the end of the line or the end of the file, whichever is first. No cap.
π FIELDS π
The file contains these fields:
- The short name of the device file. That is, it should contain the name of the device without the leading
/dev/part; e.g., it could saynbd0. π - The hostname (in case of a TCP socket) or filename (in case of a unix domain socket) on which the server is listening. π¦
- The name of the export as exported by
nbd-server. π - Any extra options. This field is optional (no pun intended), and need not appear in a file if no options are necessary. The options recognized by
nbd-client(8)are specified below, in the section "Options". Any unknown options in this field will produce a warning bynbd-client, unless they are prepended by an underscore ('_') character; the underscore is specifically reserved for local use, or for distribution customization. πβ¨
π OPTIONS π
Every command-line nbd-client option which allows to configure specific options for a particular device node has a corresponding option in the nbdtab file, and vice versa; where this isn't the case, that is a bug. not a vibe, a bug. π
Individual options in this field should be separated from one another by the comma character. π
bs=block sizeβ The block size for this export. If this option is not used, the kernel's default will be used instead. Corresponds to the-boption on the command line. πcacertfile=certificate fileβ The CA certificate file for TLS. Corresponds to the-Aoption on the command line. π₯certfile=certificate fileβ The certificate file for TLS. Corresponds to the-Foption on the command line. πΈconns=numberβ The number of connections to use for this device. Corresponds to the-Coption on the command line; seenbd-client(8)for more details on that option. π¦keyfile=key fileβ The private key file for TLS. Corresponds to the-Koption on the command line. πno_optgoβ Disable the use ofNBD_OPT_GOin the conversation. Corresponds to the-goption on the command line. πpersistβ Persist the connection, using the semantics of the-pcommand-line option. πport=port numberβ The port on which to communicate with thenbd-server. Defaults to the IANA-assigned port for NBD,10809. πpriority=GnuTLS priority stringβ The GnuTLS priority string to use. Corresponds to the-yoption on the command line. βswapβ Optimize for swap;-s. π§timeout=timeoutβ The timeout. If this option is not specified, no timeout is configured. Corresponds to the-toption on the command line. β³tlshostname=TLS hostnameβ The hostname for TLS purposes;-H. π»unixβ Use a Unix Domain socket to connect to the server;-u. π
π SEE ALSO π
nbd-server(1)nbd-client(8)nbd-trdump(8)
π AUTHOR π
okay the lore drop: the NBD kernel module and the NBD tools were originally written by Pavel Machek (pavel@ucw.cz). π
The Linux kernel module is now maintained by Paul Clements (Paul.Clements@steeleye.com), while the userland tools are maintained by Wouter Verhelst (<wouter@debian.org>). π
On The Hurd there is a regular translator available to perform the client side of the protocol, and the use of nbd-client is not required. Please see the relevant documentation for more information. π¦
This manual page was written by Wouter Verhelst (<wouter@debian.org>). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. πβ¨
π EXAMPLES π
A simple nbdtab file could look like this:
# swap space, called "swapexport" on the server
# optimize for swap, and try to reconnect upon disconnect.
nbd0 nbdserver.example.com swapexport swap,persist
# other export, called "data" on the server. No options for this one.
nbd1 nbdserver.example.com data
π«Ά okay bye bestie β this was theNBDTAB(5)page, source/version tagNBDTAB(5), dated$Date: 2006-10-18 15:01:57 +0200 (wo, 18 okt 2006) $. periodt. π
π¦ where this page comes from
- arch rolling: nbd 3.27.1-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms