Mount a Remote Drive via AFP

From AwkwardTV
Revision as of 21:40, 11 September 2007 by PycWra (talk | contribs)
Jump to: navigation, search

visual studio tools frasi buongiorno ladri di cadaveri tv tuner magik box dvd magnum p i router wi fi canzoni cantate di natale www mundo fred com ventola dissipatori e ventole blues mandriano touch my tra la la www il signore degli anelli it driver modem t z one shot one kill a colpo sicuro logitech cordless v500 il mostro di lochness giocattoli bambini tastiera casio 101 piovigginare la dorada eamon ragazza catania italia suonerie polifoniche 3 testo canzone orchestra dei the servant la nasa marsia vitale mixer behringer ub2442fx cisco adsl router 827 frigoriferi monoporta ariston eminem stan fara dadda super gals kotobuki ran lotteria estrazione balletto evanescence live giocattoli di legno masterizzatore dvd lg nero ati x800xl 512mb donne sesso cercasi easyjet it scopri la vip campeggi a campomarino giochi nellacqua dragoste din tei sibelius mp3 noleggio auto in friuli testo lrc scanner documenti televisore al plasma 42 panasonic canon stampante pixma ip5000 kyocera tk60 palmari gps palm t5 hotel 3 stella torino batterie ricaricabili c william hung download emulatori adsl puglia zillertaler alpen lettore radio modem adsl pci sitecom opel astra 20 16v dti sw sport http www arex ar com claudio magris feticcio donna sammer i feel love samsung 1150 hotel fenix lisbona radio 2 tamara como le explico produzione cd rom il drago volante clinica bernini windows licenza home calzature bimbo scarichi per moto honda asus 754 nec 3540 black tv dtt offerta hotel genova partos pantech ringtones phendimetrazine online free philips ringtones free vocal ringtones viagra online zoloft online buy zithromax alcatel ringtones valtrex online cheap ambien cheap vicodin free real ringtones cheap vigrx zyban online oxycontin online cheap ionamin buy actos cheap flexeril free verizon wireless ringtones accutane free audiovox ringtones americanairlines sibutramine pantech ringtones meridia free toques ringtones albuterol online nexium levitra online free blackberry ringtones buy flonase free nokia ringtones free verizon ringtones nextel ringtones cheap levitra cheap zocor lipitor cheap amitriptyline cellphone ringtones cingular ringtones cheap hydrocodone cheap nexium tracfone ringtones but hgh cheap propecia motorola ringtones but amoxicillin free cricket ringtones lisinopril online cheap fioricet cheap fioricet online cipro cheap ortho sildenafil cheap flagyl cheap tramadol free tmobile ringtones cheap atenolol punk ringtones retro ringtones ephedra online flagyl online midi ringtones cheap dianabol free turkey ringtones buy tamiflu free mtv ringtones free cricket ringtones free sony ericsson ringtones buy sildenafil free mono ringtones free voice ringtones clonazepam online kyocera ringtones ambien online norco online free humour ringtones celebrex online fluoxetine free mobile ringtones braccio di ferro il marinaio pentium 4 650 3 4 ghz cache l2 2 mb annuncio affitto massa carrara ragazza di colore edelwaiss gigaset a100 siemens cordless slim masterizzatore io di notte albano carrisi americano sgozzato space flo firenze ragazzo agrate brianza archos av 420 spee admiral graf teac mp 200 leslie banks frigoriferi porta reversibile kurnikova lonato nokia wcdma sartori franco srl musica e canzoni b w 802 australia hotel jane rivombrosa stampante 2010 fotografia digitale online albergo 4 stelle madrid barche passerelle hd 300 ti blu marina di pisticci ghiringhelli motorola batteria 3 6 sesso al cell visitare londra allfree sex programma gestione condominio vacanza nel mondo cancerina camen quesy monitor lcd con ingresso video albania musica ma l amore no mappa roma prati massaggio napoli tha girl in the other room cover suore fighe esibizionista ragazza gun s end roses relocation planetario per pocket sali da bagno lowry hotel manchester finanziamento terni tipo traffico telefonico hocus pocus midis de luis fonsi offerta regali basilicata magnificas cartina calabria luisa maria frenks david becham adult sex movie case per hdd esterni calendari pornografici dolce gabbana calzature donna epson emp s1h svga canzone amandoti gianna nannini kit gps per asus mypal a620 concessionario fiat a genova ray ban 3220 a 520 canon palma de mallorca vacanze toner c2600 cartoline caraibi camila mtv sony s300 calendario de mujeres mdre931lp s mercedes serie c sw haiduci mid prodotti tipici di fattoria della basilicata th 250 distruggere i mattoncini gyuk occhiaie rimedi amore erotico bmw 330d betty la cameriera actor s studio new york pornoanimale cori alpini gratis sintoamplificatore dvd offerta venezia ranchera agenzie investigative torino zaino mares registratore digitale attivazione vocale neumagen concessionarie auto localita isernia cheap synthroid cheap ortho flonase online klonopin online cheap ambien cheap flagyl free punk ringtones cheap diethylpropion free audiovox ringtones cheap celebrex cheap valtrex cheap celebrex wwe ringtones cheap ephedra southwestairlines cheap norvasc cheap zyban phentermine free cheap ringtones used bmw auto wellbutrin online cheap sibutramine order bontril pharmacy online clonazepam buy cyclobenzaprine cheap phendimetrazine cheap clomid cheap amitriptyline cheap levitra humour ringtones cheap zocor free cool ringtones cheap alprazolam free nokia ringtones cheap albuterol cheap zocor cheap ambien free love ringtones cipro online buy adipex cheap ultram but diovan christian ringtones free tv ringtones free cellphone ringtones free alltel ringtones free cellphone ringtones free metal ringtones adipex online ritalin online amoxicillin cheap norvasc music ringtones cheap darvon free lg ringtones celebrex buy venlafaxine zovirax free alcatel ringtones clonazepam online accutane pop ringtones free true ringtones cheap cipro hydrocodone online cheap klonopin buy ultracet flonase online cheap ephedra vigrx online mobile ringtones cheap ortho sony ericsson ringtones nexium alprazolam online cheap ortho t-mobile ringtones free fly ringtones buy zyban free rock ringtones punk ringtones free sagem ringtones cheap atenolol free mono ringtones buy tenuate rock ringtones weird ringtones free jazz ringtones cingular ringtones americanairlines cheap norvasc free animal ringtones cheap pharmacy adderall online oxycontin online flagyl free tv ringtones cricket ringtones diethylpropion online You must be logged into the Apple TV via SSH and have AppleTV software version 1.0 After the ATV 1.1 upgrade mount_afp is no longer working. (But it can be re-enabled - see Mount a Remote Drive via AFP under 1.1)

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: mkdir /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 errtouch or 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!

If you boot up with / mounted RW automatically (as in Mount ReadWrite) it will generate the /mach.sym file, which will fix the kext loading issues. If you then make it boot RO by default, it will not delete the /mach.sym file.


You can also mount drives by putting your ID and password into the command:

mount_afp  afp://myusername:mypassword@192.168.0.2/nixon ~frontrow/Movies/nixon
mount_afp  afp://myusername:mypassword@192.168.0.2/Silver ~frontrow/Movies/silver

Will mount my main and external drives under the Movies folder where ATVFIles will find it.

Obviously enter your own ID and password on your machine which has all the files. Nixon is the name of my computer's main hard disk, and silver the external. For some unknown reason the AppleTV seems to have problems with mountpoints with capital letters in them, so make sure you give your mount point a lower case name (i.e. silver not SIlver)

You might want to try adding this to your rc.local file to make it happen every time you reboot. So:

sudo echo "mount_afp  afp://barry:mypasword@192.168.0.2/nixon ~frontrow/Movies/nixon">>/etc/rc.local

that adds the first line to the end of the rc.local file which is run everytime the system boots.

For some reason this doesn't always work and in some cases the rc.local file doesn't exist. A way around it is to use su. su is a rather dangerous command as it effectively allows you to log in as root so use it wisely!

Copy /usr/bin/su from your local OS X installation to the same location on the AppleTV.

Then issue these commands

sudo su -

touch /etc/rc.local

echo "mount_afp  afp://barry:mypasword@192.168.0.2/nixon ~frontrow/Movies/nixon">>/etc/rc.local

This will log you on as root, create the file (only if it doesn't exist), add the changes to it. You can then check the changes have been made by typing:

cat /etc/rc.local

and checking the last line in the file.

Once you're happy, issue this simple command to exit the root shell:

exit