PDA

View Full Version : loop mount error



narendar
03-19-2003, 09:37 AM
I was unable to mount the iso image via loop device
example
dd if=/dev/zero of=/ramdisk/test.iso bs=1024k count-20
mke2fs -b 2048 /ramdisk/test.iso
(press y for continue)
mkdir /test
mount -o loop /tmp/test.iso /test

(it gives error as ioctl: LOOP_SET_FD invalid argument)

so please advice me is there any other way to mount the iso file

eadz
03-19-2003, 10:13 AM
you cannot mount loopback fs's from a ramdisk. copy it to a real partition then try to mount it.

dolphin
05-08-2003, 12:15 PM
you cannot mount loopback fs's from a ramdisk. copy it to a real partition then try to mount it.

So how is it possible that the kernel on the knoppix CD can do it from tmpfs (/ramdisk).

It does a loopback mount when it creates the image for the terminal-server on line 230 in /etc/init.d/knoppix-terminalserver

When I use my own kernel it doesn't work, so anyone an idea what other patches knoppix uses to make this work?

narendar
05-08-2003, 01:44 PM
I sorted out this problem, when you copy the iso image to /ramdisk it doesn't work and it will work if you copy the iso image to /, but yiu need to rebuild the initrd.gz with more space

dolphin
05-08-2003, 06:30 PM
FYI

I've found the solution .. knoppix uses loop-aes which seems to work on tmpfs

http://www.knopper.net/knoppix/sources/loop-aes_1.6i-1.tar.gz

I've used that module and now I can loopback mount images ;-)