you cannot mount loopback fs's from a ramdisk. copy it to a real partition then try to mount it.
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
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).Originally Posted by eadz
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?
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
FYI
I've found the solution .. knoppix uses loop-aes which seems to work on tmpfs
http://www.knopper.net/knoppix/sourc..._1.6i-1.tar.gz
I've used that module and now I can loopback mount images![]()

MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory
$149.99
TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$288.19
Windows 11 Pro Install/Recovery/Repair USB Flash Drive
$35.00
Lot of 4 - Kingston 1GB PC2-5300F DDR2 667MHz ECC Server RAM KVR667D2S8F5/1G
$59.00
USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09
Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90
Lot of 14 - 16GB DDR4 Memory PC4-3200 SODIMM Laptop RAM 3200MHz (MIX BRAND)
$900.00
USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot
$3.75
5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT
$9.99
1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot
$202.50