Re: Can't mount ISO images via loopback driver in 2.2.7-ac2

Riley Williams (rhw@MemAlpha.CX)
Tue, 11 May 1999 17:22:54 +0100 (GMT)


Hi Brian.

> I am running the 2.2.7 kernel, with the second Alan Cox patch. I
> noticed last night that the loopback driver was apparently not
> working. I checked, and it apparently was compiled into the
> kernel during my last build.

I run kernel 2.2.7 raw (ie, no patches, just as it comes), and I have
several cases where I'm using the loopback driver to mount various
files as file systems, not all of them CD images either. I've had no
problems with doing that at all...

> IS there a way to check to make sure that it is available in my
> current kernel?

Only way I know is to try to use it...

> When I try to mount a CD image, I get no error messages; but if
> I then try to ls the contents, there is nothing there. Is there
> anything that could cause this besides a kernel problem, or not
> having the loopback driver in the kernel?

An empty CD image?

To check this out, try the following sequence of commands:

Q> dd if=/dev/zero of=/tmp/dummy bs=1024 count=1024
Q> mke2fs /tmp/dummy

Say yes when asked whether to proceed anyway...

Q> mount -o loop /tmp/dummy /mnt
Q> declare -i N=0
Q> while [ $N -le 9 ]; do touch /mnt/$RANDOM ; N=$N+1 ; done
Q> ls -al /mnt

This should show you a listing consisting of ten files of zero length
with numeric names, plus the directories . and .. and a line saying
"total 0" ???

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/