-
Notifications
You must be signed in to change notification settings - Fork 1.2k
losetup /dev/loopdev /dev/diskdevice -b 4096 -P still not working #1784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It works for me (on 5.18.11-200.fc36.x86_64). Please, copy & past output from |
at first Thanks for answer!!! Here the output: |
Btw how did you do that with the environment var set and then disassemble the code lines inside of the progam. An internal LDE (Sorry, I am just stuck in ancient development methods : { and in case of the problem: Is there any way to get around e.g.. by blockdev did not work) Thanks in advance |
It seems like the old version of util-linux (2.36 or so), right? The latest versions use LOOP_CONFIGURE ioctl to configure all in one step. Anyway, I'm not sure where the problem is. It seems losetup does it right; maybe the old kernel has not backported all necessary patches to work with loop device blocksize properly. You can also try strace to see more details about the syscalls. Ad debugging, it's pretty simple, LOOPDEV_DEBUG=all activates debug messages (just printf() calls) in the code. |
Thanks. No, I downloaded the util-linux here last week from this site. As far to mention to the kernel it is a newer one (uname-r) but the kernel is specific for the ARM machine by the vendor. That's bad... Anyway thanks |
Cloned newest branch on
Linux 4.4.218.alpine.1 #1 SMP Sun Nov 7 15:26:42 UTC 2021 armv7l GNU/Linux, 2GB RAM
and compiled it, but still not working:
losetup /dev/loopdev /dev/diskdevice -b 4096 -P
example:
losetup /dev/loop5 /dev/sdc -b 4096 -P
losetup: /dev/sdb: failed to set up loop device: Invalid argument
The text was updated successfully, but these errors were encountered: