Mounting a Mac-formatted floppy?

Mounting a Mac-formatted floppy?

Post by Dave Bail » Wed, 23 Jun 1999 04:00:00



I looked in the man pages for mount but couldn't find
what option to give it to mount a Mac-formatted floppy.
I have a few diskettes from a friend's Macintosh which
have some Word files on them and I want to write some
code to grab all the files and convert them to ascii.
Anybody know how to mount a mac floppy?  Thanks.

--
Dave Bailey

 
 
 

Mounting a Mac-formatted floppy?

Post by Robert Helle » Wed, 23 Jun 1999 04:00:00



  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

 
 
 

Mounting a Mac-formatted floppy?

Post by David Spac » Wed, 23 Jun 1999 04:00:00


Hi All,

: I looked in the man pages for mount but couldn't find
: what option to give it to mount a Mac-formatted floppy.
: I have a few diskettes from a friend's Macintosh which
: have some Word files on them and I want to write some
: code to grab all the files and convert them to ascii.
: Anybody know how to mount a mac floppy?  Thanks.

What kernel version do you have?  If you are using 2.2.X Mac filesystem
support is included (assuming you chose that option when compiling the
kernel).  For 2.0.X it can be added as a module.  I'm afraid I don't have
the URL to hand.  I took the lazy route and got it in binary form from
one of the RPM archives.

Either way the mount command goes something like:-

mount -t hfs /dev/fd0 /[mountpoint]

Alternatively, if your fstab lists the floppy as type auto then the
system will figure out which module to use for you.  Cool!  :-)

Dave Spacey
____________________________________________________________________________

Walk tall, walk straight,
Spit the world right in the eye.

-Kevin Godley and Lol Creme

 
 
 

Mounting a Mac-formatted floppy?

Post by Rod Smi » Wed, 23 Jun 1999 04:00:00




Quote:

> 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.

Largely, but not completely, true.  At one time there were add-on boards
for PCs that let PCs read and write Mac (and Apple II) floppies.  I don't
recall any names, I don't know if they're still available, and I doubt if
there are Linux drivers for these.  I've also used a Mac emulator for an
Atari ST (8MHz 68000 CPU from a decade ago) that came with a widget that
let the ST floppy (a standard 720kB 3.5" floppy, the same as went into
PCs of that era) read and write Mac 800kB floppies.

--
Rod Smith

http://www.channel1.com/users/rodsmith
NOTE: Remove the "uce" word from my address to mail me

 
 
 

Mounting a Mac-formatted floppy?

Post by Dave Bail » Fri, 25 Jun 1999 04:00:00


Thanks for the responses, turns out I had hfs in my 2.2 kernel,
so everything went great.  Now I'm looking at a bunch of Mac
MS Word files and wondering if there's any code out there which
will convert these to ASCII text.  I've done binary dumps of
some of them and apparently the Mac (or Word) uses different
characters for things like quotes and apostrophes and so on,
and, interestingly, sometimes there are big chunks of unprintable
characters sitting in the middle of words, sentences, between
paragraphs, you name it.  Already, this is far more than I
ever wanted to know about the format of a Word file.  So, if
anybody knows of any code which can convert Word to ASCII (or
even better, Word to TeX [fat chance]), please let me know.
Thanks.

--
Dave Bailey

 
 
 

Mounting a Mac-formatted floppy?

Post by Belgari » Fri, 25 Jun 1999 04:00:00



>Thanks for the responses, turns out I had hfs in my 2.2 kernel,
>so everything went great.  Now I'm looking at a bunch of Mac
>MS Word files and wondering if there's any code out there which
>will convert these to ASCII text.  I've done binary dumps of
>some of them and apparently the Mac (or Word) uses different
>characters for things like quotes and apostrophes and so on,
>and, interestingly, sometimes there are big chunks of unprintable
>characters sitting in the middle of words, sentences, between
>paragraphs, you name it.  Already, this is far more than I
>ever wanted to know about the format of a Word file.  So, if
>anybody knows of any code which can convert Word to ASCII (or
>even better, Word to TeX [fat chance]), please let me know.
>Thanks.

        Have you searched on freshmeat for something like this? I know
they're out there, i've seen them in apt's package listings. Look for
"mswordconv".

        Also, I believe Wordperfect/Linux (which may/may not be
availiable for mac/linux systems) can OPEN and read them. :)

--
Erik Hollensbe/AKA Belgarion

remove "admin" and "127.0.0.1" to reply via email
"I'm sick of limiting myself, to meet your definition..." - Incubus, "Redefine"