Solved

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

Posted on 2007-03-29
2
719 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
ID: 18896631
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
ID: 18898362
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Check if a filw is immutable for a certain amount of time 6 64
Help With Shell Script Centos 6 6 53
Use CRON to save a copy of an open file 1 40
ifconfig 4 46
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

821 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