aonez / aonez/Keka

It would be good to have an option to create HFS disk images (the "Mac OS Standard" HFS) from folders

未关闭
#160 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
PHP
星标
7.3k
派生
294
平均合并
14 天 16 小时
30 天内合并 PR
1

描述

There used to be an option before to create HFS (the "Mac OS Standard" HFS) disk images in Disk Utility or with `hdiutil`, but in more recent versions of OS X / macOS options to create HFS disk images seem to be gone from Disk Utility and it seems that even if you use `-fs HFS` when using `hdiutil` that it automatically switches to HFS+... and even if you have a HFS disk image from before, it seems that they are mounted as read-only now if you double-click them in Finder... even though they still support creating and writing to images with MS-DOS compatible FAT.

But what if someone wanted to use System 7 or earlier in some emulator and wanted to create a disk image that could be mounted for System 7 and earlier to read files from it?

Articles say that HFS+ was added in Mac OS 8.1... and HFS (Mac OS Standard HFS) should be supported since System 2.1, so for backwards compatibility it would be good to have HFS.

I tried to see if there is some solution and there are command line utilities called hfsutils which allow formatting to HFS and allow copying individual files to it, but if you want to preserve resource forks (and preserving Resource forks used to be much more important for the classic Mac OS), it seem to require that you first encode each file into some format like MacBinary... and you can create new directories on the HFS volume, but I'm not sure is there some way to transfer a directory and preserve it's resource forks with hfsutils without having to put it into some archive first, then transfer it and then mount it under some older system with some unarchiving utility installed to extract that directory from the archive.

I found out about some app called "HFS Disk Maker" from the developer of Pacifist, which allows creating a HFS image from a folder, but it seems that it was still work-in-progress when some early version without an app icon was released a while ago and it doesn't seem like the development continued after that... but it seems to mostly work OK, resource forks for files and folders seem to be preserved... although it doesn't seem to support creating images from mounted volumes and if there were any symlinks in the original folder, those symlinks don't work anymore in that HFS image (I'm not sure can "Mac OS Standard" HFS even support symlinks... but it would be nice if those were replaced by Mac OS aliases when the HFS image was created)... but it seems to be the best and most user friendly solution to create HFS disk images from folders on recent versions of macOS... and I'm not sure is there any other app that would allow the user to transfer whole directories and preserve their resource forks on some more recent version of macOS (something that doesn't require installing some .kext to add HFS support).

Maybe if someone could ask the developer of Pacifist if he would be willing to open source "HFS Disk Maker", so the development could continue and if it could be turned into some command line utility which could be integrated into Keka.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。