Originally Posted by tredegar
If a filesystem isn't mounted, I don't think you can read it. That's the whole point of mount
Perhaps if you told us more about what, exactly, you are trying to do, we could help you better.
On the first point: one can always read the bytestream...even from a device; and initrd filesystems no longer require mounting to read them--it's just zcat | cpio -i ...
I'd like to use the same pattern against an ISO bytestream as I would with tar, ar, cpio, zip or any other archive format.
On the tasks I'm dealing with:
I'm writing internal support scripts that extract a single file or directory tree from an ISO file. I want to do this requiring neither root privileges, nor special system configuration--mount fails these two criteria. And as I mentioned earlier...no GUI--the scripts are running unattended as part of an automated build process.
Two specific tasks include:
1. Take the ISO constructed by a nightly build and update a yum repository with its contents. In an ideal world I'd be able to something like:
; iso2cpio? iso-file
| cpio -i -u rpm_location_on_iso
2. install a single rpm to a system from a network accessible RHEL5 supplementary ISO along the lines of:
| cpio -i --to-stdout rpm-location-on-iso
; rpm -Uvh local-file
I'm looking for a utility that'll do the format conversion form ISO-9660 to cpio (or equivalent)