can't boot my system normally

everytime i try booting my computer with freeBSD it enters in a screen with this prompt "mountroot>" and i cant do anything in this screen the only way i found to boot normally is plugging the bootable pendrive i used to install FreeBSD on the computer and only after the boot i cant unplug it.
 
It may be an old computer with an old BIOS that doesn't know about UEFI. It may not be able to boot from a disk formatted with a GPT partition table, but it should still be able to boot from a disk formatted with an MBR partition table.
 
This sounds like a UFS installed system not finding the right partition from /etc/fstab to boot from due to device name change.

Boot the pendrive, mount the UFS system partition, run gpart show -p, check which partition the freebsd-ufs is, modify fstab.

Example:
Rich (BB code):
# gpart show -p
=>       40  524287920    ada1  GPT  (250G)
         40     532480  ada1p1  efi  (260M)
     532520  515366912  ada1p2  freebsd-ufs  (246G)
  515899432    8388528  ada1p3  freebsd-swap  (4.0G)

/etc/fstab
Rich (BB code):
- /dev/ada0p2    /        ufs    rw    1    1
+ /dev/ada1p2    /        ufs    rw    1    1

To avoid device name change problems, one can label the partitions. See gpart(8) "modify"

Example:
Code:
# gpart modify -i 2  -l ufs0 ada1
"-i 2" = freebsd-ufs partition.

/etc/fstab
Code:
/dev/gpt/ufs0    /        ufs    rw    1    1
 
Back
Top