On Sun, Jun 04, 2006 at 02:07:22AM -0700, Rott_En wrote:
> # Important Note:  Under OpenBSD's current encrypted vnd filesystem
> # implementation, when a system with a mounted, encrypted  vnd filesystem
> # is shutdown uncleanly, the encrypted vnd filesystem's structures get
> # damaged and, since OpenBSD's fsck will not acknowledge vnd filesystems,
> # these damaged structures can not reasonably be repaired.

i don't think this is true.  just use vnconfig to attach a file to
svnd0, and then do fsck /dev/rsvnd0c (maybe take a backup first?)
OTOH, whether that works may depend on the disklabel on /dev/rsvnd0c,
but at least i do this routinely in a similar script as yours,
before mounting /dev/svnd0c, and it appears to work fine for me

Juha

Reply via email to