This is a diff from Ken Chen, who sent it to me a week ago and received the claimed prize $256. I think it's partially based on Jan's code, while if fixes the bug Jan mentioned (as far as I know). It does the following: - allocate loop dynamically on the fly - allocate one more (spare) loop each time, so losetup and mount tools can work correctly - doesn't need any module parameters Unfortunately 'mount' and 'losetup' binaries are hardcoded to stop searching for free loop device after the minor num 255, so one have to use a workaround in order to use more loops with 'mount': $ losetup /dev/loop1000 file $ mount /dev/loop1000 /mntpnt I hope these binaries will be fixed soon. Tomas M slax.org