Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an ISO image with a UDF filesystem and a boot sector and I need to add a file to it. When I do

sudo mount -o loop,rw /tmp/file.iso /tmp/dir

I get

mount: block device /tmp/file.iso is write-protected, mounting read-only

This happens even if I remove loop or add unhide. The file has permissions rw-rw-rw-. I have tried various UDF command-line tools, but they all demand an actual CD drive, and won't even work with the loopback device. So is there anything I can do?

Because this has a boot sector, I'd rather edit the ISO file directly than unpack/repack.

Using Kubuntu 14.04 here. Thanks.

share|improve this question

I'm able to browse, add and delete files in an ISO file without unpacking/repacking it by simply opening it with the Archive Manager (Ubuntu 14.04).

Hopefully you can do the same using Kubuntu.

share|improve this answer
Archive Manager is file-roller, right? Or has that changed? – andlabs Aug 8 '14 at 6:14
Yes that's it, Archive Manager is its new name (like Files for Nautilus...). – SNugues Aug 8 '14 at 6:28
It does not seem to be reading the UDF section of the disk image. All I see is a single folder . with nothing inside. This is both with the package and with a file-roller master build via jhbuild. – andlabs Aug 8 '14 at 15:35

What you've done is somewhat correct, but you must login as a root user.

sudo su -

Create a mount point:

mkdir -p /mnt/<mount_name>

The use mount command as follows to mount ISO file .iso:

mount -o loop disk1.iso /mnt/<mount_name>

Change directory to list files stored inside an ISO image:

cd /mnt/<mount_name>
ls -l
share|improve this answer
I did use sudo; the output of my original question was with sudo. Edited. – andlabs Aug 8 '14 at 15:36
See changes in my answer, try that, and please let me know. – Mitch Aug 9 '14 at 7:27
Still complains about write-protect. – andlabs Aug 9 '14 at 10:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.