This question already has an answer here:

I want to delete a few files from my iso image on hard disk. So, I did:

ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ sudo mount -o loop check_bholua99.iso /media/iso2
mount: block device /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/check_bholua99.iso is write-protected, mounting read-only

ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ cd /media/iso2
ravbholua@ravbholua-Aspire-5315:/media/iso2$ ls | tail
ravbholua@ravbholua-Aspire-5315:/media/iso2$ sudo rm DSC00982.JPG
rm: cannot remove ‘DSC00982.JPG’: Read-only file system

As it failed to delete for the said reason, I tried to remount with the option of rw

ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ sudo umount /media/iso2
ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ sudo mount -o loop,rw check_bholua99.iso /media/iso2
mount: block device /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/check_bholua99.iso is write-protected, mounting read-only

Why it messages that the block device is write-protected?

Please suggest how to mount it rw so that I can edit it. ( I know one way is to copy the files of the iso onto a diff. directory and edit/delete it; then make a new iso image. But this is not what I prefer. )

marked as duplicate by slm, Anthon, Zelda, vonbrand, Martin von Wittich Jan 24 '14 at 13:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • This is one of the annoyances with .iso files. They can't be modified directly. – slm Jan 24 '14 at 13:07

ISO9660 is a read-only filesystem. It can't be mounted in rw mode because there is no support for that in the filesystem itself. If you want to make a new ISO with a different set of files, you need to make an entirely new ISO with mkisofs or similar utilities.


From Wikipedia's article on ISO 9660:

The ISO 13490 standard is an extension to the ISO 9660 format that adds support for multiple sessions on a disc. Since ISO 9660 is by design a read-only, pre-mastered file system, all the data has to be written in one go or "session" to the medium. Once written, there is no provision for altering the stored content. ISO 13490 was created to allow adding more files to a writeable disc such as CD-R in multiple sessions.

  • Thank you for sharing knowledge of ISO 13490 & multiple sessions. It helps a lot. – Ravi Jan 24 '14 at 17:57
  • @Ravi - you're welcome. I noticed that wasn't mentioned anywhere that I could find within U&L so I figured I'd add it here so that it was more obvious for you and anyone else down the road. – slm Jan 24 '14 at 17:58

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