9

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.

andlabs
  • 503

2 Answers2

1

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.

SNugues
  • 89
  • 6
-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
Mitch
  • 109,787