A loop device allows any file to be mounted as a filesystem image. Not to be confused with a loopback interface in networking.

learn more… | top users | synonyms (1)

0
votes
2answers
100 views

Variable in for loop to be used as an array for a csv output

I've been struggling to come up with a solution for this, the goal is to organize the results into comma separated columns as we have to recable our entire datacenter from cat6 to cat6a. $DBFILE ...
2
votes
1answer
544 views

How to find alternative superblocks in ext3 file system of partition-less qcow2?

I have an interesting case, where e2fsck refuses to recognize the file system inside a qcow2 image file. Using testdisk I am able to see the partition, so some markers would be left. The reason this ...
2
votes
1answer
1k views

Problem creating raw disk image and mounting it in rescue mode to QEMU

I am trying to create booting system from raw disk image. This is what I do: $ dd if=/dev/zero of=system2.img bs=1M count=6000 6000+0 records in 6000+0 records out 6291456000 bytes (6.3 GB) copied, ...
1
vote
1answer
154 views

Using Device mapper thin provisioning on loop devices

I have several KVM raw files that are read only (about 100gb). I am adding these raw files as loopback devices. I then create a snap file to allow the VM to have read/write access to its disk. This ...
1
vote
1answer
469 views

Installing Arch Linux on an SSD

I'm making my way through this: https://wiki.archlinux.org/index.php/Beginners%27_guide I've done this successfully a couple of times when working with conventional HDDs but I've recently bought and ...
0
votes
1answer
38 views

My if bash script always execute the break

I`m making a script to rename files in a folder. The new name for the files is in a config file. I have to be sure that the file I want to rename corresponds to the current one in the config file. My ...
0
votes
1answer
59 views

Decrypting a previously create losetup device

I've created an encrypted backup in 2004, using losetup -e. I still know the passphrase, so I should be fine, but losetup is gone in the linux distributions I use. I still have a bash script for ...
0
votes
1answer
46 views

How can I loggin from VM1 to VM2 using script?

I am using script to loggin my VM2 from VM1 (Password of the VM2: fifa): for i in {a..z}{a..z}{a..z}{a..z} do # $i as a password ssh root@ipaddress read i echo $i done bit it doesn't work. ...
3
votes
0answers
46 views

Provide loop device functionality for a regular file under a unique name

I want to add a few image files with file systems to a LVM volume group. If I make them available as loop devices changes are pretty high that one day the script gets corrupted due to an increasing ...
2
votes
0answers
180 views

Unable to mount secondary HDD on CentOS 6.7 (Must specify file system?)

I have a secondary HDD that worked fine in Ubuntu 13.04. I had mounted in to /media/user/<some UUID>/. I could read and write files without problem. My Ubuntu installation was on a primary SSD. ...
2
votes
0answers
322 views

UDEV rule to run partprobe on loop device

I use udisks2 to mount raw image over a loop device: udisksctl -f image.img --no-user-interaction Policykit is configured, so no errors here. For some reason kernel does not want to re-read ...
1
vote
0answers
19 views

Prevent loop device partitions from being detected

I'm moving a work project from RHEL 6 (Kernel 2.6.32) to RHEL 7 (Kernel 3.10.0). The project involves the building of a raw disk image files to be used on virtual machines, these are representative ...
1
vote
0answers
137 views

Creating a sparse (automatically expanding and contracting) swap file with hole-punching support

I have this crazy idea, and want to know the pitfalls of such an approach (or whether it can even work with no deadlocks.. etc). The goal is to create an automatically expanding and contracting ...
1
vote
0answers
12 views

Is it safe to modify underlying file if it's mounted by losetup?

I've got a raw binary file and I need to access it (read-only) as a block device, for compatibility reasons. I mount this file through losetup eg. losetup /dev/loop0 file.bin. The block device is only ...
1
vote
0answers
262 views

Loopback (bind) mount automatically mounting additional ext4 USB drive

I have a USB (ext4) drive connected and it's registered in /etc/fstab. It mounts at /media/Backup fine. I want to mount a specific directory on that drive using a bind / loopback mount (this is ...
1
vote
0answers
226 views

passing variable through cat EOF command with for loop

How do I get the script run with the sbatch command to run with the 23 individual run_prep_chem_$dd.sh (i.e. run_prep_chem_08.sh...run_prep_chem_30.sh)? I am thinking since its in this for loop that ...
1
vote
0answers
100 views

Max file size for create_compressed_fs tool

Somebody knows what the maximum size of file could be processed by create_compressed_fs tool or used by /dev/cloop device? I suspect that it could be the root of the issue. I created "ISO" (UDF) ...
1
vote
0answers
391 views

Will there be any security problem to permit non-root user set up a loopback devices?

if the user has full access to the image file (iso or disk image), will there be any security problem to permit him set up a loopback device backed by this file ? % ls -al /dev/loop* ...
1
vote
0answers
876 views

Debian VPS, no loop devices present, modprobe fails

After acquiring a new virtual Debian squeeze I ran into a problem regarding loop devices. My plan was to set up an encrypted FS in a regular file and mount it. Unfortunately I can't do that since ...
0
votes
0answers
9 views

Red Hat Enterprise Linux 6.7: Turning off wi-fi forcefully unmounts a loop drive and crashes a VM

I am running Red Hat Enterprise Linux 6.7 on a Lenovo ThinkPad T430 and I have QEMU-KVM 0.12.1 installed on my computer. I have an external hard drive encrypted with dm-crypt and formatted as Ext4, ...
0
votes
0answers
56 views

CentOS7 Livecd login loop after Dracut update to 033-360

I am trying to edit the official CentOS7 livecd build 1406 and after updating Dracut to 033-360 (due to being an nfs-utils dependency) from the original 033-161 I am stuck in a login loop. Further ...
0
votes
0answers
18 views

Loop through directory and sum value next to specific pattern producing an average

I want to loop through all the files in the directory. the files are set out like this: <Overall>4 other data <Overall>2 other data ...... I have the code: for file in .dat; do awk '...
0
votes
0answers
104 views

Make whiptail work in a for loop

This is my first question ever here... So please be gentle :) I have a bash script that checks ping for 163 sites(stores around the country), which is this: #!/bin/bash #storestest.sh #version 0.9.2 ...
0
votes
0answers
134 views

SED: print entire paragraph for specific pattern while loop

I find partial answer about my problem on this question but i still have trouble. I need to use a variable as a pattern for the sed command in a loop sed -e '/./{H;$!d;}' -e 'x;/'$var'/!d;' The ...
0
votes
0answers
405 views

different loopback mounted volumes exported through NFS are seen as 1 by the client

I have a rather peculiar problem. I'm running 3.2.0-58-generic #88-Ubuntu (Ubuntu 12.04) and I have mouonted the following loopback devices: cat /proc/mounts | grep loop /dev/loop0 /work/kernel/...