We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [loop-device]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
331 views

How can I give access to loopback devices which are created dynamically to a Docker container?

I have a small Docker container from which I can access /dev/loop0. For this I've added to docker run: --device=/dev/loop-control:/dev/loop-control \ --device=/dev/loop0:/dev/loop0 \ On this ...
1
vote
1answer
1k views

Why does this loopback device creation malfunction?

The stackoverflow people thought this was more appropriate here, I put it there as it is part of a program but I can see their POV, so here it is: At the bottom of the code you can see it failing. In ...
1
vote
1answer
1k views

poor performance with vmdk mounted as loop device even after conversion to raw

Edit 13/12/12 - At this stage it would appear to be related to Western Digital (and possibly others) Advanced Format 4K block sizes. This link goes some way into describing the issue, however the ...
14
votes
2answers
22k views

loop device in a Linux container?

I'm attempting to use a loop device inside a container, to mount some image file: > sudo losetup /dev/loop0 test.img losetup: /dev/loop0: failed to set up loop device: No such file or directory /...
1
vote
2answers
263 views

loop device does not auto detach on umount

I have a backup script in which I umount a squashfs file, I do backup then mount it back again. A simplified version of the script is: umount /home/backup/auto/mnt/os mksquashfs /src-dir /home/backup/...
3
votes
1answer
160 views

ZFS - Use a file as l2arc cache

I have a CentOS server that is using zfs to manage a big, slow, network attached volume. We read quite a lot from this volume, hence I would like to optimize the read performances. The idea is ...
2
votes
3answers
275 views

Can I create a compressed loop-device filesystem that can expand to fit the data size?

I have large numbers of small log files that are essentially write-only, unless I have to look at them for some reason. Right now, they accumulate in day-specific subdirectories in a logging folder (e....
3
votes
3answers
2k views

Find out which loop device is behind a dev mapper blcok device

I'm using cryptsetup with loopback devices. I'm looking for a way, given a device mapping, to identify which loopback device is used by this device. i.e. get /dev/loop1 as a result of an operation on ...
0
votes
4answers
54 views

enabling Spanning-Tree or not

do you think is wise or stupid keeping the rapid spanning tree enabled for just two switches in this image? https://imgur.com/a/XI1NI As you can see the switches are not redundant each other but are ...
0
votes
1answer
350 views

Cannot mount manually docker's loop device

I'm learning how to work with loop devices and noticed that Docker uses them by default on CentOS. I can mount loop devices that I created, but when I try to mount Docker's devices I get error: $ ...
3
votes
2answers
131 views

No write failure on an over-allocated sparse file

I've been working with sparse files in order to replicate Linux fs permissions on a Windows samba mount an idea from here: https://www.thanassis.space/backup.html. While testing sparse files though, ...
1
vote
0answers
112 views

A looped hub connected to a switch

---- We don't want to block the use of Hubs --- If two switches are connected to each other via a hub, STP detects and blocks alternate link (if available). But if a hub is connected to even one (...
5
votes
1answer
12k views

Loop back mount a VMDK flat image on a Linux Box

I am trying to loop mount a VMDK flat image generated by VMware fusion. The VMDK file has the -flat extension. I am trying to use kpartx kpartx -av /path/to /my/vmdk but I get llseek error device-...
1
vote
1answer
1k views

Link Aggregation with 3 switches

I am new in networking. Sorry for my ignorance. I have three switches. Switch 1 has 4 ports. Two of them connected to switch 2. And the other two ports are connected to switch 3. All these four ...
1
vote
1answer
507 views

kpartx device to image mapping

I am using kpartx to map the paritions of an image file to device mapper. kpartx maps the image to one of the free loop devices, for example, /dev/loop0 Is there a way to query what image is mapped ...
3
votes
1answer
2k views

Cannot read device /dev/loop0

I'm trying to create a crypted drive on my loop0 device. For this command /sbin/cryptsetup create cryptedDrive /dev/loop0 I'm getting the following error Cannot read device /dev/loop0 Here's my ...
0
votes
1answer
918 views

nfs, mounted loop devices

I'm usign a Debian server (Jessie) as an NFS server. All exported NFS-shares are mounted filesystems using loop devices. They are mounted in the fstab without any special options & the mountpoints ...
0
votes
1answer
799 views

Loop device going into Readonly Mode

We are using a network Samba drive for Backup on our Linux Server. In order to store permissions (Samba does not support this), we have created a loop device to a large file (50GB) on the network ...
-1
votes
1answer
252 views

Storage virtual machine. LVM or loop devices? [closed]

Actual situation: I'm the administrator of a virtual machine. The virtual machine is a Debian. This machine will be mainly a storage machine with different services (svn, ftp... ), and a webserver. ...
3
votes
1answer
157 views

Why make random file for loopback device for encrypted file system?

I have read a few tutorials on setting up an encrypted file system using cryptsetup. They all start with the following creation of a random file dd if=/dev/urandom of=/etc/cryptfile bs=1M count=10 ...