0
votes
3answers
43 views

How does cfdisk fix my disk image?

I'm working on a huge complex application. You connect a disk, press a button, and it partitions and formats the disk, mounts it, and copies some files onto it. To test this application, we have a ...
4
votes
1answer
118 views

mapping a split file to /dev/loop0

I have a iscsi disk 2TB large. I make backup of that disk every week. The backup script copies the image of the whole iscsi disk into a file on my NFS. Unfortunately, it does not copy the image in one ...
1
vote
1answer
185 views

Mount image user-readable with udisks2

Loop devices, i.e. for mounting raw disk images, can be managed without root privileges using udisks. For testing purposes, an image can be created and formatted like so: dd if=/dev/urandom ...
6
votes
1answer
705 views

Mounting an old floppy image file (.ima format) - how hard can it be?

I'm trying to mount and access a floppy image file in the .ima format (raw dump to floppy, similar to .img) on ArchLinux. This file is part of a set of 30. It is not bootable, but rather a ...
2
votes
2answers
734 views

busybox initramfs loop mount

I'm trying to loop mount my root filesystem (a loop file) within a busybox initramfs. I try to run the command: mount /rootfs.raw /root ... which works on my Ubuntu laptop, however, I simply get ...
1
vote
1answer
5k views

mount: could not find any free loop device

When I try to mount an ISO image with mount -o loop I get mount: could not find any free loop device Running losetup -a shows /dev/loop0: [0005]:2464 (/dev/sda1) /dev/loop1: [0005]:3439 ...
8
votes
2answers
7k 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
1answer
55 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?
5
votes
5answers
3k 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 ...
17
votes
2answers
2k 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: ...
3
votes
2answers
3k 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 ...