Wednesday, October 28, 2009

Of Floppy Disks, HFS and Snow Leopard

Recently I started investigating the HFS issue in Snow Leopard. The issue is that now Leopard along with Snow Leopard no longer writes to or creates HFS volumes. This includes anything that can hold data. From floppy disks to USB flash drives to hard drives. Doing some investigative work specifically for floppy disks I found out several interesting things and ways around this problem.

1) Most modern USB floppy drives can read 1.4MB floppy disks (aka HD) and 720K floppy disks (aka DS/DD). But not 800K disks (typically HFS or ProDOS formatted) that were formatted on the floppy drive era of Macintoshes.

2) If you format a 720K floppy through Disk Utility on a pre-Leopard/post-Classic machine in Mac Standard with a modern USB floppy drive you can use that 720k Mac Standard (HFS) floppy on modern Macs. But that floppy will be read as a 300 or so kilobyte (I think it was 324K) floppy if you insert it into a floppy drive era Mac running Mac OS 9 or below. I'm guessing that there is potential for data corruption there due to the storage reporting difference. Most floppy drive era Macs can read 800K HFS or ProDOS floppies, 720K DOS floppies (FAT12) or 1.4MB floppies in compatible formats. Most floppy drives used in non-Mac x86 machines can only read 720K and 1.4MB floppies. This is how USB floppy drives work too. Note: I'm only talking about your basic floppy drives. Not the SuperDISK drives from Imation which hold (I think) 120MB or 140MB of data.

3) You can use the command "dd" in the Terminal to save an exact copy of an HFS formatted FDHD under any Mac OS X. Or for that matter any UNIX-like computer that can mount HFS volumes (there may be an equivalent in Windows if you use MacDrive by MediaFour). Then you can restore, essentially formatting and cloning, HFS FDHD's on your Mac OS X machine. This is how you do it:

First unmount (do not eject. There IS a difference) the nested volume under the floppy drive in Disk Utility (you can do this in the Terminal as well, I just forget the exact command). This will keep the floppy drive device active. Then type this in the Terminal:

dd if="/the path of the input file or device" of="/the path of the output file or device"

Typically you want to use the device path in one option (ie: /dev/disk1 or /dev/disk2 or wherever the command "df -h" tells you) and the image file path in the other option. Depending on whether you want to restore from an image file to a floppy or create an image file from a floppy.


To image a floppy disk.

dd if=/dev/disk1 of=/Users/[user name]/Desktop/BlankFDHD.img

Or the other way around to format, restore or clone a floppy disk.

dd if=/Users/[user name]/Desktop/BlankFDHD.img of=/dev/disk1

If there are spaces in your path then use quotes around the path. The brackets and the words in brackets ([]) are to be replaced by your user name on your computer.

Sadly this cannot be done for HFS formatted 800K floppies as I mentioned earlier as most USB floppy drives don't see 800K worth of floppy. Most of those drives have an FDHD 1.4MB mode and a 720K mode and that's it. I don't have a floppy drive era Mac running Mac OS X to test though so that may be a possibility if you can find a SuperDrive (the floppy drive Apple use to call the SuperDrive) driver for Mac OS X.

Essentially what you're doing is using an image file of a blank HFS formatted floppy disk made from a single HFS floppy to make more HFS floppies. Really just cloning blank floppies. The one scenario I can see this being used in is if you are using a Leopard Mac OS X Macintosh and you are nowhere near a Mac capable of formatting in HFS and you have a lapfull of floppies you want turned into HFS floppies for your museum quality vintage Mac SE back home. Not a likely scenario, but hey, if you want your HFS floppy formatting on your Leopard machine, there it is. BTW, HFS is the same as Macintosh Standard in Disk Utility. HFS+ is Macintosh Extended and its variants. Make sure you're using an HFS floppy that's using the full space of the floppy before you make that image file. A corrupted floppy can waste kilobytes of space. When formatting on, say, a Mac SE and you see the "Updating..." progress bar eat up your floppy's space. It's trying to make the floppy usable by formatting around the bad sectors so in the end you get a 1.2MB (or worse, less) out a 1.4MB FDHD which when formatted is supposed to give you 1.3MB in HFS format. In short, format your HFS floppy on a pre-Leopard/post-Classic Mac (Disk Utility is a lot better than the in-OS "Erase Disk" option in the Special menu on a Classic Mac. It gives you a full capacity floppy [nearly] every time). Also note that dd is a raw data copier. It copies exactly what it sees. If it sees a 1.0MB HFS floppy instead of a 1.4MB HD capacity/1.3MB readable HFS floppy like it should then it makes a 1.0MB image file not a 1.3MB one (which is 1.5MB in the Finder as a file). This will clone 1.0MB floppies and that's not what you want.

And of course you can use dd to "burn" those floppy image files you get from the net onto floppies.

Why would you want to do this? Well, if you don't have floppy disks or a floppy drive and/or a vintage Mac then this doesn't apply to you. Why would you want to fool around with HFS when HFS+ (or insert your favorite file system like ext3 or ZFS) is so much better? AGAIN,
if you don't have floppy disks or a floppy drive and/or a vintage Mac then this doesn't apply to you if you'd rather use non-legacy formats. Trust me, I know why you'd want to use non-legacy formats. This is often the route I'd take if I didn't have to deal with vintage hardware (along with a paperless office and using solar energy instead of grid energy). But there are a lot of people out there who still enjoy playing around with the older formats and hardware and to them this is important. This isn't a "what's better" HOWTO. This is a "what's compatible" HOWTO.

Sunday, October 25, 2009


Testing the Blogger widget on iMac.

Monday, October 19, 2009

About my pet peeves:

Forums. And comment threads on sites like YouTube. This link will give you more of an idea why:

I take it further. I just don't believe in forums and comments. They're just magnets for negativity and people with chips on their shoulders looking to prove a point tothe rest of the world. They take everything to extremes, take everything personal and are oblivious that others may not be as serious as they are. I have occasionally posted in comments lately, but I don't go back and reply or "defend my position" as if it's necessary. Not that I'm saying I'm always right (I say stupid things, mainly for silly-fun-time reasons). If I'm wrong then I'm wrong, but I'm not going to waste my time fighting with someone I don't know just to feed their need for attention and conflict because they can't stand it that other people may not have the same opinion as they do (real or perceived). These people are the people who watch Jon Stewart or read the Onion and have to take everything said as a challenge for debate. And that's sad. Because they will never admit they're taking things the wrong way. There's a name for personalities like this. It's called "douchebag".