alexan...@beard.se (Alexander Hall), 2018.09.07 (Fri) 16:56 (CEST):
> On September 7, 2018 12:16:03 PM GMT+02:00, "Zbyszek Żółkiewski"
> <zbys...@onefellow.com> wrote:
> >Hi,
> >
> >So i did something stupid: during creation of keydisk
> >(https://www.openbsd.org/faq/faq14.html#softraid), i was in hurry and I
> >allocated whole 14GB partition a for keydisk…
> >Now i would like to shrink it somehow, what’s the best and safest way
> >to do it… ?
> 
> I'd take a disk with some unpartitioned space, create a small(er) RAID
> partition, and dd as much as possible of the 14GB keydisk into it.
> Then test if the new keydisk works.
> /Alexander 

I once noted (and have used various times) the following for
backup/restore of keydisks. It was mentioned on one of theses 
lists, unfortunately I cannot find the source atm:

$ dd bs=8192 skip=1 if=/dev/rsd99z of=backup-keydisk.img
$ dd bs=8192 seek=1 if=backup-keydisk.img of=/dev/rsd99z

Marcus

Reply via email to