TimeCapsule HD form Linux

Hello, I've just received and configured my TimeCapsule.
Now I would like to share the 500Gb hd with linux to store what I want..
What I did is:

1) compiled samba and cifs packets
2) mount //192.168.1.12/TimeCapsuleDisk /home/share/
but I get:

+mount error 110 = Connection timed out+
+Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)+

3) I tried: smbmount //192.168.1.12/TimeCapsuleDisk /home/share/ -o username= ****,password=*****

but I get:

+timeout connecting to 192.168.1.12:445+
+timeout connecting to 192.168.1.12:139+
+Error connecting to 192.168.1.12 (Operation already in progress)+
+6468: Connection to 192.168.1.12 failed+
+SMB connection failed+


So, how can make Linux be able to access to TimeCapsule HD to read and write files?

Posted on Mar 13, 2008 3:26 PM

Reply
12 replies

Mar 20, 2008 12:12 AM in response to AndBaso

AndBaso,

I'm getting the exact same results as you with the same inputs on a Dell D610 laptop running Ubuntu 7.10.

Can anyone who has gotten a SMB share working tell me what the errors might be if you use a wrong username/password combo? I'm not 100% sure I'm using the right username, and since my MBP shipped out this morning to get fixed I don't have a Win/OS X machine to check that.

Thanks,
brandon

Mar 21, 2008 3:57 PM in response to Chris Bussey

But what do you use for the username? I have mine set to require the Time Capsule password, but I don't have a clue what the username on the TC would be. I've tried blank, my local username (not that the TC would know that), admin, etc.

I'm trying to connect from a Linux-based Acronis Recovery CD, so I can restore backups from it to PC's (and virtual machines on OS X). So far no luck.

(And in a much less important question, how do I change the NetBios name to anything other than "Newpc"?)

Mar 21, 2008 4:30 PM in response to JoshuaOchs

After some more experimentation, it appears that the SMB server on the Time Capsule is just really, really flaky (this is after the recent updates, including firmware 7.3.1).

If I connect from the Finder using "Connect to server..." and an address of "smb://10.0.1.1/", I can connect using any username and my Time Capsule password.

If I connect with the Acronis Recovery CD, I can generally connect once - it sees the drive list and such. However, any subsequent attempts to access it (such as locating the file to restore) results in it requesting the name and password again, always rejecting it. From this point onward the VM is not able to connect at all.

What is interesting is after that, I can't connect from anywhere over SMB - not from the VM, not from my Mac, not from a real PC. AFP still works fine. So, it seems that the SMB server is crashing on the Time Capsule, which is extremely disappointing.

The only silver lining is recovering from this is easier than I thought. Rather than reboot the whole Time Capsule, you can use the option to "Disconnect all users..." - this appears to do its magic by shutting down and relaunching the various file services (afp, smb, etc).

For now, I'll copy files locally with AFP and then restore them using VMWare's folder integration, but it's very, very disappointing.

Mar 22, 2008 3:38 PM in response to JoshuaOchs

Woohoo! After a few hours of trials, I can reliably mount the TC from Linux, under a few conditions...
-fresh restart of TC
-fresh restart of Linux PC
-no other PCs connected
-upstream internet port not connected

I used the mount.cifs command from above in the thread. My TC has the 7.3.1 update.

I can mount and unmount any number of times, and can even connect the Mac to the TC and have them both see files. Unfortunately, after the Mac looks at files, I can no longer unmount and mount the TC, though the Mac can still see it. I sometimes get connection refused errors and sometimes no response.

I also cannot get the TC to work with an upstream internet connection; it gets a temporary DHCP lease, still responds to ARP requests for its link-local IPv4 address from the Linux PC, but does not respond to the TCP SYN packet for SMB authentication. My TC is set to bridge mode.

It would be nice if there were some way to prevent the TC from even trying to get a DHCP lease.

So I have to agree with you, JoshuaOchs, the TC SMB implementation seems really flaky, and I'm disappointed with Apple.

May 10, 2008 2:19 PM in response to AndBaso

