General TC > General TC Talk
losetup: loopimage.img: No such file or directory
halma:
Hi, i hope this is the right section to post
i am using tinycorelinux 5.3 (3.14.5-tinycore64)
i try to mount an loop image file with losetup but it fails with
tc@box: sudo losetup -f hdc.img -o 32256
losetup: hdc.img: No such file or directory
sometimes i dont know why i can mount the loop image without deleting any other loop device but most of times if i try it fails as written above
here is an strace of losetup
maybe someone knows how to fix this issue
http://pastebin.com/MeXcgHwC
moun.sh
--- Code: ---#!/bin/sh
FILE=hdc.img
OFS=32256
LODEV=`losetup -f`
losetup -o $OFS $LODEV $FILE
--- End code ---
thanks
best regards
gerald_clark:
Use the losetup in util-linux.
halma:
ok i installed with tce the util-linux.tcz extension
after an reboot it tells me now:
tc@box: losetup -f -o 32256 hdc.img
losetup: not found unused device
and as sudo
tc@box: sudo losetup -f -o 32256 hdc.img
losetup: hdc.img: failed to setup loop device: No such file or directory
gerald_clark:
Try adding "loop.max_loop=255" boot code to pre-configure the dev nodes.
halma:
i think this one works without changing anyting:
sudo /usr/local/sbin/losetup -o 32256 -f hdc.img
Navigation
[0] Message Index
[#] Next page
Go to full version