FreeBSD does not boot up after connected HDD via USB adaptor

looks like the start offset of the 'a' partition is indeed bad
id try to move it at offset 0 and add 16 to size
you can do this with disklabel -e ada0s1
and set the data for 'a' partition the same with 'c' partition (excluding the fstype) (change only offset and size)
then save and reboot
 
So lesson learned, don't mount UFS2 under OpenBSD FFS. I reproduce your situation and then the fix was to run fsck_ufs on da0s1a and fix the bootcode with gpart.
1702134350877.png
 
covacat Referring to the thread problem, I would like to protect myself against a similar situation.
I bought brand new SSD disk and make FreeBSD clean instalation with everything I need on that host.
The old one hard drive i would use as backup disk.

Is there any chance to make a identical copy (clone) of new SSD to HDD that i can only swap when something
goes wrong?
I know that dd copy zero data sectors, is there anything better but simple as that?

My actual setup:
Bash:
 ~  gpart show
=>        40  1953525088  ada0  GPT  (932G)
          40        2008        - free -  (1.0M)
        2048  1953523080     1  freebsd-ufs  (932G)

=>        40  2000409184  ada1  GPT  (954G)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048  2000407176     2  freebsd-ufs  (954G)

ada0 - my old hard drive
ada1 - new solid state drive (live system)

--- edit ---
I've tested dump and restore builtin functions and it's amazing!
Thanks authors for a great tools!
 
Last edited:
Back
Top