can't 'kldload zfs' if loaded not via /boot/loader

Ivan Dolgorukov ccnp at
Thu Mar 13 16:06:06 UTC 2008


I'm trying to boot up from my usb stick using grub 1.96 (/boot/loader gave me the 'BTX halted bug') and I've managed to succeed in that. After booting up in the command promth I've issued 'kldload zfs'. The command gives me 'link_elf: symbol hardlink_check_uid undefined', after that kldload fails. If I boot up from standart /boot/loader (on VMWARE or some other PC) there are no such problems exist.

Any ideas how to fix it? My idea is that some variable (kenv or sysctl) is missing and link_elf can't find 'hardlink_check_uid' in /boot/kernel/kernel.

uname -a
FreeBSD devil.localdomain 7.0-STABLE FreeBSD 7.0-STABLE #5: Wed Mar 12 12:19:10 MSK 2008     root at devil.localdomain:/usr/obj/usr/src/sys/MYKERNEL  i386

diff /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/MYKERNEL 
< # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.3 2008/02/03 07:28:37 scottl Exp $
> # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474. 2008/02/06 03:24:28 scottl Exp $
< options       SCHED_4BSD              # 4BSD scheduler
> #options      SCHED_4BSD              # 4BSD scheduler
> options               SCHED_ULE
> # for flash usb
> options       ROOTDEVNAME=\"ufs:da0s2a\"
> device                acpi

More information about the freebsd-questions mailing list