Creating HFS Disks and Images Under OS X 10.6 Leopard

Anything about Mac emulation that does not belong in the above categories.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
mac128
Space Cadet
Posts: 5
Joined: Tue Sep 15, 2009 11:35 pm
Location: Los Angeles

Creating HFS Disks and Images Under OS X 10.6 Leopard

Post by mac128 »

In case you haven't heard, OS X 10.6 Leopard dropped write support for HFS disks and images leaving all of us vintage Mac-ers without the ability to support our habits under Apple's latest equipment. But ...

GOOD NEWS!

I was working with Wolf over at LEM's Vintage Mac forum and came up with an extremely simple way to copy HFS disks and images using Terminal. I was using a USB Zip drive, but I would think a USB floppy would work just as well.

Here's the procedure: Unmount the Zip drive using Disk Utility (don't eject), and images. Then type the following commands in Terminal:

Image to Zip:
$ dd if=/Zip.dmg of=/dev/disk2s1

Zip to Image:
$ dd if=/dev/disk2s1 of=/Zip.dmg

Obviously "Zip.dmg" is the name of the disk image. "/Zip.dmg" specifies the image in the root directory or internal hard disk. "disk2s1" is the name of the USB Zip drive. This can be found by mounting the Zip disk and typing $ mount in Terminal. You'll see something like this in the list of reported devices: "/dev/disk2s1 on /Volumes/Untitled (hfs, local, nodev, nosuid, read-only, noowners)" Alternatively, in Disk Utility, you can click on the mounted Zip disk and "Get Info". The first item in the list will be "Disk Identifier : disk2s1" –– Make sure you unmount before you attempt to make a copy. You can do the same thing with the disk images if you don't know where they are and don't want to just put them in the root HD. Just click on the disk image in Disk Utility and look for "Full Path : /Zip.dmg".

ERRORS: I received an Input/Output error report on both making the disks and images, but both seemed to mount and work properly under the OS X Finder as read only. I have not yet tested them with real Macs yet. The disk image attempted to boot under Mini vMac, but reported minor repairs were needed then was unable to create a desktop database. The original disk image from which the real Zip was made and then re-imaged, worked fine in Mini vMac. So I'm not sure what the problem is yet. Also, the blank ZIP disk had already been formatted with HFS standard, so I don't yet know if formatted in another file system (i.e. FAT, HFS+) if this will still work. However, the disk image seems to be a proper HFS image, as Snow Leopard confirms it as read only, and Mini vMac easily reads it, if not able to fully start up from it.

Please, everyone, start trying this with your ZIP and Floppy drives to accumulate some data. There's a solution here somewhere.

Now who wants to write a script to automate this for the rest of us?
mac128
Space Cadet
Posts: 5
Joined: Tue Sep 15, 2009 11:35 pm
Location: Los Angeles

Disk Image Update

Post by mac128 »

Lowendmac presciently covered this topic last year and confirms that "dd" works well with a USB floppy disk.

However, as it turns out, Snow Leopard's Disk Utility WILL create an HFS standard disk image from an external drive. Mount and highlight the HFS drive you want to create an image from. Under "File", "New", "Disk Image From (Select a Device)..." This produces a perfectly functional HFS disk image.

Presumably, Disk Utility must be able to mount the disk volume in question, so if Apple ever completely drops HFS, I would presume the option will no longer be possible in Disk Utility. I only tried this with a ZIP drive, but it would not image the drive itself, only the mounted partitioned volume. So this may or may not work differently with hard drives and floppies.

Also, there is a way to directly mount an external HFS drive under SheepShaver. Check that forum for details.
Post Reply