Tech Blog

FreeBSD Hangs on “Trying to mount root from zfs:zroot”

There are many reasons this can happen, but this one I believe is unique in terms of searching the internet for the error. We’d see a newly imaged (or...

Published
April 8, 2016
Author
Adam Strohl
Reading time
1 minute

FreeBSD Hangs on “Trying to mount root from zfs:zroot”

There are many reasons this can happen, but this one I believe is unique in terms of searching the internet for the error. We’d see a newly imaged (or restored from backup) ZFS-based server boot fine then hang here:

Trying to mount root from zfs:zroot

After banging my head into it for some time thinking it was a zpool import/cache file issue, I finally enabled verbose booting.

It turns out the /dev directory was not being restored or created because it was considered a separate filesystem. We use --one-file-system with tar to only backup specific volumes. With no /dev directory the system would not proceed, but it also didn’t report any error until verbose booting was turned on (something commonly forgotten).

Hopefully this helps others!

Need help with Linux or FreeBSD infrastructure?

A-Team Systems provides engineer-led support for production Linux and FreeBSD environments, including troubleshooting, operational oversight, and ongoing infrastructure management.

Contact A-Team Systems