mounting failed with error 2

Darren Pilgrim list_freebsd at bluerosetech.com
Thu Apr 4 23:02:34 UTC 2013


On 4/4/2013 11:54 AM, Jay Borkenhagen wrote:
> Darren Pilgrim writes:
>   > Reboot using the install disk, go to the Live CD.  Import the pool using
>   > an altroot and a cachefile:
>   >
>   > zpool import -c /tmp/zpool.cache -o altroot=/mnt zroot
>   >
>   > Copy /tmp/zpool.cache to /mnt/ROOT/boot/zfs/zpool.cache, then reboot
>   > *without* exporting the pool.
>
> Thanks, Darren.
>
> However, when I try that I get this:
>
> ---------------
> root@:/root # zpool import -c /tmp/zpool.cache -o altroot=/mnt zroot
> failed to open cache file: No such file or directory
> cannot import 'zroot': no such pool available
> root@:/root #
> ---------------

Sorry, wrong cachefile option, try:

zpool import -o cachefile=/tmp/zpool.cache -o altroot=/mnt zroot


More information about the freebsd-fs mailing list