How to mount a specific file system on a disk image?

I have a disk image file containing several file systems such as HFS (Journaled) in addition to Joliet or UDF. I want to install any file system other than HFS. First, I attach the image without installing:

$ 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, such as:

$ mount -a -t nohfs / dev / disk3s2 / tmp

But the answer

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 file system types that you don’t want to mount. Is there a way to make this work, or should I know which specific file system I want to install?

EDIT: Would anyone like to explain negative voices and close voices?

+4
source share
1 answer

Firstly, you do not need the -a option, since it tells you that it mounts everything listed in / etc / fstab; your disk image is not listed there, so this is not true. Secondly, I’m not sure why the “no” prefix does not work, but you must do this by specifying the correct file system (cd9660 will be used for the Joliet image). Thirdly, if the hybrid format runs as I saw, you will want to install / dev / disk 3, not / dev / disk 3s2:

 mkdir /tmp/mountpoint mount -t cd9660 /dev/disk3 /tmp/mountpoint 
+3
source

Source: https://habr.com/ru/post/1389938/


All Articles