Friday, June 30, 2023

Re: encrypted_hdd_data_recovery(OpenBSD_7.3)

Thanks NIck,

How do I exactly try to unlock the disk with bioctl command?

I do not have the appropriate disk to try to rebuild it.

I am trying it from openbsd 6.9 bootable usb. The encrypted hdd was 7.3.

Please.

Thanks in advance


On Sat, Jun 17, 2023 at 4:33 PM Nick Holland <nick@holland-consulting.net>
wrote:

> On 6/17/23 08:40, soko.tica wrote:
> > Hello list,
> >
> > I have managed to screw by
> > #fsck_ffs /dev/sd1a
> >
> > the root partition of my unmounted HDD (OpenBSD 7.3 stable, possibly not
> > fully updated). It crashed during boot due to the power outage, than it
> was
> > unable to boot and required fsck_ffs, and I answered 'F' to the 'Fyn'
> > prompt.
> >
> > Here is the present status of it (it is sd0 in this sequence).
> > ===
> > Script started on Sat Jun 17 12:26:43 2023
> > think# disklabel sd0
> >
> > # /dev/rsd0c:
> > type: SCSI
> > disk: SCSI disk
> > label: HGST HTS725050A7
> > duid: 35e70751b7e36f98
> > flags:
> > bytes/sector: 512
> > sectors/track: 63
> > tracks/cylinder: 255
> > sectors/cylinder: 16065
> > cylinders: 60801
> > total sectors: 976773168
> > boundstart: 64
> > boundend: 976768065
> > drivedata: 0
> >
> > 16 partitions:
> > # size offset fstype [fsize bsize cpg]
> > a: 976768001 64 RAID
> > c: 976773168 0 unused
> > think# ^D
> >
> >
> > Script done on Sat Jun 17 12:26:54 2023
> > ===
>
> this is as I'd expect. but you aren't showing what happens
> when you try to unlock it I understand you have a problem,
> but you haven't told us what it is.
>
> If you have a problem when unlocking the disk with the bioctl
> command, you probably aren't going to get your data back.
>
> If you can get the drive unlocked and available as another
> logical drive, you will probably have to fsck each partition
> within it. Hopefully any horrible problems here would be
> contained to individual partitions, and you can pull data off
> the rest.
> ...
>
> > Naturally, there is data there, and naturally, I have no backup of it. Of
> > course I do know the passphrase, it is my hdd.
>
> this is what we call a learning experience.
>
> > If there is any chance to recover it, please let me know.
>
> chance, maybe. But almost by design, encrypted storage is more
> fragile than unencrypted storage.
>
> Nick.
>
>

No comments:

Post a Comment