In a message on 22 Jun 1999 00:17:29 GMT, wrote :
DB> I looked in the man pages for mount but couldn't find
DB> what option to give it to mount a Mac-formatted floppy.
DB> I have a few diskettes from a friend's Macintosh which
DB> have some Word files on them and I want to write some
DB> code to grab all the files and convert them to ascii.
DB> Anybody know how to mount a mac floppy? Thanks.
You need either the hfs fs kernel module or the hfsutils package. The
hfs fs kernel module is actually easier, despite the fact that it
involves messing with the kernel. You just get the source, configure
it, build it, and install it. You may need to re-make the kernel
dependencies (I'm not sure). Then you can just:
% mount -v -t hfs /dev/fd0 /mnt
/mnt will now have the Mac floppy -- you can now do the usual sorts of
commands. You can copy the files off with cp or tar or whatever. Note:
the floppy will look like a 'CAPified' file system tree -- in every
directory there will be a .resource and .finderinfo directory containing
the resource forks and finderinfo files. Don't forget to 'umount' the
disk before ejecting it.
The hfsutils are much like the ms-dos disk utils -- there are a set of
programs that go after the floppy directly that replace the normal utils
(cp, rm, mv, ls, etc.).
Note: there is no way anything but a real live Mac can read 800K
floppies. These floppies are not recorded in anything like the normal
way non-Macs format or write floppies. Mac 1.44meg floppies are
readable.
I don't have URLs for the Mac file system code, but there are links off
the Linux Documentation Project pages at http://subsite.unc.edu/LDP/.
--
\/
http://www.deepsoft.com /\FidoNet: 1:321/153