Questions tagged [loop-device]
A loop device allows any file to be mounted as a filesystem image. Not to be confused with a loopback interface in networking. Don't use this tag for questions regarding "for-loops" (use the "for" tag instead).
189 questions
12 votes
1 answer
881 views
Why does mkfs.ntfs count one Byte less?
Apparently, ntfs.mkfs counts one byte less when checking if the block device is large enough; or I have made some kind of mistake. After creating a partition of 2048 512-byte sectors (exactly 1MiB ...
2 votes
1 answer
270 views
What is holding a file descriptor to this block device aka why didn't losetup -d remove a block device
There's a number of posts about losetup -d /dev/loop0 not removing a lookback device, even though it returned a successful return code. I believe the root cause of those posts is that the block device ...
2 votes
1 answer
129 views
Is it safe to use a loop device to circumvent EBUSY on a block device underlying device-mapper?
I’m trying to include the beginning of a disk block device (the GPT area) read-only in a device-mapper linear mapping. This block device also contains my root filesystem, as such the partition housing ...
0 votes
0 answers
26 views
how to check how many loop-devices in a linux system are possible to use? [duplicate]
how to check how many loop-devices in a linux system are possible to use? i need this in a script, are not more than X possible, than end the script with some message...
0 votes
1 answer
69 views
join a specific number of files/devices in linear mode together in a linux system
For joining in Linux files/devices in linear mode together i have this script dm-joinlinear.sh from join files/devices in linear mode together in a linux system , thanks telcoM #!/bin/sh usage() { ...
7 votes
0 answers
368 views
Why is a loop device called a "loop" device?
As far as I understand, a loop device is a regular file that acts as a block device. It's used for various things like isolation in snap packages and installing ISOs over an existing filesystem. But ...
3 votes
1 answer
103 views
Loop partitions disappear on rebind
When I create a 400MB file called /tmp/foo, then call losetup -f /tmp/foo, this creates a loop device /dev/loop15. If I then partition the loopdevice and format it to contain ext4,ntfs, and fat32 ...
0 votes
0 answers
238 views
parted not recognizing loop device
I created a loop device with $ truncate -s 20G test.img $ losetup -fP ./test.img $ losetup -a /dev/loop0: [0032]:4051 (/tmp/test/test.img) lsblk is able to see it just fine $ test]# lsblk NAME ...