On Mar 19 12:28:07, [email protected] wrote:
> Hi! Hope you are all well,
> recently I made the mistake of running newfs_msdos
> to my computers encrypted SSD instead of an external sd card... I cancelled
> the command almost immediately, so I am hoping most of the data is still
> intact. On reboot
Big mistake.
> the machine decrypts the SSD on password prompt and then
> fails to boot.
To be clear: so this is your boot disk?
> My thinking so far has been that as I assume most of the data
> is still intact that if i was able to change the label from MSDOS back to
> 4.2BSD using disklabel i would be able to run fsck to attempt to recover the
> data (I have already ran dd to clone the disk to a backup.) From a live usb
> i ran disklabel -e on the (decrypted) drive changing the line identifying
> the i partition from:
> i: devicesizexxx 0 MSDOS
> to:
> i: devicesizexxx 0 4.2BSD 0 0
That is surely _not_ the original disklabel.
First things first: you have a backup from the night before, right?
Or at least a backup of the original disklabel, right?
> I do not remember the exact way I had partitioned the drive,
That's what /var/backups/disklabel.* are for
> but assume it was similar to the default openbsd parameters for a 1TB drive.
"Similar" will get you nowhere.
But there might still be copies of the superblock on the (rest of) the FFS.
Have you tried scan_ffs(8)?
Jan