Difference between revisions of "Talk:Mount a Remote Drive via SMBFS"

From AwkwardTV
Jump to: navigation, search
m (Manual connection ok, but startup connection does not work)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Since Sharity-Light is distributed under the GNU General Public License, can you please post the compiled binary for x86 Mac Os x and AppleTV. Thanks! [[User:Oorosh|oorosh]]
+
I spent the better part of the last 24 hours on this and am questioning if there is an error somewhere in this process using smb.kext/mount_smbfs on ATV1. Did anyone get this working with smb.kext/mount_smbfs on ATV1? Seems I should be able to mount it to Volumes but mount directory disappears on reboot. --[[User:markosjal|markosjal]]
  
Done. No file attach capability unfortunately, so it is base64encoded.
 
  
== Troubles ==
+
I'm having some issues. I'm trying to mount a second drive via mount_smbfs (as outlined in this article). Here is what I am getting:
  
=== Failing to connect to a server by either IP or NetBIOS name ===
+
-bash-2.05b$ ls -la
Installed it, I'm able to mount other machines' SMB shares, just not my fileserver's for some reason...
+
total 64
 +
drwx------    7 frontrow  frontrow    238 Oct  3 20:35 .
 +
drwxrwxrwx  20 frontrow  frontrow    680 Oct  3 20:33 ..
 +
-rw-------    1 frontrow  frontrow  12292 Oct  3 20:15 .DS_Store
 +
-rw-r--r--    1 frontrow  frontrow      0 Feb 26  2002 .localized
 +
drwxr-xr-x    2 frontrow  frontrow    68 Oct  3 20:35 Current Season
 +
drwxr-xr-x    1 frontrow  frontrow  16384 Sep 22 19:18 Movies
 +
drwxr-xr-x  10 frontrow  frontrow    340 Oct  3 20:17 Old TV Shows
 +
-bash-2.05b$ mount_smbfs "//frontrow2:frontrow2@192.168.1.201/frontrow2" /Users/frontrow/Movies/Current\ Season
 +
mount_smbfs: can not setup kernel iconv table (default:tolower): syserr = Operation not permitted
  
From the ATV:
+
Any thoughts on what the error is about?
bash-2.05b# ping x.x.x.x
 
PING x.x.x.x (x.x.x.x): 56 data bytes
 
64 bytes from x.x.x.x: icmp_seq=0 ttl=128 time=1.199 ms
 
64 bytes from x.x.x.x: icmp_seq=1 ttl=128 time=0.476 ms
 
64 bytes from x.x.x.x: icmp_seq=2 ttl=128 time=0.327 ms
 
64 bytes from x.x.x.x: icmp_seq=3 ttl=128 time=0.737 ms
 
64 bytes from x.x.x.x: icmp_seq=4 ttl=128 time=0.625 ms
 
^C
 
--- x.x.x.x ping statistics ---
 
5 packets transmitted, 5 packets received, 0% packet loss
 
round-trip min/avg/max/stddev = 0.327/0.673/1.199/0.297 ms
 
bash-2.05b# shlight //x.x.x.x/movies ~/Movies
 
x.x.x.x: unknown host
 
  
Happens as root or as frontrow...
+
-- Shouldn't you be root (or sudo the command) to do a mount? --[[User:Tego|Tego]] 07:25, 4 October 2007 (CEST)
  
[[User:ProfessaFresh|ProfessaFresh]] 22:35, 27 April 2007 (CEST)
+
-- Wow, good call. Man sometimes you just miss the stupidest things... --[[User:kupan787|kupan787]]
  
'''Solution'''
 
  
I had the same issue. Fixed it by altering the hosts file.
+
----
It seems that shlight doesn't work with IPs and if you haven't got DNS working properly, it fails.
 
Adding the IP + Hostname to /etc/hosts means that both the IP and the hostname respond.
 
