Subject: Re: sharing a mounted HFS volume
From: Carsten Neumann (deltor@snafu.de)
Date: Tue Apr 10 2001 - 16:16:16 EDT
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.
Thanks a lot!
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.
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).
Thanks and kind regards
Carsten
This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:36 EDT