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)

2
votes
2answers
259 views

Generating a .img from tarball: The /dev/loop devices

I'm trying to make a .img from a tarball using the following script I found: #!/bin/bash # Packages required # dosfstools parted # Can be run on any Linux system # loop.max_part=15 must be in ...
0
votes
2answers
41 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
285 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 ...
1
vote
1answer
107 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 ...
1
vote
1answer
612 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, ...
0
votes
1answer
31 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
36 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 ...
1
vote
0answers
145 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
154 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
119 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
77 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
316 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
738 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
40 views

Running FFmpeg in While Loop

Here is my problem. I want to run many different multiple ffmpeg instances all in background and all in while true loop. I tried the following command but does not even work: (while true; do ...
0
votes
0answers
83 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
34 views

FTDI FT2232H time setting

I used FTDI FT2232H in MPSSE mode, running it at 30MHz(maximum speed) clock rate and Latency Timer is 255, I have downloaded libraries from below link and compiled with my App. code: ...
0
votes
0answers
238 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 ...