-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read dmg files without unmount. #56
Comments
Sure, check |
Thanks a lot, I'll try it. BTW, does darling-dmg create dmg format by itself ? I actually tried to mount empty hfs+ filesystem once on top of dmg file, and it seems like apple doesn't publish api on that, but force the user to use external binaries like newfs_hfs, mount_hfs and hdiutil that format the hfs+ structure in the dmg file... I wonder if it's optional to format it without these executables... |
No, darling-dmg can't create DMG files. The HFS+ filesystem is pretty well documented and I think you can find the sources for |
I've further investigated the project, and saw that in file "main-test-hfs+.cpp", the source file is expected to be from pure disk image format (without dmg header). and the test read the file "/Squiggle.app/Contents/Info.plist" directly from the dmg without mount, by merely parsing the partition hfs structure. The sample deals with AppleDisk format though, but it should work if I replace it to GPT format, right ? |
That's why I suggested that you read |
Hi,
I'm working on a file scanner that also support macOS archive files (that runs under linux) and was wondering if there's any way to use darling-dmg to extract dmg file contexts (by merely parsing/decompressing the dmg file) without the need to mount its contents on filesystem.
thanks
The text was updated successfully, but these errors were encountered: