0

Short form of the question: How, on either macOS Sierra or Windows, do I compress a folder into a MacBinary (.bin) format?

Long story: I have a dashcam firmware upgrade folder from one of the mainstream dashcam manufacturers. The sounds that dashcam makes are of really low quality. I went ahead and inspected the files on the firmware upgrade, and one of the largest files turned out to be in .bin format. Looking at its info on macOS Sierra, I've noticed it says its MacBinary archive. I was able to easily unpack it into a folder wich turned out to be a snapshot of a typical linux distro. I tracked down the audio files I needed to replace with a better versions. Now I need to "package" the folder back into MacBinary archive to get the dashcam to upgrade from it, importing the new audio files. How can I convert a folder back to MacBinary?

Maxim V. Pavlov
  • 1,653
  • 6
  • 24
  • 38

1 Answers1

0

There’s a misconception here. MacBinary is not some kind of compressed archive format for a whole directory full of files. It’s just a way to take both forks and the Finder metadata of a single old-school Mac file and turn it into a monolithic file that can traverse non-Mac systems that didn’t have the concepts of multiple file streams and extensible metadata back in the dark ages of the 1980’s and 90’s.

Back then ‘.bin’ in the Mac world usually did mean MacBinary, but .bin has also always been a generic extension for a file containing unspecified binary data. It is often used for ROM dumps, including firmware images for embedded systems.

I suspect your dashcam firmware is the latter sense of .bin, not MacBinary. To find its real file type, use the “file” command on it, which looks for well known file type signatures in the first few bytes of the file. See the man pages for file(1) and magic(5(?)) for more information.

Spiff
  • 110,156