Results 1 to 10 of 10
Discuss [AppleTV] Mounting a share on Take 2 at the AppleTV 1 - Hackint0sh.org; Hi folks, I tried and tried and tried (with several installation instructions) to successfully mount ...
  1. #1
    Rookie Array

    Join Date
    May 2008
    Posts
    21
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [AppleTV] Mounting a share on Take 2

    Hi folks,

    I tried and tried and tried (with several installation instructions) to successfully mount a shared folder on my iMac permanently to my ATV, but I was not successful

    Does anyone have a working description?

    Thanks,

    Tom



  2. #2
    Professional Array

    Join Date
    Sep 2007
    Posts
    52
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default I'd love the help as well.

    I've installed stuff that was supposed to have helped and everything this damn AppleTV does is so unpredictable. Install USB support and all it does is reboot when I plug something in.

    I only have the stock 40gig drive in it, so I don't want to have to transfer stuff to it 'cause I have a drive, just for video, connected to my iMac on the network.

  3. #3
    Newbie Array

    Join Date
    Dec 2007
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    warren,

    Can you tell what you've done ?

    Maybe I can help...

    Cheers

  4. #4
    Senior Professional Array

    Join Date
    Oct 2007
    Posts
    473
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    30

    Default

    I'm in the same boat. I need to mount my PC drive on my ATV but clueless!!

    Firstly which method is best??? NFS, SMB or AFP????

    I believe to get NFS working I need to have NFS server software on the PC hosting the folder/drive etc

    Should I be able to mount by simply using nitotv network options or is there more to it then that???

    I really don't know where to begin and the guides don't help much

  5. #5
    Rookie Array

    Join Date
    Jan 2008
    Posts
    27
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Same Here

    I have the same problem.

    I finally got it to work following the instructions here

    hxxp://209.85.215.104/search?q=cache:IHx6OOzDXp0J:wiki.awkwardtv.org/wiki/Mount_a_Remote_Drive_via_SMBFS+how+to+mount+networ k+drive+on+apple+tv&hl=en&ct=clnk&cd=6&gl=us

    using shlight as a smb client but it only works if I run the script manually each time the ATV reboots it's gone. I've tried everything I can think of to get it running at boot from the rc.local or using a lauchd script but nothing works. I'll be happy to help with getting shlight to work that's pretty straight forward and would apprectiate any tips on getting the script to run at boot time. I think the major issue is that something is killing the shlight script at bootup and I don't know how to get around that.

    Jose


  6. #6
    Rookie Array cousincocaine's Avatar

    Join Date
    Apr 2007
    Posts
    23
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I am on the ATV take 2.
    First of all i can't mount the AFP airport extreme disk.
    But i can mount the SMB airport extreme disk (same disk, other protocol)

    for this i use a 'bootscript':
    save this script in: /usr/bin/bootscript
    make it executable: chmod 755 /usr/bin/bootscript

    for autorun put the following line in /etc/rc.local:
    Code:
    /usr/bin/bootscript
    Bootscript:
    Change the script to your setup!
    Code:
    #!/bin/sh
    #
    # ############################# #
    # bootscript made by CousinCocaine #
    # ############################# #
    #
    # ########################################################## #
    # this script runs all your none apple boot settings at once #
    # ########################################################## #
    #
    # SETUP
    # let the script fill in the root password
    # this is unsafe but makes it noob easy.
    PW="frontrow"
    
    # SMB MOUNTPOINTS
    # the name of the disk on the remote machine
    SMB_MOUNT_1="/SMBdisk"
    # the folder on the disk that contains your video files
    SMB_VIDEODIR_1="Videos"
    # ip address of the remote machine
    SMB_IP_1="192.168.1.10"
    # login on the remote machine (Airport Express likes everyone!)
    SMB_USER_1="frontrow"
    # password on remote machine (Airport Express wants the correct pw)
    SMB_PW_1="PASSWORD"
    
    # START SCRIPT
    echo $PW | sudo -S echo "Starting $0"
    echo $PW | sudo -S date
    
    # Make disk RW accessible. Undo this at the bottom.
    echo $PW | sudo -S mount -uw /
    echo $PW | sudo -S touch /.readwrite
    echo $PW | sudo -S sync
    echo "Root directory is mounted with write acces."
    echo ""
    
    # We need to be able to load kext files
    echo $PW | sudo -S /sbin/turbo_kext_enabler.bin 
    echo "Turbo's kext enabler loaded."
    echo ""
    
    # Load USB kext files
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/msdosfs.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/IOUSBMassStorageClass.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/AppleSMBIOS.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/IOStorageFamily.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/smbfs.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/udf.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/IOHDIXController.kext
    echo $PW | sudo -S /sbin/kextload /System/Library/Extensions/ntfs.kext
    echo "USB kextfiles loaded."
    echo ""
    
    
    # Mount SMB disks and create there mount points and symbolic links
    # Cleanup old mountpoints.
    echo $PW | sudo -S umount -f $SMB_MOUNT_1
    echo $PW | sudo -S rm -rf $SMB_MOUNT_1
    echo $PW | sudo -S mkdir $SMB_MOUNT_1
    echo $PW | sudo -S chmod 755 $SMB_MOUNT_1
    echo $PW | sudo -S chown frontrow:frontrow $SMB_MOUNT_1
    echo "Old mountpoints are cleaned up."
    echo ""
    
    # Mount disks
    sudo mount -t smbfs //$SMB_USER_1:$SMB_PW_1@$SMB_IP_1$SMB_MOUNT_1 $SMB_MOUNT_1
    echo "SMB Disks are mounted."
    echo ""
    
    # Create symbolic links
    echo $PW | sudo -S -u frontrow ln -s $SMB_MOUNT_1/$SMB_VIDEODIR_1/* /Users/frontrow/Movies/
    echo "Symbolic links created."
    echo ""
    
    # Make disk Read only
    echo $PW | sudo -S rm /.readwrite
    echo $PW | sudo -S sync
    echo $PW | sudo -S mount -ur /
    echo "Root directory is mounted with read acces."
    echo ""
    
    echo "Exiting $0"
    echo ""
    # end of file

  7. #7
    Rookie Array

    Join Date
    May 2008
    Posts
    21
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    hm,

    i tried your script, but I get the following error:

    mount_smbfs: no share name specified for username@

    with "username" being my username

    Any ideas ?

  8. #8
    Professional Array Gotcha007's Avatar

    Join Date
    Dec 2007
    Posts
    66
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Quote Originally Posted by joserpaq View Post
    I have the same problem.

    I finally got it to work following the instructions here

    hxxp://209.85.215.104/search?q=cache:IHx6OOzDXp0J:wiki.awkwardtv.org/wiki/Mount_a_Remote_Drive_via_SMBFS+how+to+mount+networ k+drive+on+apple+tv&hl=en&ct=clnk&cd=6&gl=us

    using shlight as a smb client but it only works if I run the script manually each time the ATV reboots it's gone. I've tried everything I can think of to get it running at boot from the rc.local or using a lauchd script but nothing works. I'll be happy to help with getting shlight to work that's pretty straight forward and would apprectiate any tips on getting the script to run at boot time. I think the major issue is that something is killing the shlight script at bootup and I don't know how to get around that.

    Jose
    Be sure you use a good text editor like TextMate under Mac to edit your rc.local file
    If you use TextEdit application it will not work because it change the format.

  9. #9
    Newbie Array

    Join Date
    Jan 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Smile Filesystem is read only

    Thank you cousincocaine - your script worked great. I tried this several times in vain on my own.

    I had to set the filesystem to rw-mode in order to place the script and edit rc.local (using "nano rc.local").


    # Make the root filesystem writable
    sudo mount -uw /


    # Make root filesystem read-only again
    sudo mount -ur /

  10. #10
    Advanced Array

    Join Date
    Apr 2007
    Posts
    49
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thank you so much for this bootscript. Finally, something works.

    ls


 

 

Similar Threads

  1. Replies: 1
    Last Post: 07-15-2010, 03:17 PM
  2. Mounting a smb share on the ATV
    By bertha674 in forum AppleTV 1
    Replies: 7
    Last Post: 07-31-2007, 01:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:12 PM.
twitter, follow us!