Solved

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

Posted on 2007-03-29
2
727 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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.
Suggested Courses

734 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