I was trying to dual boot both FreeBSD 10.3 and OpenBSD 6.0 on my machine by installing the two OS's to different disks and selecting the disk I wanted in the bios. This was successful until I mounted the FreeBSD disk within OpenBSD (and neglected to add a readonly option). The FreeBSD system no longer boots. I ran disklabel()
I then tried scan_ffs(). The FreeBSD disk had three partitions and I ran scan_ffs() on all three:
It looks like the second partition has the default partitioning scheme as OpenBSD. I did not try to install OpenBSD on the FreeBSD disk, and I didn't do much beyond copy a file from the FreeBSD disk to the OpenBSD disk. I would like to restore the FreeBSD disk to be bootable since it is still readable by OpenBSD and presumably still has all of the data and files intact. What could have caused the FreeBSD disk to no longer boot? How should I go about trying to restore the FreeBSD disk?
disklabel: /dev/ada1: no valid label found
# scan_ffs -l ada1p1 X: 2097152 24 4.2BSD 2048 16384 1 # / scan_ffs: read: Input/output error # scan_ffs -l ada1p2 X: 8388576 17152120 4.2BSD 2048 16384 1 # /tmp X: 37451936 25540696 4.2BSD 2048 16384 1 # /var X: 4194304 62992632 4.2BSD 2048 16384 1 # /usr X: 2097152 67186936 4.2BSD 2048 16384 1 # /usr/X11R6 X: 20971520 69284088 4.2BSD 2048 16384 1 # /usr/local X: 4194304 90255608 4.2BSD 2048 16384 1 # /usr/src X: 4194304 94449912 4.2BSD 2048 16384 1 # /usr/obj # scan_ffs -l ada1p3 scan_ffs: read: Input/output error