[FSO] losetup trouble

rhn rhn at o2.pl
Fri Oct 3 18:51:50 CEST 2008


Hi
I've encountered trouble trying to create a loopback device to use with usb_storage module instead of the card.
Here are my problems:


root at om-gta02:/media/card# losetup /dev/loop0 bigfile 
losetup: /dev/loop0: No such file or directory
root at om-gta02:/media/card# touch /dev/loop0
root at om-gta02:/media/card# losetup /dev/loop0 bigfile 
losetup: /dev/loop0
root at om-gta02:/media/card# ls -l /dev/loop0
-rw-r--r--    1 root     root            0 Oct  3 16:31 /dev/loop0


bigfile is the file I wanted to mount.
I also tried to mknod /dev/loop0 with the major and minor guessed from the desktop's ones:


root at om-gta02:/media/card# mknod /dev/loop2 b 7 1
root at om-gta02:/media/card# losetup /dev/loop2 bigfile 
losetup: /dev/loop2: No such device or address


What can be done about it? Or maybe some usb storage module supports exposing directories instead of devices?




More information about the community mailing list