Re: From CAP to netatalk


Subject: Re: From CAP to netatalk
From: Steven Karel (karelsf@brandeis.edu)
Date: Sun May 27 2001 - 14:37:52 EDT


CAP and netatalk store files in similar, but distinct, ways. Both use the
filesystem to store the data fork. They use different methods to store the
"extra bits" of information that Macs need:

CAP stores the "finder metadata" as files in a subdirectory named
.finderinfo and stores the resource fork in a subdirectory named
.resource

netatalk stores both the finder metadata and the resource fork in a single
file in a subdirectory named .AppleDouble - the file format used includes
an AppleDouble file header. See:

http://www-sccm.stanford.edu/Students/hargrove/HFS/README-4.html

Actually, it appears to me that on linux you could move everything by
mounting the CAP directories as one HFS filesystem, the new
netatalk-style directories as another HFS, and then just copy things
over
with linux. That would be cool if it actually worked. See:

http://www-sccm.Stanford.EDU/~hargrove/HFS/
http://www-sccm.stanford.edu/Students/hargrove/HFS/README.html

for the details of how you'd have to mount the two HFS filesystems.

-----

the program mkisofs and its predecessor mkhybrid also both understand the
CAP and netatalk directory structures, so you could create an HFS CD image
or CDs (using cdrecord) and move all the CAP files to your Mac.

ftp://ftp.ge.ucl.ac.uk/pub/mkhfs/
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html

---

install both CAP and netatalk simultaneously, and sit at a mac and move things around.

for CAP, see:

http://www.cs.mu.oz.au/appletalk/cap.html

---

A fellow by the name of Jonathan Paisley claims to have written a C program to move files from CAP to netatalk formats. See:

http://www.umich.edu/~rsug/netatalk/archive/admins/2000/1197.html http://students.dcs.gla.ac.uk/students/paisleyj/netatalk/

The latter page has an email page asking for people to e-mail him and tell him to hurry up and post his program to do it ;-)

This would probably be the best solution.

steven

On Sun, 27 May 2001, Mac Conin wrote:

> In my small understanding of netatalk all ressource forks are built on > the fly while a user mounts a volume. > The data (creator and type) are retrieved from AppleVolumes.system. > > Drop the files into the netatalk volume mount it - that should work > > Alle mails voor SMS systeem wrote: > > > > Hey, > > > > I am running netatalk on my linux (RH 6.2), with no problems so far (only > > used it for a few hours yet). > > > > However, I am also using hx, a linux Hotline clone, which downloads > > macintosh files in the CAP format instead of netatalk. Is there any way to > > 'translate' CAP files to netatalk ones (I mean, the structure of the > > resource forks) ? Or a utility to zip or stuff CAP files, so I can move > > them to my Mac ? > > > > Thanks in advance, > > > > Thomas > >

-- Steven Karel, Ph.D. Biology Department, Brandeis Univ, MS 008 415 South St Waltham MA 02454-9110 TEL 781 736 3104 FAX 781 736 3107



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:40 EDT