2002-03-29 01:26:15

by Matthew Walburn

[permalink] [raw]
Subject: mkinitrd w/ 2.4.18

hi there,

i'm having problems getting mkinitrd to work with 2.4.18 in a redhat 7.2 system. are there any kernel options that i should be aware of to get this to work properly that i'm somehow missing?

thanks
-matt
--
o--------------------oo0oo-------------------------o
| matthew walburn | mit dept. of mathematics |
| network staff asst. 0 building 2 - room 236 |
| [email protected] 0 77 massachusetts avenue |
o--------------------oo0oo-------------------------o


2002-03-29 02:48:43

by Pete Zaitcev

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

>[...]
> i'm having problems getting mkinitrd to work with 2.4.18 in a redhat 7.2 system. are there any kernel options that i should be aware of to get this to work properly that i'm somehow missing?

I would appreciate if you hit enter about every 70 keystrokes.

Also, describing a symptom rather than vague "i'm having problems"
may help.

-- Pete

2002-03-29 03:01:54

by Matthew Walburn

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

> I would appreciate if you hit enter about every 70 keystrokes.

Sorry about that didnt realize it wasn't wrapping.

> Also, describing a symptom rather than vague "i'm having problems"
> may help.

Specifically, i get the error message:
"all of your loopback devices are in use"

I have the follow kernel options enabled, using Redhat's kernel
config as a guide:

CONFIG_BLK_DEV_LOOP=m
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y

Thanks for the help.

-Matt

2002-03-29 04:01:10

by Pete Zaitcev

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

> Date: Thu, 28 Mar 2002 22:01:30 -0500
> From: Matthew Walburn <[email protected]>

> Specifically, i get the error message:
> "all of your loopback devices are in use"

Unfortunately, it only says that setting up the loopback failed.
You are not necesserily running out of free loopback devices.
Does mounting anything on the loopback work?
mount -t iso9660 -o loop /your/favourite/something.iso /mnt/cdrom

I'll drop cc on the next round.

-- Pete

2002-03-29 04:31:35

by NyQuist

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

On Fri, 2002-03-29 at 03:01, Matthew Walburn wrote:
> > I would appreciate if you hit enter about every 70 keystrokes.
>
> Sorry about that didnt realize it wasn't wrapping.
>
> > Also, describing a symptom rather than vague "i'm having problems"
> > may help.
>
> Specifically, i get the error message:
> "all of your loopback devices are in use"
>
you need to have loop.o insmodd'ed (insmod loop) to mkinitrd. If you're
using rh's stock kernel, I *believe* this is included as a module. If
you're running mkinitrd from your rebuilt kernel, check
/lib/modules/2.4.18/kernel/drivers/net for loop.o (methinks).
hth

> I have the follow kernel options enabled, using Redhat's kernel
> config as a guide:
>
> CONFIG_BLK_DEV_LOOP=m
> CONFIG_BLK_DEV_NBD=m
> CONFIG_BLK_DEV_RAM=y
> CONFIG_BLK_DEV_RAM_SIZE=4096
> CONFIG_BLK_DEV_INITRD=y
>
> Thanks for the help.
>
> -Matt
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
NyQuist | Matthew Hall -- NyQuist at ntlworld dot com --
http://NyQuist.port5.com
Sig: Any sufficiently advanced technology is indistinguishable from a
rigged demo.


Attachments:
signature.asc (232.00 B)
This is a digitally signed message part

2002-03-29 09:16:43

by Arjan van de Ven

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

In article <[email protected]> you wrote:
>> I would appreciate if you hit enter about every 70 keystrokes.
>
> Sorry about that didnt realize it wasn't wrapping.
>
>> Also, describing a symptom rather than vague "i'm having problems"
>> may help.
>
> Specifically, i get the error message:
> "all of your loopback devices are in use"

are you using tmpfs on /tmp ?

2002-03-29 10:31:44

by Tigran Aivazian

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

On Thu, 28 Mar 2002, Matthew Walburn wrote:

> hi there,
>
> i'm having problems getting mkinitrd to work with 2.4.18 in a redhat 7.2 system. are there any kernel options that i should be aware of to get this to work properly that i'm somehow missing?
>
> thanks
> -matt

Try this patch:

diff -ur mkinitrd-3.2.6-orig/mkinitrd mkinitrd-3.2.6/mkinitrd
--- mkinitrd-3.2.6-orig/mkinitrd Wed Sep 5 21:38:18 2001
+++ mkinitrd-3.2.6/mkinitrd Fri Mar 1 09:34:22 2002
@@ -309,9 +309,9 @@
echo "Using modules: $MODULES"
fi

-MNTIMAGE=`mktemp -d /tmp/initrd.XXXXXX`
-IMAGE=`mktemp /tmp/initrd.img.XXXXXX`
-MNTPOINT=`mktemp -d /tmp/initrd.mnt.XXXXXX`
+MNTIMAGE=$(mktemp -d $TMPDIR/initrd.XXXXXX) || exit 1
+IMAGE=$(mktemp $TMPDIR/initrd.img.XXXXXX) || exit 1
+MNTPOINT=$(mktemp -d $TMPDIR/initrd.mnt.XXXXXX) || exit 1
RCFILE=$MNTIMAGE/linuxrc

if [ -z "$MNTIMAGE" -o -z "$IMAGE" -o -z "$MNTPOINT" ]; then

As far as I know Red Hat's latest mkinitrd (in rawhide?) has fixed this
problem. Also, don't forget to set TMPDIR to somewhere other than a tmpfs
filesystem. You see, you cannot bind regular files on a tmpfs to loopback
devices.

Regards,
Tigran

2002-03-29 13:03:47

by Matthew Walburn

[permalink] [raw]
Subject: Re: mkinitrd w/ 2.4.18

Thanks everyone for the advice, it's now working. Embarringly enough it
was a simple case of insmoding loop.o.

thanks again.

matt