Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2007-03-29
2
Medium Priority
?
731 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
mzalfres earned 2000 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

715 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