Thursday, July 04, 2024

Re: accidentally overwritten wrong drive with DD, please help

> > > > Why did you have your crypto volume as an 'i' partition?
> > > Why? Because it says so in the manual, what do you mean??
> > In what manual does it say to create an 'i' partition specificaly?
> https://www.openbsd.org/faq/faq14.html#softraidCrypto

Does anyone know why it's "i" specificaly?
Does is have anything to do with "i" being
traditionaly a msdos partition?

> > In that case, the image should have copies of the superblock.
> Is that good?

Well yes: you have definitely lost the actual superblock
of the ffs filesystem you originaly created, but newfs
creates copies of the superblock, pretty far out in the fs.

See the -b option of fsck.

> > > > > 4.5. and verified with sha512 that rsd3i is same as /mnt/hdd/ssdimage, even
> > > > > though the ssdimage on the backup drive is 19G larger in size
> > > >
> > > > No. If one is 19G greater that the other, they cannot have the same hash.
> > > > So what exactly do you mean by the sizes? Where did you get them?
> > >
> > > Duh! But that's what `df -h` said!
> >
> > df -h is not the size of the /dev/rsd3i 'file'.
>
> Oh, weird

No, that's not weird. What df -h reports about a filesystem
is not the size of the image of that filesystem obtained with dd.

So if you made a dd image of sdXi with dd,
then sdXi and itd dd image will have the same hash of course,
but the broken filesystem on sdXi will not have the same "size".

No comments:

Post a Comment