LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-29-2002, 02:04 AM   #1
reed
LQ Newbie
 
Registered: Mar 2002
Location: D.C. Area
Distribution: Rh 7.2
Posts: 25

Rep: Reputation: 15
Question mkinitrd ram disk image


so I've compiled my kernel 2.4.18

make dep && make clean && make bzImage && make modules
# yawn
# {have cuppa cuppa}

cp ./arch/i386/boot/bzImage /boot//vmlinuz-2.4.18_rbuild4
cp System.map /boot/System.map-2.4.18_rbuild4
make modules_install
mkinitrd /boot/initrd-2.4.18_rbuild4 2.4.18_rbuild4

# and I get the following error message

All of your loopback devices are in use!

OK I've done this before and it's worked. but now???
I rebooted and same error
from single user mode
I even
ifconfig lo down javascript:smilie('')
(yes I had to reboot after brining lo back up)
but even with it down
Allyour loopback...
RH 7.2 on a P4 1.5G 768M
I am using grub as a loader

Please help
 
Old 04-16-2002, 05:13 AM   #2
reed
LQ Newbie
 
Registered: Mar 2002
Location: D.C. Area
Distribution: Rh 7.2
Posts: 25

Original Poster
Rep: Reputation: 15
*bump*

just giving myself a list
as I still haven't managed to figure this one out.

anyone?
Beuller?
 
Old 04-16-2002, 06:42 AM   #3
L33t_H4x0R
LQ Newbie
 
Registered: Apr 2002
Distribution: Mandrake 9.0 (at the moment)
Posts: 28

Rep: Reputation: 15
This isn't going to be a huge amount of help - but I *can* tell you that I don't think it's talking about the loopback interface (lo) - which is networking specific.

Loopback devices are what you use when you want to do something like mount a file as a file system (e.g. you have a CDROM ISO image file, and you want to see whats in it without burning it to CDR first - you can mount the .iso on a loopback file system)

These loopback devices are entirely seperate from the lo device...

Now - the mkinitrd command is a shell script AFAIK - so you can do a 'which mkinitrd' to find out where it is - open it up in your favourite editor, and have a look and see what it's doing with loopbacks...

I'd do the same for you - but my nearest linux install is 200 miles away at home

Bry
 
Old 06-06-2002, 10:16 PM   #4
A08
LQ Newbie
 
Registered: Jun 2002
Location: Earth/Europe/Ireland/Wicklow/Bray
Distribution: Gentoo
Posts: 17

Rep: Reputation: 0
Exclamation

...this happens if you boot from a kernel without loopback support for drives (for example. ramdisk support). Try booting from the default kernel and you will most likely be able to finish your kernel rebuild.

cheers,
A08
 
Old 09-26-2002, 03:07 PM   #5
wbugar
LQ Newbie
 
Registered: Sep 2002
Distribution: RH
Posts: 1

Rep: Reputation: 0
hi, I was able to hack around this problem by rebuilding my kernel
with the loopback block device defined as a module and then doing an insmod loop.o. (kindof like A08 said).
mkinitrd was calling losetup which thought that all the loopback
devices were in use, looking at the manpage for losetup, it talked
about the insmod business. losetup was always returning error.
I think that there's a little bug in mkinitrd though, the code around
the losetup call thinks that there are 0-8 loopback devices but on
my system (RH7.2) there are 0-15, these numbers should not be
hardcoded, IMHO.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ram disk quiron Linux From Scratch 3 07-20-2005 02:43 AM
Help Building a Ram disk image travisk Fedora 4 07-19-2005 09:44 PM
Ram disk consty Red Hat 1 05-11-2005 07:06 AM
bootsplash ram disk image error huntermix Slackware 2 07-27-2004 11:53 AM
RAM disk in SuSE? J_Szucs Linux - General 3 10-23-2003 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration