View previous topic :: View next topic |
Author |
Message |
se ven n00b

Joined: 22 Feb 2016 Posts: 18
|
Posted: Wed Mar 23, 2016 12:39 pm Post subject: lsmod No such file or directory [solved] |
|
|
Hi everyone, im new in gentoo, and the install was fine, but i have a problem when i try lsmod when i configure drivers:
Code: |
# lsmod
Module Size Used by
libkmod: kmod_module_get_holders: could not open '/sys/module/ipt_MASQUERADE/holders': No such file or directory
ipt_MASQUERADE -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/iptable_nat/holders': No such file or directory
iptable_nat -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/nf_nat_ipv4/holders': No such file or directory
nf_nat_ipv4 -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/nf_nat/holders': No such file or directory
nf_nat -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/xt_CHECKSUM/holders': No such file or directory
xt_CHECKSUM -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/iptable_mangle/holders': No such file or directory
iptable_mangle -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/bridge/holders': No such file or directory
bridge -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/stp/holders': No such file or directory
stp -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/llc/holders': No such file or directory
llc -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ip6table_filter/holders': No such file or directory
ip6table_filter -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ip6_tables/holders': No such file or directory
ip6_tables -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ebtable_nat/holders': No such file or directory
ebtable_nat -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ebtables/holders': No such file or directory
ebtables -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ctr/holders': No such file or directory
ctr -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ccm/holders': No such file or directory
ccm -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/pci_stub/holders': No such file or directory
pci_stub -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/vboxpci/holders': No such file or directory
vboxpci -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/vboxnetadp/holders': No such file or directory
vboxnetadp -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/vboxnetflt/holders': No such file or directory
vboxnetflt -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/vboxdrv/holders': No such file or directory
vboxdrv -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/rfcomm/holders': No such file or directory
rfcomm -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/bnep/holders': No such file or directory
bnep -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/bluetooth/holders': No such file or directory
bluetooth -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/dm_crypt/holders': No such file or directory
dm_crypt -2 -2
libkmod: kmod_module_get_holders: could not open '/sys/module/ipt_REJECT/holders': No such file or directory
...
...more...
|
im check the folder /sys/ , and there is no directory and file here acturally.
and im try google but no result...
is that something i missing?
does it generated automatically when kernel building?
any help appreciate.
Last edited by se ven on Thu Mar 24, 2016 2:22 am; edited 1 time in total |
|
Back to top |
|
 |
charles17 Advocate

Joined: 02 Mar 2008 Posts: 3686
|
Posted: Wed Mar 23, 2016 1:12 pm Post subject: |
|
|
Maybe sysfs did not get mounted? Are you getting output from mount? Code: | $ mount | grep sysfs
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) |
|
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Mar 23, 2016 2:14 pm Post subject: Re: lsmod No such file or directory |
|
|
se ven wrote: | im check the folder /sys/ , and there is no directory and file here acturally. |
se ven ... that points to your not having 'sysfs' in the 'sysinit' runlevel, or (if you're still in a chroot) you haven't bind mounted /sys to /mnt/gentoo/sys
rc-status sysinit | tr -s ' ': | Runlevel: sysinit
sysfs [ started ]
devfs [ started ]
dmesg [ started ]
mdev [ started ] |
... if its not then add it
Code: | # rc-update add sysfs sysinit |
If you're still in the chroot then see the "chrooting" section of the handbook (specifically 'mount --rbind /sys /mnt/gentoo/sys)'
best ... khay |
|
Back to top |
|
 |
se ven n00b

Joined: 22 Feb 2016 Posts: 18
|
Posted: Thu Mar 24, 2016 2:22 am Post subject: |
|
|
...Er
Sorry, im wrong... im still in chroot mod when im build kernel, and it's fine when i `mount --bind /sys /mnt/gentoo/sys` ...
and in configure X step i got a new issue, and i search more solution in google, but not fine. i'll move a new thread ...
thanks everyone. |
|
Back to top |
|
 |
|