ISO file readonly?
Solution 1
ISO 9660 is by design a read-only file system. This means that all the data has to be written in one go to the medium. Once written, there is no provision for altering the stored content. Therefore ISO 9660 is not suitable to be used on random-writable media, such as hard disks.
You need to copy whole directory tree to another directory, make your changes and then burn a new image.
Solution 2
If you happen to run an OS supporting it (Linux & BSDs), you might use Unionfs to somewhat mount an ISO in read-write mode. All writes will be actually be done on a read-write file system but depending on your needs, that might fit them.
Related videos on Youtube
xiaohan2012
Updated on September 18, 2022Comments
-
xiaohan2012 over 1 year
I have an ISO file and I
mount
it under/mnt/isofile
. Then I copied this file to another folder. But the contents are read-only and belonged to root. I tried to usechmod
andchown
. But it prompts with the message:it is read only file system.
What is going on here?
NOTE: There is a tar file in the
.iso
, I want to compress it, but failed with the same "read only file system" message. -
Ciro Santilli Путлер Капут 六四事 almost 9 yearsWhat makes the format so difficult to modify?
-
jasonwryan almost 8 yearsHow would disabling RockRidge extensions help?
-
Kusalananda almost 8 years@CiroSantilli巴拿馬文件六四事件法轮功 It is the format used on CD ROMs. "ROM" = "Read Only Memory"
-
Ciro Santilli Путлер Капут 六四事 almost 8 years@Kusalananda sure, I understand that. But I was looking for more precise details of what makes the format hard to modify (forgetting physical media, since we are on a hard disk).
-
telcoM almost 6 yearsIf you modify a file so that it now takes up more 2048-byte blocks than it initially did, a ISO 9660 Level 1 or 2 filesystem cannot place the addition into a different location, but the whole file must be relocated, creating a "hole" of unused space where the file used to be. And it looks like the filesystem has no provisions of keeping track of the locations of such holes, making finding free space anywhere but at the very end of the filesystem extremely inefficient. So a read/write ISO9660 filesystem would quickly bloat in size as modifications are made.
-
telcoM almost 6 yearsThis was the reason why writeable CD-R and CD-RW discs initially had to be written with a specific CD-ROM authoring program, and the actual write operations had to be done as "sessions". Later, the UDF filesystem was developed to allow more disk-like write access ("packet writing") on CD-RWs.