I have been able to get the Time Capsule to work pretty well from Ubuntu as well as from my MacBook Pro. I use the Ubuntu machine (an old Compaq Presario 1700 with 256 MB RAM) as a Bit-torrent server. I used to run Windows XP on the machine but as usually happens with Windows, the Operating System degraded over time and in the end it refused to update itself over Windows Update, so I decided to try out Ubuntu. Ubuntu works well with the exception that after a few days the Bittorrent client somehow has opened so many connections that the machine becomes totally unresponsive. It doesn't even accept SSH connections. I have ordered more RAM (very pricey for such an old box, I might add, but I found some used RAM on ebay for 20 bucks). I have tried Transmission, Deluge and Ktorrent, all with the same result after a few days of use.

I wanted the Bittorrent client to download the Bittorrent files to a temp area on the Ubuntu PC and then move the completed download to the Time Capsule. Ktorrent does this, but there is one minor annoyance. The Ubuntu-box does not have permissions to create nested folders on the TC. Ktorrent is able to create a folder containing the downloaded files, but it is unable to create a folder within that folder. I can live with this, but I would really like to see a solution.

Anyway this is how I did it. I found the hints over at Ubuntuforums.org > http://ubuntuforums.org/showthread.php?t=670535

Firstly I installed smbfs and smbclient software using apt-get, but Synaptics works just as well. SMBFS and SMBCLIENT lets the machine talk over the the CIFS protocol (Server Message Block, the latest version of SAMBA as I understand)

Secondly I created a mount point as follows
cd /media
sudo mkdir capsule

Thirdly I modified the /etc/fstab file using VI from the Terminal by adding the following line:

//10.0.1.1/TCNAME/MyFiles /media/capsule cifs password=p@ssw0rd,rw,iocharset=utf8,file mode=0777,dirmode=0777

The great thing about adding the server name in the fstab file is that this way Ubuntu will mount the Time Capsule upon each startup as compared to just typing the following in the terminal:
sudo mount.cifs //10.0.1.1/"My Time Capsule"/MyFiles /media/capsule -o pass=p@ssw0rd

Typing the above in the Terminal works too, but you will have to do it on each startup.

I have seen in other forums ( http://ubuntuforums.org/showthread.php?t=197192) that people has added "exec" as well as the "rw" flag. I wonder whether the exec flag would make it possible to create nested folders. Any hints would be appreciated.

By the way, I am experiencing the same problem as I have seen reported here at discussions.apple.com, that connecting a Ubuntu PC to the Time Capsule will prevent you from ejecting the share on the Mac. Annoying but not a show-stopper since logging out and then back in will do the job.

Nov 30, 2008 9:35 AM in response to Hug0

The problem with nested folders was resolved when I upgraded to Ubuntu 8.10. Suddenly the moving the sample-files rom the local hard drive to the Time Capsule works great. Upgrading to Ubuntu 8.10 solved the problem where scheduled transfers from the local ubuntu hard drive to the time capsule would fail most of the time. Now they work all the time without any modification of the configurations described above.

Feb 21, 2009 11:54 AM in response to Hug0

UPDATE: Suddenly my Ubuntu 8.10 installation started bugging out. My Ubuntu computer crashed on every startup. I read on the Internet that these kernel panics were related to a bug in SMB/CIFS and connecting to certain network shares would cause a reproducible crash, just as in my case. I tried some workarounds such as the Linux Client-port of the Apple Filing Protocol (afpfs-ng 0.8.1 by Alex deVries) - see http://alexthepuffin.googlepages.com/

The Afpfs-ng protocol worked ok, performance was not as good as with SMB/CIFS (about half the transfer-speed) and there was a problem where Afpfs-ng would not write to my time-capsule when it was in sleep-mode. After such sleep-access-problems access times to the capsule got really bad until I restarted the system.

As a last resort I decided to try and upgrade Ubuntu 8.10 to the latest beta version of Ubuntu 9.04 (Jaunty Jackalope). Apparently the SMB/CIFS bug has been resolved in Jaunty Jackalope and my Time Capsule Ubuntu integration has worked really awesome every since.

Instructions on how to upgrade from 8.10 to 9.04b are available at: http://www.ubuntu-unleashed.com/2008/12/howto-upgrade-to-jaunty-jackalope.html

To upgrade to the beta version of ubuntu 9.04 you basically press ALT+F12 to invoke the Update Manager in which you type "update-manager -d" (without the quotes of course). After this the rest goes automatically.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

TimeCapsule HD form Linux

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.