nbdkit-iso-plugin(1)
πΏ nbdkit-iso-plugin(1) β bestie edition β¨
okay so like, welcome to nbdkit-iso-plugin(1), the manual page you didn't know you needed. it's the nbdkit manual, section 1, and this particular page is all about the iso plugin. buckle up π
πΈ NAME πΈ
nbdkit-iso-plugin β create a virtual ISO (CD-ROM) from a directory. literally that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
nbdkit iso [dir=]DIRECTORY [[dir=]DIRECTORY ...]
[prog=mkisofs] [params='-JrT']
nbdkit iso --dump-plugin
π¦ DESCRIPTION π¦
nbdkit-iso-plugin is a plugin for nbdkit(1) that builds a virtual ISO (CD-ROM) image out of a directory, on the fly, like a little magic trick π§. the files in DIRECTORY get dropped into a virtual ISO image, and that image is served read-only over the NBD protocol. read-only, so don't come at it trying to write stuff. π
under the hood this plugin calls xorriso(1), genisoimage(1) or mkisofs(1) to actually make the ISO content. peep "DUMP PLUGIN OUTPUT" below for how to find out which one π
quick vibe check on the siblings tho: if you want a FAT-formatted virtual floppy disk instead of a CD, that's nbdkit-floppy-plugin(1). if you want a Linux-compatible virtual disk, that's nbdkit-linuxdisk-plugin(1). different plugins, different eras. β
π₯ EXAMPLE π₯
create a virtual ISO with Joliet, Rock Ridge and TRANS.TBL extensions, from files in a directory:
nbdkit iso /path/to/directory params='-JrT'
params adds -JrT to the xorriso(1), genisoimage(1) or mkisofs(1) command line, which is what specifies those extensions. π
β οΈ heads up bestie: unless you use at least one of those extensions, the filenames inside your ISO will be truncated, because the basic ISO 9660 format has limitations. no cap. don't skip this. π
π PARAMETERS π
[dir=]DIRECTORY β specify the directory that holds the files and subdirectories getting added to the virtual ISO. files inside this directory show up in the root directory of the ISO. this parameter is required and you can pass it one or more times β if you give it multiple directories, they get merged together π«Ά. thedir=prefix can be omitted in most cases (see "Magic parameters" in nbdkit(1)).params='parameters ...'β anything else you wanna pass through to xorriso(1), genisoimage(1) or mkisofs(1)? this is the option for that. for example:
params='-JrT -V "My Disk Image"'
would set Joliet (-J), Rock Ridge (-r) and TRANS.TBL (-T) extensions, and set the volume ID (-V) to "My Disk Image". iconic. π
β οΈ be careful how you quote this parameter!! nbdkit runs the resulting string through another layer of shell interpretation with zero sanity checks for unquoted shell metacharacters. that's a real warning, not a joke. π
prog=mkisofsβ picks which program makes the ISO content. the default is xorriso(1), genisoimage(1) or mkisofs(1), whichever one got picked when nbdkit was compiled. you literally only need this parameter if you want to override that choice at run time. π
π DUMP PLUGIN OUTPUT π
use:
nbdkit iso --dump-plugin
to find out which mkisofs-like program was used when the plugin was compiled. for example:
$ nbdkit iso --dump-plugin | grep ^iso_prog=
iso_prog=xorriso
see how it just told us? so helpful. π§ββοΈ
π ENVIRONMENT VARIABLES π
PATHβ xorriso(1), genisoimage(1), mkisofs(1), or literally whatever you supply to the optionalprogparameter, has to be available on the$PATH. it can't summon them from the void. πTMPDIRβ a temporary copy of the ISO gets created inTMPDIR. if this environment variable isn't set, then/var/tmpis used instead. there must be enough free space here to store the ISO, and ngl that ISO might be quite large. like, check your disk first large. π
πΈ FILES πΈ
$plugindir/nbdkit-iso-plugin.soβ the plugin itself! to find the location of$plugindir, usenbdkit --dump-config. π
β VERSION β
nbdkit-iso-plugin first appeared in nbdkit 1.8. vintage. β¨
π SEE ALSO π
nbdkit(1), nbdkit-plugin(3), nbdkit-file-plugin(1), nbdkit-floppy-plugin(1), nbdkit-linuxdisk-plugin(1), nbdkit-torrent-plugin(1), genisoimage(1), mkisofs(1), xorriso(1). go read them, i'll wait π«Ά
π¦ AUTHORS π¦
Richard W.M. Jones
π COPYRIGHT π
Copyright Red Hat
π LICENSE π
redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- neither the name of Red Hat nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
and that's the whole page bestie!! π this was nbdkit version nbdkit-1.48.0, dated 2026-08-22 β so when you're citing this manual page in your group chat, now you know exactly which era you're quoting. mwah, slay, go make some ISOs πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: nbdkit 1.48.0-1ubuntu2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms