Mount a Remote Drive via AFP

From AwkwardTV
Revision as of 23:59, 24 March 2007 by 69.150.192.35 (talk) (New page: You must have the firewall disabled and be logged into the Apple TV via SSH. 1. Enable Personal File Sharing on the network machine you wish to access. 2. From the ssh prompt on the Appl...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You must have the firewall disabled and be logged into the Apple TV via SSH.

1. Enable Personal File Sharing on the network machine you wish to access.

2. From the ssh prompt on the Apple TV, create a folder to mount the share, such as: mdkir /Users/frontrow/afp

3. Mount the share while still at the Apple TV ssh prompt. Here's the command I used:

mount_afp -i afp://joey-imac/Macintosh\ HD /Users/frontrow/afp

"joey-imac" is the name of the machine on my network

"Macintosh HD" is the drive I want to mount (notice you need the \ to escape sequence the space

"/Users/frontrow/afp" is the mountpoint on the Apple TV

You will get a strange errors such as the following:

mount_afp: the mount flags are 0000 the altflags are 0020
/mach: No such file or directory
Can't open /mach for reading - No such file or directory
kextload: can't map module files
kextload: can't check load addresses of modules
kextload: a link/load error occured for kernel extension /System/Library/Filesystems/AppleShare/asp_tcp.kext
/mach: No such file or directory
Can't open /mach for reading - No such file or directory
kextload: can't map module files
kextload: can't check load addresses of modules
kextload: a link/load error occured for kernel extension /System/Library/Filesystems/AppleShare/afpfs.kext

However, you can change to the directory of the mountpoint (e.g. /Users/frontrow/afp) and access files on the remote machine!