[[User:dobedobedoh|dobedobedoh]] 21:37, 27 April 2007 (GMT)
 
  
thanks dobedobedoh, that worked
 
  
[[User:ProfessaFresh|ProfessaFresh]] 22:51, 27 April 2007 (CEST)
+
So previously I was using Sharity to handle my SMB connection. I recently added a second drive, and the free Sharity can only handle one connection at a time, so I am moving to mount_smbfs. My issue is that the machine that I am mounting from sleeps, and when it goes to sleep I loose the SMB connection, and the only way to get my AppleTV to see it again is to reboot it. Sharity seemed to be able to reconnect on the fly. Is there any way, using mount_smbfs to reconnect on the fly to the drive? --[[User:kupan787|kupan787]]
 
 
 
 
Thanks for this hack! It works perfectly! [[User:Oorosh|oorosh]]
 
 
 
=== Fails to open files ===
 
In a setup with shlight and Vista (in a domain) it seems you need to specify -W [domain name]. It connects and shows the files (you can browse), but fails to open. the shlight responds with:
 
 
 
nfs server shlight-163: not responding
 
nfs server shlight-163: not responding
 
 
 
and can only be killed. The apple tv interface keeps waiting for the files become available. Which doesn't because of input/output error and can only be satisfied with a sudo reboot.
 
 
 
=== Manual connection ok, but startup connection does not work ===
 
 
 
connecting my Windows XP machine via Terminal works great:
 
 
 
/usr/sbin/shlight //192.168.xx.yy/Video /Users/frontrow/Movies/Filme -U frank -P xxx
 
 
 
I added this command to my rc.local to have the connection right on startup, but unfortunately this does not establish a connection to my server. I have to do it manually every time I start up the ATV - which then always works great. rc.local is located th the etc directory. I also added IP and host name to my hosts file with no result.
 
 
 
Where's my mistake?
 
 
 
[[User:JeanLuc7|JeanLuc7]] 12:31, 12 May 2007 (CEST)
 

Latest revision as of 08:58, 1 June 2011

I spent the better part of the last 24 hours on this and am questioning if there is an error somewhere in this process using smb.kext/mount_smbfs on ATV1. Did anyone get this working with smb.kext/mount_smbfs on ATV1? Seems I should be able to mount it to Volumes but mount directory disappears on reboot. --markosjal


I'm having some issues. I'm trying to mount a second drive via mount_smbfs (as outlined in this article). Here is what I am getting:

-bash-2.05b$ ls -la
total 64
drwx------    7 frontrow  frontrow    238 Oct  3 20:35 .
drwxrwxrwx   20 frontrow  frontrow    680 Oct  3 20:33 ..
-rw-------    1 frontrow  frontrow  12292 Oct  3 20:15 .DS_Store
-rw-r--r--    1 frontrow  frontrow      0 Feb 26  2002 .localized
drwxr-xr-x    2 frontrow  frontrow     68 Oct  3 20:35 Current Season
drwxr-xr-x    1 frontrow  frontrow  16384 Sep 22 19:18 Movies
drwxr-xr-x   10 frontrow  frontrow    340 Oct  3 20:17 Old TV Shows
-bash-2.05b$ mount_smbfs "//frontrow2:frontrow2@192.168.1.201/frontrow2" /Users/frontrow/Movies/Current\ Season
mount_smbfs: can not setup kernel iconv table (default:tolower): syserr = Operation not permitted

Any thoughts on what the error is about?

-- Shouldn't you be root (or sudo the command) to do a mount? --Tego 07:25, 4 October 2007 (CEST)

-- Wow, good call. Man sometimes you just miss the stupidest things... --kupan787




So previously I was using Sharity to handle my SMB connection. I recently added a second drive, and the free Sharity can only handle one connection at a time, so I am moving to mount_smbfs. My issue is that the machine that I am mounting from sleeps, and when it goes to sleep I loose the SMB connection, and the only way to get my AppleTV to see it again is to reboot it. Sharity seemed to be able to reconnect on the fly. Is there any way, using mount_smbfs to reconnect on the fly to the drive? --kupan787