Solved

The build-host kernel does not appear to have loop device support

Posted on 2007-03-29
2
710 Views
Last Modified: 2013-12-15
I'm trying to update my kernel using Genkernel, but get the following error:

sotus ~ # genkernel --bootsplash --no-install --no-clean --menuconfig all
* Gentoo Linux Genkernel; Version 3.4.6
* Running with options: --bootsplash --no-install --no-clean --menuconfig all
* Linux Kernel 2.6.19-gentoo-r5 for x86...
* The build-host kernel does not appear to have loop device support.
* Please load loop support before running genkernel!
* ERROR: Load loop support!

I understand (I think) that I need to enable loopback device support in the running kernel, but I don't know how to do it.  I tried 'modprobe loop' but that didn't work.

My system is:

Linux sotus 2.6.15-gentoo-r1 #4 SMP PREEMPT Fri Apr 21 11:36:05 GMT 2006 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

Can anyone offer any advice please?

Many thanks,
Steve
0
Comment
Question by:sda100
2 Comments
 
LVL 7

Accepted Solution

by:
mzalfres earned 500 total points
Comment Utility
Steve,

you should have compiled module for 'loop device'. List your /dev/ to see, if you have something like /dev/loopxx. Probably not.

If you have compiled module, try:

modprobe -l | grep -l loop

If there will be something like /lib/modules (...)/loop.ko then module is compiled, and modprobe will take it.
Just use modprobe <modulename> (without '.ko' at the end).
If it dumps errors or if grep found nothing, you probably have loop spport turned off in your kernel.

Try

 zcat /proc/config.gz | grep CONFIG_BLK_DEV_LOOP

Your case is probably 'n'.

You need to run 'normal' kernel compilation, eg. go to /usr/src/
then cd to your kernel source directory. Now you need to copy your current config to
.config file in this directory. Run:

zcat /proc/config.gz > .config

then

 make menuconfig

then go to:
 Device Drivers  --->
   Block devices  --->

and mark <*> Loopback device support                

exit completely from menuconfig GUI and run:
 make

Wait till your kernel is compiled. It will be in arch/i386/boot directory under kernel sources dir.
You need to install it according to boot loader used. Follow either grub or lilo manual or let me know
which one you use, so I can help you.

I hope it is not too complicated - English is not my native :)

Regards,

Marek ZJ
0
 
LVL 9

Author Comment

by:sda100
Comment Utility
Thanks Marek,

I did actually figure it out, but not nearly as easily as you've listed here - so I've accepted your solution as it is the correct answer.

Steve :)
PS. Your English is perfect!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now