Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lsmod No such file or directory [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
se ven
n00b
n00b


Joined: 22 Feb 2016
Posts: 18

PostPosted: Wed Mar 23, 2016 12:39 pm    Post subject: lsmod No such file or directory [solved] Reply with quote

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... :roll:

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Wed Mar 23, 2016 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Mar 23, 2016 2:14 pm    Post subject: Re: lsmod No such file or directory Reply with quote

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
View user's profile Send private message
se ven
n00b
n00b


Joined: 22 Feb 2016
Posts: 18

PostPosted: Thu Mar 24, 2016 2:22 am    Post subject: Reply with quote

...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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum