Bug 1127823 - losetup does not accept offset
Summary: losetup does not accept offset
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: util-linux
Version: 7.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Tomas Dolezal
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-07 15:40 UTC by Jiri Benc
Modified: 2015-03-05 13:18 UTC (History)
2 users (show)

Fixed In Version: util-linux-2.23.2-17.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-03-05 13:18:32 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0501 normal SHIPPED_LIVE util-linux bug fix and enhancement update 2015-03-05 16:20:51 UTC

Description Jiri Benc 2014-08-07 15:40:37 UTC
Loop mount does not accept offset= parameter, at least not for the values I tried:

mount -o loop,offset=1048576 -t ext4 rhel6-w1.img mnt
mount: rhel6-w1.img: failed to setup loop device: Numerical result out of range

Rebuilding util-linux-2.23.2-16.el7.src.rpm with added upstream commit a7d5202b5e49b7e33336818e00d240b8badddbb7 ("losetup: don't require 512-byte aligned offsets") fixes the problem for me.

Comment 7 errata-xmlrpc 2015-03-05 13:18:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.