I have a disk image file containing multiple file systems, such as HFS (Journaled) in addition to Joliet or UDF. I want to mount whatever non-HFS file system is there. First, I attach the image without mounting:
$ hdiutil attach -nomount path/to/image.iso
/dev/disk3 Apple_partition_scheme
/dev/disk3s1 Apple_partition_map
/dev/disk3s2 Apple_HFS
Then, the man
page for mount
seems to say that I can mount non-HFS file systems like this:
$ mount -a -t nohfs /dev/disk3s2 /tmp
But the response is
mount: exec /System/Library/Filesystems/nohfs.fs/Contents/Resources/mount_nohfs for /private/tmp: No such file or directory
which sounds like it just doesn't understand the documented "no" prefix for filesystem types that you don't want to mount. Is there any way to make this work, or must I know what specific file system I want to mount?
(This motivation for this question involved building CDs for software distribution. That might not be of interest here. But people on StackOverflow suggested that there might be more expertise on the mount
command on this site.)