Solved g-vfs_done error - System does not boot from freebsd-boot

I recently tried to boot FreeBSD (13.2) from a USB device which had been working previously.

The device only has freebsd-boot and freebsd-ufs partitions.

When
/etc/fstab
contains /dev/da01p1, the process fails with error 5

g_vfs _done():da0p1[READ ....

Entering ufs:/dev/da0p2 at the mountroot prompt allows the process to continue. Also using this value in fstab allows the system to bootup normally.

Any ideas on what is wrong? Sounds like a problem with partition 1. Can I fsck it? May I should recreate the partition...

 
Assuming that
  • /dev/da01p1 is the typo of /dev/da0p1,
  • /dev/da0p1 is the freebsd-boot partition,
  • and /dev/da0p2 is the freebsd-ufspartition,
/dev/da0p1 should NOT appear on /etc/fstab at all.
Boot code in freebsd-boot partition is a flat image just to be loaded into memory as-is (truncated if the partition size exceeds the limit) BEFORE kernel is loaded and not a filesystem, thus cannot be mounted at all.
 
Back
Top