Thursday, July 04, 2024

Re: accidentally overwritten wrong drive with DD, please help

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?

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

Well?

> > 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.

> > > 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'.

> > > 5. Whilst writing this e-mail I realized that I might have made
> > > a fatal mistake. I think that I backed up rsd3i instead of rsd3c
> >
> > Tools differ. Some might work with an image of the (broken) filesystem,
> > which is what you have. (What filesystem was it?) Some expect an image
> > of the entire disk.
> >
> > > (I was being extremely careful)
> >
> > LOL
> >
>
> It's FFS, of course :)
> Well one of the tools said raw disk, so that one's out of the window..
> I think that testdisk's photorec might work.. I've been busy so didn't get to
> try it yet
>
>

No comments:

Post a Comment