Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
loop.ko cannot insmod automatically in kernel 3.13-rc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dongfangxunlei
n00b
n00b


Joined: 30 Jan 2013
Posts: 40

PostPosted: Sun Jan 05, 2014 3:14 am    Post subject: loop.ko cannot insmod automatically in kernel 3.13-rc Reply with quote

I am not sure from which kernel version this problem has occured.
Is this a new kernel feature? :lol:
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Sun Jan 05, 2014 5:15 am    Post subject: Reply with quote

No, it is not very new. It is the module necessary for so called loop-devces. A loop device is a block device node called /dev/loopX that used a file as its storage backend. For example, if you mount a an .iso file, it will be first set up as a loop device and then mounted, as if it was a real device like a /dev/sdXX or /dev/srX node.

If the module cannot be loaded, check if you have compiled it in the kernel:
Code:
cd /usr/src/linux
cat .config | grep CONFIG_BLK_DEV_LOOP

should output a line like this:
Quote:
CONFIG_BLK_DEV_LOOP=y

If it is set to y, it is not compiled as a module but part of the kernel. In that case, you don't need to load it as a module. If it is set to "m" it should be possible to load it. If it is set to "n" you need to change it:
Code:
make menuconfig

you find the option at: Device Drivers --> Block devices --> Loopback device support

If this option is already set as a module, the modules were somehow not installed correctly. Try running
Code:
make modules_install

again.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7198

PostPosted: Sun Jan 05, 2014 6:41 am    Post subject: Reply with quote

Just use modprobe instead of insmod.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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