Red Hat Bugzilla – Bug 242169
Need read access to /dev/loopX serving a mounted ISO image
Last modified: 2007-11-30 17:12:05 EST
Description of problem:
When you mount an ISO image using 'sudo mount -o loop image.iso /media/cdrom',
you are not given read access to the loop file representing the image
(/dev/loopX). volname /dev/loopX should return the volume name of the mounted
image, like you would get for a mounted physical CD (/dev/hdX). In order to
work around this, I 'sudo chown myuser /dev/loopX'. This is important in order
to install software from ISO images in Wine, which reads the volume name in
order to handle media switching.
Version-Release number of selected component (if applicable):
Fedora Core 6
Steps to Reproduce:
1. sudo mount -o loop image.iso /media/cdrom
2. volname /dev/loopX
where X is the actual loop device number.
No volume name is available because of insufficient permissions.
This should be able to give the volume name of the image, just as though it were
a physical CD device.
I marked this as a bash component, but I'm really not sure what component it
Fixed component and reassigning.
err... /dev/loop cannot be given read-all permissions by default. Since you can
mount as root, you can chmod also.