Re: sharing a mounted HFS volume


Subject: Re: sharing a mounted HFS volume
From: Jonathan Paisley (jonp@chem.gla.ac.uk)
Date: Wed Apr 11 2001 - 10:31:29 EDT


On Tue, 10 Apr 2001, Carsten Neumann wrote:

> The afpd option works. But then I stumpled into that "afpd death" at
> AppleShare mount attempt. (I was using 1.4b2+asun2.1.3.) So after
> downloading the 1.5pre5 sources, configuring (with --with-shadow
> option!), compiling and installing I could successfully mount the CD
> on my Mac.

Great!

I remember that this thing used to work with 1.4b2+asun2.1.3 but then
stopped. I suppose the HFS filesystem module was perhaps changed between
now and then.

> Regarding your script:
> I found the volume name not at offset 85 or 87 but at 218!
> I'm still using kernel 2.2.13 (SuSE 6.3).

Hmmn. Maybe the AppleDouble format has changed a little in the HFS
filesystem driver. I must admit that I haven't actually used that script
since 1.4b2+asun2.1.3 stopped working :) And now you mention it, I also
notice that I didn't keep the comments up to date particularly well!

Glad you got it working!

> On Tue, 10 Apr 2001, Jonathan Paisley wrote:
> > On Mon, 9 Apr 2001, Rob Lineweaver wrote:
> >
> > I've managed to get HFS cdroms under linux (2.2.17) to work fine.
> >
> > # mount -t hfs /dev/cdrom /mnt/hfscd -o ro,afpd
> >
> > You'll need to adjust the volume name in AppleVolumes as appropriate.
> > Here's a script that does that (I've got /mnt/hfscd in my fstab as above):
> > [not the neatest of scripts but it seems to work]
> >
> > #!/bin/sh
> >
> > #offset 85 is start of volume name
> >
> > if mount /mnt/hfscd; then
> >
> > VOL=`cat /mnt/hfscd/.AppleDouble/.Parent | cut -b 87-106 | tr -d '\0'`
> >
> > cat > $HOME/.AppleVolumes <<EOT
> > /mnt/hfscd "$VOL"
> > EOT
> >
> > fi
> >
> > Beware that with some versions of netatalk, afpd will die when accessing
> > files on such a filesystem. I'm using pre5 (with permissions patch) and
> > it's fine.
>

-- 
Jonathan Paisley
jonp@chem.gla.ac.uk



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