Thank you all for your replies. I needed to step away from my computer last night so I apologize for the terse email. sd0 is my physical hard disk with full disk encryption. I wrote a 5gb iso over the beginning of sd1c (my softraid volume). I rebooted. I installed openbsd on a separate drive, booted it, mounted the encrypted volume, and hopelessly ran scan_ffs.
After reading Stuart's advice, I will attempt to reinstall the disklabel from scratch. I installed 7.2 on my second disk; the version I used to do the initial install. When I initially set up my disk, I used the auto partition defaults which left me with a 300gb /home directory. Later, I expanded the /home partition across the rest of the disk. When I recreate the disklabel, should I let it auto partition and then grow the file system like before? Or should I just set home to fill the rest of the disk? On Wed, Sep 27, 2023 at 5:43 AM Stuart Henderson <stu.li...@spacehopper.org> wrote: > > On 2023-09-27, sprits killshot <spritskills...@gmail.com> wrote: > > I did the thing. > > dd'd a 5gb img to my ssd instead of my usb and I want to die. > > > > dd if=file.iso of=/dev/sd1c > > > > I am using a CRYPTO RAID partition and luckily I'm smart enough not to > > nuke that. > > > > My ssd is 2TB so I believe it uses FFS2 by default. I'm hopelessly > > running scan_ffs on it in case it was silently updated or the man is > > wrong or there's a God. > > > > Any advice on how to recover what's left? > > With a typical softraid FDE setup, not going too far from the defaults, > this likely means that the partition table, disklabel, root partition > and swap on the softraid volume were overwritten, but other partitions > might be ok if you can find them. > > If you don't have a copy of the disklabel stored away somewhere, > current options are probably > > - port the scan_ffs ffs2 support from netbsd > > - hack things up so you can get something out of our scan_ffs as in > https://marc.info/?l=openbsd-misc&m=167702020925723 > > (as shown in Matthew's mail, your initial target with either of these > should be /var/backups/disklabel.sd1.* so you can restore it and skip > scanning for other filesystems) > > - brute-force likely locations for /var (try on 1G boundaries) with the > read-only mount approach from that mail > > - try to recreate disklabel from scratch (*if* you accepted auto > partition defaults when installing, you might be able to recreate them > by using disklabel from the same OpenBSD version as you used to install > with auto-partitioning again, but the default sizes have changed over > time, so that will only help if you know the version). >