* [gentoo-user] Creating loop devices
@ 2006-10-30 12:54 Alan McKinnon
2006-10-30 13:05 ` F.J.Zhao
2006-10-30 14:57 ` [gentoo-user] " Harm Geerts
0 siblings, 2 replies; 9+ messages in thread
From: Alan McKinnon @ 2006-10-30 12:54 UTC (permalink / raw
To: gentoo-user
Hi all,
I seem to be missing my loop devices in /dev...
And I don't find any docs on the current method to do this. I imagine
it's done with udev rules - anyone have working rules for this that
they'd be willing to share?
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Creating loop devices
2006-10-30 12:54 [gentoo-user] Creating loop devices Alan McKinnon
@ 2006-10-30 13:05 ` F.J.Zhao
2006-10-30 15:50 ` Alan McKinnon
2006-10-30 14:57 ` [gentoo-user] " Harm Geerts
1 sibling, 1 reply; 9+ messages in thread
From: F.J.Zhao @ 2006-10-30 13:05 UTC (permalink / raw
To: gentoo-user
Why not to use mknod?
mknod b /dev/loop0 7 0
mknod b /dev/loop1 7 1
mknod b /dev/loop2 7 2
...
chgrp disk /dev/loop*
2006/10/30, Alan McKinnon <alan@linuxholdings.co.za>:
> Hi all,
>
> I seem to be missing my loop devices in /dev...
> And I don't find any docs on the current method to do this. I imagine
> it's done with udev rules - anyone have working rules for this that
> they'd be willing to share?
>
> alan
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Creating loop devices
2006-10-30 13:05 ` F.J.Zhao
@ 2006-10-30 15:50 ` Alan McKinnon
0 siblings, 0 replies; 9+ messages in thread
From: Alan McKinnon @ 2006-10-30 15:50 UTC (permalink / raw
To: gentoo-user
On Monday 30 October 2006 15:05, F.J.Zhao wrote:
> Why not to use mknod?
>
> mknod b /dev/loop0 7 0
> mknod b /dev/loop1 7 1
> mknod b /dev/loop2 7 2
> ...
> chgrp disk /dev/loop*
Because this is a udev only machine and I want udev to create the nodes.
If I have to, I'll put the commands in a script to run at boot time,
but I would rather have udev do it (as the devs intend).
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: Creating loop devices
2006-10-30 12:54 [gentoo-user] Creating loop devices Alan McKinnon
2006-10-30 13:05 ` F.J.Zhao
@ 2006-10-30 14:57 ` Harm Geerts
2006-10-30 15:49 ` Novensiles divi Flamen
2006-10-30 15:59 ` [gentoo-user] Re: SOLVED " Alan McKinnon
1 sibling, 2 replies; 9+ messages in thread
From: Harm Geerts @ 2006-10-30 14:57 UTC (permalink / raw
To: gentoo-user
On Monday 30 October 2006 13:54, Alan McKinnon wrote:
> Hi all,
>
> I seem to be missing my loop devices in /dev...
> And I don't find any docs on the current method to do this. I imagine
> it's done with udev rules - anyone have working rules for this that
> they'd be willing to share?
>
> alan
Do you have support for loop devices in your kernel?
udev has default rules for this in /etc/udev/rules.d/50-udev.rules
Symbol: BLK_DEV_LOOP [=y]
Prompt: Loopback device support
Defined at drivers/block/Kconfig:261
Location:
-> Device Drivers
-> Block devices
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Creating loop devices
2006-10-30 14:57 ` [gentoo-user] " Harm Geerts
@ 2006-10-30 15:49 ` Novensiles divi Flamen
2006-10-30 16:41 ` Alan McKinnon
2006-10-30 15:59 ` [gentoo-user] Re: SOLVED " Alan McKinnon
1 sibling, 1 reply; 9+ messages in thread
From: Novensiles divi Flamen @ 2006-10-30 15:49 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
On Monday 30 October 2006 21:57, Harm Geerts wrote:
> Do you have support for loop devices in your kernel?
> udev has default rules for this in /etc/udev/rules.d/50-udev.rules
>
> Symbol: BLK_DEV_LOOP [=y]
> Prompt: Loopback device support
> Defined at drivers/block/Kconfig:261
> Location:
> -> Device Drivers
> -> Block devices
Precisely. Build it in or build it as a module. Load the module and the
devices u-magically appear.
- Noven
--
>-- Novensiles divi Flamen --<
>---- Miles Militis Fons ----<
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: Creating loop devices
2006-10-30 15:49 ` Novensiles divi Flamen
@ 2006-10-30 16:41 ` Alan McKinnon
0 siblings, 0 replies; 9+ messages in thread
From: Alan McKinnon @ 2006-10-30 16:41 UTC (permalink / raw
To: gentoo-user
On Monday 30 October 2006 17:49, Novensiles divi Flamen wrote:
> On Monday 30 October 2006 21:57, Harm Geerts wrote:
> > Do you have support for loop devices in your kernel?
> > udev has default rules for this in /etc/udev/rules.d/50-udev.rules
> >
> > Symbol: BLK_DEV_LOOP [=y]
> > Prompt: Loopback device support
> > Defined at drivers/block/Kconfig:261
> > Location:
> > -> Device Drivers
> > -> Block devices
Thanks for the reply, you were on the right track as I mentioned in my
other mail on this thread
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: SOLVED Creating loop devices
2006-10-30 14:57 ` [gentoo-user] " Harm Geerts
2006-10-30 15:49 ` Novensiles divi Flamen
@ 2006-10-30 15:59 ` Alan McKinnon
2006-10-30 18:28 ` Uwe Thiem
1 sibling, 1 reply; 9+ messages in thread
From: Alan McKinnon @ 2006-10-30 15:59 UTC (permalink / raw
To: gentoo-user
On Monday 30 October 2006 16:57, Harm Geerts wrote:
> On Monday 30 October 2006 13:54, Alan McKinnon wrote:
> > Hi all,
> >
> > I seem to be missing my loop devices in /dev...
> > And I don't find any docs on the current method to do this. I
> > imagine it's done with udev rules - anyone have working rules for
> > this that they'd be willing to share?
> >
> > alan
>
> Do you have support for loop devices in your kernel?
> udev has default rules for this in /etc/udev/rules.d/50-udev.rules
Problem solved! With the last kernel upgrade I must have changed my loop
devices from compiled in to modular, and there's no "loop" entry
in /etc/modules.autoload.d/kernel-2.6. If I "modprobe loop" everything
works like it's supposed to.
Earlier I had also run "grep -i loop /etc/udev/*" and got no results,
which sent me into a tailspin - note the spectacular omission of the -r
parameter.
<sigh> it's been a very long day :-)
Thanks for the pointers
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: SOLVED Creating loop devices
2006-10-30 15:59 ` [gentoo-user] Re: SOLVED " Alan McKinnon
@ 2006-10-30 18:28 ` Uwe Thiem
2006-10-31 7:04 ` Alan McKinnon
0 siblings, 1 reply; 9+ messages in thread
From: Uwe Thiem @ 2006-10-30 18:28 UTC (permalink / raw
To: gentoo-user
On 30 October 2006 17:59, Alan McKinnon wrote:
> On Monday 30 October 2006 16:57, Harm Geerts wrote:
> > On Monday 30 October 2006 13:54, Alan McKinnon wrote:
> > > Hi all,
> > >
> > > I seem to be missing my loop devices in /dev...
> > > And I don't find any docs on the current method to do this. I
> > > imagine it's done with udev rules - anyone have working rules for
> > > this that they'd be willing to share?
> > >
> > > alan
> >
> > Do you have support for loop devices in your kernel?
> > udev has default rules for this in /etc/udev/rules.d/50-udev.rules
>
> Problem solved! With the last kernel upgrade I must have changed my loop
> devices from compiled in to modular, and there's no "loop" entry
> in /etc/modules.autoload.d/kernel-2.6. If I "modprobe loop" everything
> works like it's supposed to.
Hm... My loop devices are compiled as modules, I don't have any loop entry
in /etc/modules.autoload.d/kernel-2.6 - but my loop devices are all there
under /dev.
Magic? White magic, black magic? Actually, this white=good and black=bad stuff
is a bit of a no-no here in Africa. ;-)
Uwe
--
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: SOLVED Creating loop devices
2006-10-30 18:28 ` Uwe Thiem
@ 2006-10-31 7:04 ` Alan McKinnon
0 siblings, 0 replies; 9+ messages in thread
From: Alan McKinnon @ 2006-10-31 7:04 UTC (permalink / raw
To: gentoo-user
On Monday 30 October 2006 20:28, Uwe Thiem wrote:
> > Problem solved! With the last kernel upgrade I must have changed my
> > loop devices from compiled in to modular, and there's no "loop"
> > entry in /etc/modules.autoload.d/kernel-2.6. If I "modprobe loop"
> > everything works like it's supposed to.
>
> Hm... My loop devices are compiled as modules, I don't have any loop
> entry in /etc/modules.autoload.d/kernel-2.6 - but my loop devices are
> all there under /dev.
Hmmm, interesting. I've updated my /etc/modules.autoload.d/kernel-2.6
and now it all just works correctly, but wasn't before.
Something with a kernel version perhaps? I'm using 2.6.18-suspend2
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-10-31 8:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 12:54 [gentoo-user] Creating loop devices Alan McKinnon
2006-10-30 13:05 ` F.J.Zhao
2006-10-30 15:50 ` Alan McKinnon
2006-10-30 14:57 ` [gentoo-user] " Harm Geerts
2006-10-30 15:49 ` Novensiles divi Flamen
2006-10-30 16:41 ` Alan McKinnon
2006-10-30 15:59 ` [gentoo-user] Re: SOLVED " Alan McKinnon
2006-10-30 18:28 ` Uwe Thiem
2006-10-31 7:04 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox