VNCONFIG(8) | System Manager's Manual | VNCONFIG(8) |
vnconfig
—
configure vnode disks
vnconfig |
[-v ] [-k |
-K rounds
[-S saltfile]]
[-t disktype]
[vnd_dev] image |
vnconfig |
-l [vnd_dev] |
vnconfig |
-u [-v ]
vnd_dev |
The vnconfig
command configures vnode
pseudo disk devices. It will associate (or disassociate) the special file
vnd_dev with the regular file
image, allowing the latter to be accessed as though it
were a disk. If vnd_dev is not specified, an unused
one will be allocated and the name printed to
stdout.
The options are as follows:
-K
rounds-S
option. The passphrase and salt are combined according to PKCS #5 PBKDF2
for the specified number of rounds to generate the actual key used.
rounds is a number between 1000 and
INT_MAX
. DO NOT LOSE THE SALT FILE.-k
-l
-S
saltfile-K
is used, specify the
saltfile.-t
disktype-u
-v
Configure a CD-ROM or DVD image file as vnode disk vnd0 and mount the ISO 9660 file system contained in it:
# vnconfig vnd0 /tmp/diskimage # mount -t cd9660 /dev/vnd0c /mnt
Configure an encrypted image file as vnode disk vnd0 and mount the FFS file system contained in the ‘a’ partition of the disklabel. Same as above, but now configure the vnode using PKCS #5 PBKDF2 and a salt file with 20000 rounds:
# vnconfig -K 20000 vnd0 /tmp/cryptimg Encryption key: Salt file: /tmp/cryptsalt # mount /dev/vnd0a /mnt
vnd(4), disktab(5), fstab(5), mount(8), swapon(8), umount(8)
The vnconfig
command first appeared in
OpenBSD 4.2.
April 30, 2019 | OpenBSD-current |