Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
"mount-loop" fails to mount a filesystem image. It returns "failed to setup loop device: No such file or directory". Same as Bug 1011907.
Version-Release number of selected component (if applicable):
kernel-3.10.0-290.el7.x86_64
libguestfs-1.28.1-1.46.el7.x86_64
libguestfs-winsupport-7.2-1.el7.x86_64
How reproducible:
Always
Steps to Reproduce:
1. # qemu-img create test-loop.raw 100M
# qemu-img create test.raw 500M
2. # guestfish -a test-loop.raw
><fs> part-disk /dev/sda mbr
><fs> mkfs ext3 /dev/sda
><fs> mount /dev/sda /
><fs> exit
3. # guestfish -a test.raw -vx
><fs> part-disk /dev/sda mbr
><fs> mkfs ext3 /dev/sda1
><fs> mount /dev/sda /
><fs> upload /path/to/test-loop.raw /test-loop.raw
><fs> mkmountpoint /loop
><fs> mount-loop /test-loop.raw /loop/
Actual results:
In step 3,
><fs> mount-loop /test-loop.raw /loop/
libguestfs: trace: mount_loop "/test-loop.raw" "/loop/"
guestfsd: error: /test-loop.raw on /loop/: mount: /sysroot/test-loop.raw: failed to setup loop device: No such file or directory
libguestfs: trace: mount_loop = -1 (error)
libguestfs: error: mount_loop: /test.raw on /loop/: mount: /sysroot/test-loop.raw: failed to setup loop device: No such file or directory
Expected results:
In step 3, mount-loop can mount the image to the mount point successfully.
Additional info:
Comment 2Richard W.M. Jones
2015-07-14 09:55:06 UTC
This works if you run:
><fs> modprobe loop
><fs> mount-loop /test-loop.raw /loop
It probably means we are missing a udev rule somewhere.
I can only reproduce the bug on RHEL 7.2, not on Fedora.
This is basically the RHEL version of bug #1165785.
The fix (commit 3dabc7a7bae709e884b56e297e7ece222e653d0c) is part of libguestfs >= 1.29.9, and thus it will be picked by the rebase (bug #1218766).
I just sent the small instructions this bug as regression test case, so we can check this keeps working:
https://www.redhat.com/archives/libguestfs/2015-October/msg00198.html
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHSA-2016-2576.html