|
General Notes
Macintosh Windows Linux |
Mini vMac uses 'disk image' files, that hold the information
of an emulated disk.
For information about using disk images in Mini vMac,
see the 'Floppy Drive'
section of the Hardware Reference.
This page is about transferring files from the host operating
system into and out of disk image files.
The exact methods available depend on the operating system.
Update - The utilities ImportFl and ExportFl, which work in Mini vMac 3.0.0 and later, provide an alternative to the techniques described on this page for mounting disk images in the host operating, which has become increasingly difficult. (HFVExplorer for Windows is disappearing and HFS disk image support has become flaky at times in OS X.) |
It is better to use a separate disk image for transferring files, since using a disk image with both Mini vMac and other software, which usually seem to have slightly different ideas of the disk image format, tends to eventually lead to corruption of the disk image. You should periodically delete your transfer disk image file and get a new one.
You can get a new blank disk image from the "Blanks" archive.
Some versions of Mac OS for the Macintosh Plus, such as System 7.5.5, can mount DOS format images, which opens some more possibilities for transferring files on non-Macintosh host operating systems. However, this seems to be especially prone to corruption problems, so it is safest to use a new transfer disk image for each file transfer.
It is common for more recently created archives to not be usable by software that runs on a Macintosh Plus, even when the software in the archive works on a Macintosh Plus. In this case, you should first uncompress it on a modern Macintosh (or with Stuffit Expander for Windows version 7 as described below). On the other hand, old archives might not be understood by modern software, so you sometimes need to try both ways.
Renaming a disk image to end in '.dmg' (not '.dsk') makes it directly mountable in recent versions of Mac OS X.
The "SetFType.dimg" version of "SetFType" makes disk images directly mountable in Mac OS 9, and early versions of OS X.
Here are the steps to transfer a file into a new disk image:
Get a new "blank" disk image, large enough to hold the file.Rename the new disk image to end in '.dmg'.
In OS 9 or earlier (and some early version of OS X) drag it onto "SetFType.dimg", to make it mountable. Click OK to the success notification. (When SetFType works, it may not be necessary to rename the image to end in '.dmg', but it doesn't hurt.)
Double click on the disk image to mount it. The icon should show up on the desktop (and in OS X, the top level computer folder), named 'untitled'.
Drag the file you want to transfer onto this mounted volume.
Eject this mounted volume, such as by dragging its icon to the trash. (It is very important to remember to do this in Mac OS X, because the operating system allows two programs to open the same file for writing, with no way for the programs to prevent it, a really bad design. Two different programs mounting a disk image file for writing will usually cause irreparable corruption.)
You can now mount the disk image file in Mini vMac, such as by dragging its icon into the Mini vMac window.
There are many reports that "SetFType.dimg" fails to make an image mountable on Intel Macintoshes (and I've observed this myself). An alternative is to rename the disk image to end in '.dmg' (not '.dsk'). However, there is also one report of this failing also.
For OS 9 and earlier, mounting a disk image requires the application "Disk Copy". It is included with some versions of the OS, but if you don't have it installed you can download Disk Copy 6.3.3 from Apple.
The freeware program "HFVExplorer" can view and modify Macintosh HFS disk image files. Its website and mirror have disappeared, but copies of HFVExplorer can still be found on the web.
Here are the steps to transfer a file into a new disk image:
Get a new "blank" disk image, large enough to hold the file.Launch HFVExplorer.
Navigate the panel on the left to find the folder containing the file to be transferred. Then select the file in the panel on the right. Choose 'Copy' from the Edit menu.
Choose 'Open volume' from the File menu. Select the new disk image file.
Choose 'Paste' from the Edit menu. Click 'OK' in the 'Select copy mode' dialog.
Quit HFVExplorer. (I don't know of any other way to make it close a disk image.)
You can now mount the disk image file in Mini vMac, such as by dragging its icon into the Mini vMac window.
HFVExplorer can decode MacBinary ('.bin') files. Just follow the steps above and it will be done automatically. This feature is especially important since Stuffit Expander 4.0.1 (see the "Archiving Software" page) is encoded this way. Once you have Stuffit Expander 4.0.1 running in Mini vMac, you can decode most other kinds of archives for the Mac Plus.
You should not use Stuffit Expander for Windows to expand an archive containing an application and then transfer the application using HFVExplorer. This will lose essential Macintosh specific information (such as the resource fork). You should instead use HFVExplorer to transfer the archive into a disk image, and then use Stuffit Expander 4.0.1 running within Mini vMac to expand it.
But Stuffit Expander 4.0.1 can not handle some more modern archives. An alternative is that Stuffit Expander for Windows version 7 can correctly expand a Macintosh application and then re-encode it in MacBinary format. To enable this feature, choose the Options command in the View menu, select the "Cross Platform" tab, and for "Save Macintosh files in MacBinary format", choose either "Always" or "When a file contains a resource fork". (This feature is also supposed to be in version 9 of Stuffit Expander, but it didn't work when I tried it.) HFVExplorer can decode the MacBinary format, or you can use Stuffit Expander 4.0.1 within Mini vMac to decode it.
You can mount a Macintosh HFS disk image file with commands such as:
mkdir /mnt/the_img mount /the_image_path/the_image.dsk /mnt/the_img -t hfs -o loopHowever, this can only be done by the root user. Does any one know of a method that doesn't require root?
Update 12/10/2004 - Orion Sky Lawlor provides this tip:
"I figured out one good way to shovel one's data into minivmac. You can make a little HFS image file from a collection of separate files using the (standard unix) CD authoring tool "mkisofs":This worked for me when I tried it on Red Hat Linux 9. I noticed the man page warns against using -hfs-unlock (which prevents the disk image being set as locked), since "it's not a 'real' HFS volume." And indeed, Disk First Aid and Norton Utilities found problems with the created disk image.This creates a HFS volume in the file "stuff.hfs", which can immediately be mounted in minivmac. Because mkisofs is so cool, this even works if your Mac files have been mangled to work on another platform using AppleDouble, BinHex, PC Exchange, netatalk, or MacOS X's external format."mkisofs -hfs -hfs-unlock -probe -V "My Stuff" -o stuff.hfs Stuff/*