Skip to content
Advertisement

How to mount image using mount(2)

I cannot mount some IMAGE on the MacOSX 10.10 via C function mount().

I use following code

JavaScript

And when I start the program I get the error “mount() is failed! Error(Operation not supported by device).”

And image was mounted if I use the following command:

JavaScript

Also, when I use mount() on the Linux – All is OK. Following Linux code:

JavaScript

Advertisement

Answer

There is no hfs+ type in

JavaScript

You should use hfs to handle both HFS and HFS+. Look for example at mount_hfs command source:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement