A loop device allows any file to be mounted as a filesystem image. Not to be confused with a loopback interface in networking.
14
votes
2answers
691 views
What is a “loop device” when mounting?
I am doing a mounting of an iso file and looking at this tutorial. They use the command:
$ mount -o loop disk1.iso /mnt/disk
I'm trying to understand the use of -o loop. So I have two questions:
...
7
votes
2answers
1k views
Mounting multiple img files as single loop device
Is there a way to take an disk img file that is broken up into parts and mount it as a single loop device?
4
votes
2answers
218 views
When mounting, when should I use a loop device?
According to the following question:
What is a "loop device" when mounting?
A loop device is a file that acts as a block-based device. While I can understand that conceptually, how is this ...
3
votes
2answers
258 views
loop-device: is this a Linux entity or a lower-level one?
Here's an Ubuntu How-to about booting from ISO-image on flash.
http://ubuntuforums.org/showthread.php?t=1288604
What I don't get is creation of loop-device in GRUB2 prior to booting a kernel:
...
3
votes
2answers
2k views
Finding the offset for ext4 partition
I've created an image of my hd with dd, but grub was installed on it, and I'm trying to figure out how to mount the image file, but mount doesn't recognise it as an ext4 partition because of the grub ...
3
votes
2answers
419 views
How to remove length limit from losetup -a
I am using losetup -a to see my loop devices, but it has a length limit (which is 62 characters). So I can't know for sure which loop device I really want.
Ex:
[root@r7byach]# losetup -a
...
3
votes
1answer
210 views
How do I setup more then 10 loopback device?
From this answer the solution is to
modprobe loop max_loop=64
Which makes me allowed to use 64 loopback devices then
mknod -m 660 /dev/loop8 b 7 8
To create the devices. I did this for 8, 9, 10 ...
3
votes
4answers
1k views
How can I mount partitons in a full disk image (i.e. image with partition table) with fuse?
It's a bit indirect, but it's possible mount a partition with a disk image using mount or losetup's "offset" parameter.
I'm looking to be able to use fuse to do the same thing in user space
Use ...
3
votes
1answer
164 views
Virtual file made out of smaller ones (for mac-like sparse bundle solution)
I'd like to recreate a feature of Mac OS X called sparse bundles (disk images made out of smaller files, making them easy to backup after a small change). For that I'm looking for a way to ...
3
votes
1answer
38 views
How to make sure a loopfile is only mounted once?
When mounting a filesystem image via mount -o loop, is there any mechanism to prevent the same file to be mounted a second time?
3
votes
2answers
64 views
How to add a ms-dos partition table to a loop device?
I recently made a dd from a disk partition. I want to use it as a disk in a virtual machine. I can't because the disk has no partition table.
Can I had a partition table to a loop device? how?
...
2
votes
2answers
939 views
How is the loopback network interface implemented?
The loopback network interface "is a virtual network device implemented entirely in software," according to another question on Unix.SE.
But how is this implementation actually accomplished, and how ...
2
votes
1answer
68 views
GNU/Linux: overlay block device / stackable block device
GNU/Linux has union mount that overlays dirs. So you can mount a writeable dir on top of a read-only dir. When the writeable dir is unmounted the read-only dir is untouched.
I am looking for the same ...
2
votes
3answers
158 views
Ensure that loopback root and host are unmounted on shutdown
I'm trying to setup a Linux system that runs from an LVM-formatted image file. After some tinkering with the initramfs and boot options I managed to make it up and running by mounting the host file ...
2
votes
1answer
38 views
Grub change loopback amount?
I'm having an issue with loopback. It looks like there is only 8. I did a search and apparently the problem is grub by default only has 8 loopback (devices?). If i look in /dev/ i see loop 0-7 so that ...
2
votes
2answers
156 views
Second loopback network interface (for netem)
I would like to add a second loopback network device on Linux, so that I have lo and (e.g.) lo2. This is so that I can use netem to simulate a throttled network over lo2 without compromising my ...
2
votes
1answer
810 views
slitaz 4.0 grub2 loopback concatenate multiple initrd images
I'm trying to get slitaz 4.0 ISO to boot using a grub2 loopback on a multiboot USB;
insmod font
if loadfont /boot/grub/unicode.pf2 ; then
insmod gfxterm
# insmod efi_gop
# insmod efi_uga
...
1
vote
2answers
499 views
creating a device image for a network location
I have a dedicated ubuntu server with hetzner.de. hetzner also provides a seperate backup space accessible via samba/ftp/sftp/scp.
In their support document about backups, the following line is ...
1
vote
3answers
334 views
How to iterate through a comma-separated list and execute a command for each entry
I have been give a command which outputs a comma-separated list for autosys jobs in the variable $all_jobs:
box=box-of-jobs;all_jobs=$(jobscout -box $box | egrep "^\w+" | tr '\n' ',' | sed s/.$//);
...
1
vote
0answers
365 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
3answers
84 views
Why does this work: “cp image.bin /dev/mapper/loop0p1”?
Why does this work?
cp image.bin /dev/mapper/loop0p1
image.bin is a partition image.
I have tried it and works, but why? Shouldn't a dd be used?
-1
votes
4answers
80 views
Ending Process Infinite Loop Input Redirection
Edit: I realized that the program I was trying to run had an infinite loop after scanning all my input. Then just prints out infinitely so it'll never read the EOF. It'll read the last input then go ...