View Single Post
  #1   (View Single Post)  
Old 14th November 2022
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 175
Default Using vnd as keydisk for bioctl?

Hi.
Is it possible to use a vnd(4) as a keydisk for bioctl(8)?
(crypted disk mount on /mnt/xyz correctly with one keydisk)

My attempt:
Code:
$ doas dd if=/dev/zero of=disk.img bs=1g count=1

$ doas vnconfig disk.img 
vnd0

$ doas disklabel -E /dev/vnd0c
Label editor (enter '?' for help at any prompt)
/dev/vnd0c> p g
OpenBSD area: 0-2097152; size: 1.0G; free: 1.0G
#                size           offset  fstype [fsize bsize   cpg]
  c:             1.0G                0  unused                    
/dev/vnd0c> a a
offset: [0] 
size: [2097152] 
FS type: [4.2BSD] RAID
/dev/vnd0c*> w
/dev/vnd0c> q
No label changes.

$ doas dd bs=8192 seek=1 if=bckp.k.img of=/dev/rvnd0a                                                                                                     
110914+0 records in
110914+0 records out
908607488 bytes transferred in 80.264 secs (11320180 bytes/sec)

$ doas bioctl -c C -k vnd0a -l 892fc22d89c0ff24.a softraid0
Nov 14 14:43:48 srvr /bsd: softraid0: vnd0a is not a key disk
error of reasoning or really not possible?
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733

Last edited by CiotBSD; 14th November 2022 at 04:25 PM.
Reply With Quote