Thursday, July 04, 2024

Re: accidentally overwritten wrong drive with DD, please help

On Thu, Jul 04, 2024 at 06:53:39PM +0200, Jan Stary wrote:
> On Jul 02 18:52:50, anonloli@autistici.org wrote:
> > On Mon, Jul 01, 2024 at 08:29:53AM +0200, Jan Stary wrote:
> > > > 1. I had a drive SSD sd2a which had a 200G crypto volume sd3i which was mounted
> > > > on /mnt/ssd, all 1 partition
> > >
> > > 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
Here


> > > How did you create the filesystem that was on sd3i?
>
> Well?

With the above link


> > > How exactly did you 'copy /dev/rsd3i as an image'?
> > `dd if=/dev/rsd3i of=/mnt/hdd/ssd-image bs=1m`
>
> In that case, the image should have copies of the superblock.

Is that good?


> > > > 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 comments:

Post a Comment