Auto mapping network disk

Discussion in 'Mac OS X Lion (10.7)' started by Defik, Oct 8, 2011.

  1. Defik, Oct 8, 2011
    Last edited: Oct 8, 2011

    Defik macrumors newbie

    Joined:
    Oct 8, 2011
    #1
    Hi.

    Im using macmini on Snow leopard+xbmc and im playing movies from network storage. Sometimes network place is disconnecting. Then I have to shut down xbmc and reconnect network storage again and then restart xbmc.

    Is there a way how to automatically reconnect network place, when disconnect happends?

    Thanks for help.
     
  2. parish, Oct 8, 2011
    Last edited: Oct 8, 2011

    parish macrumors 65816

    parish

    Joined:
    Apr 14, 2009
    Location:
    Wilts., UK
    #2
    OK, I'm guessing yours is an SMB (Windows) share, so you might have to modify this...

    I've got a RAID array on a Ubuntu Linux box exported as an AFP share. In order to get it to auto-mount I added this to /etc/fstab

    Code:
    kubuntu:/raid /Volumes/kubuntu_RAID_Array url browse,automounted,url==afp://username:password@kubuntu._afpovertcp._tcp.local/kubuntu_RAID_Array 0 0
    Note that 'username' and 'password' are those required on the remote device.

    For your xbmc, I would guess you would need to replace 'url==afp:.....' with something like this - note that the double '=' is required, it's not a typo.

    Code:
    url==cifs://username:password@hostname/path/to/share
     

Share This Page