This code is wrong but is there something to do its job?
mount somefile.iso | cp - Directory
More specifically, I have read-only issues while using the original mounted files so I need a copy.
This code is wrong but is there something to do its job?
mount somefile.iso | cp - Directory
More specifically, I have read-only issues while using the original mounted files so I need a copy.
While this is definitely not possible through a pipe (mount does make the file accessible through the filesystem, but thanksfully will NOT send them all through stdout), you can however use normal command chaining like mount -o loop /path/to/file.iso /path/to/directory && cp /path/to/directory /path/to/cop. Here && just means that the second command will be executed if and only if the first command suceeded (i.e. returned 0).
Now apparently what you want to do is not mount the iso, but rather extract the files from the iso like you would do with a tar.gz or zip archive, if I understood correctly. In this case you might look here for more efficient alternatives : What is the fastest way to extract an ISO?