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 the machine decrypts the SSD on
password prompt and then fails to boot. 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
trying many variations of this, doing it through the edit command, or
creating a text file and using the -R option they all result in the
error:
disklabel: DIOCWDINFO: Input/output error
I do not remember the exact way I had partitioned the drive, but assume
it was similar to the default openbsd parameters for a 1TB drive. Do i
need to try creating a disklabel with the guesstimated partition table,
or is my approach entirely wrong?
Any help or advice would be much appriciated
Cheers,
Bubs