7

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.

1

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
  • 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
  • @Mitch Your mount -o loop command says : mount: block device /tmp/toto.iso is write-protected, mounting read-only – SebMa Jan 11 at 14:10
  • @SebMa Just to clarify, you did use sudo right? – Mitch Jan 11 at 14:29
0

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.

  • 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
  • 2
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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