program...@netzbasis.de (Benjamin Baier), 2018.09.08 (Sat) 00:08 (CEST): > On Fri, 7 Sep 2018 21:00:58 +0200 > Zbyszek Żółkiewski <zbys...@onefellow.com> wrote: > > > > > > Wiadomość napisana przez Marcus MERIGHI <mcmer-open...@tor.at> w dniu > > > 07.09.2018, o godz. 18:09: > > > > > > $ dd bs=8192 skip=1 if=/dev/rsd99z of=backup-keydisk.img > > > $ dd bs=8192 seek=1 if=backup-keydisk.img of=/dev/rsd99z > > > > thanks for answers but that will make dump of whole 14GB - i would > > like to shrink it to reasonable size…
I never realized that since my keydisks were always set up a la FAQ! > Well, from reading the code a little seems the keydisk metadata is at > offset > SR_META_OFFSET = 8192 bytes and is SR_META_SIZE (64) * DEV_BSIZE (512 > bytes) = 32768 bytes long. > > Time ran out so do what you will with it. This is untested and always > keep a good backup. Thanks for reading the code! this would do, then $ dd bs=8192 skip=1 count=4 if=/dev/rsd99z of=backup-keydisk.img ^^^^^^^ though I am going to test this: $ dd bs=8192 skip=1 count=5 if=/dev/rsd99z of=backup-keydisk.img ^^^^^^^ Thanks, Marcus