tag:blogger.com,1999:blog-1299820040181797045.post3220307601905569983..comments2023-11-15T09:38:18.380+00:00Comments on Martin's Random Notes: Mounting Apple Time Capsule share from Ubuntu 14.04Unknownnoreply@blogger.comBlogger20125tag:blogger.com,1999:blog-1299820040181797045.post-56503428113270124352017-10-29T08:29:14.414+00:002017-10-29T08:29:14.414+00:00Create an SMB Credentials file, and pass the full ...Create an SMB Credentials file, and pass the full pathname to that file as an extra argument to your mount command: <br />credentials=/home/yourubuntuusername/.smbcredentials<br /><br />This can be combined with using /etc/fstab to make it easier to mount (and optionally do so automatically on each login):-<br /><br />https://wiki.ubuntu.com/MountWindowsSharesPermanently#Mount_password_protected_network_foldersMartinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-36207462106716732822017-10-23T04:09:15.729+01:002017-10-23T04:09:15.729+01:00You said in your post “you can of course pass the ...You said in your post “you can of course pass the login credentials from a protected file in your home directory” what is the syntax of the command to do this and what should the contents of the file look like ?Anonymoushttps://www.blogger.com/profile/17250177470359766802noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-29397227363436959232017-09-17T05:17:01.988+01:002017-09-17T05:17:01.988+01:00I have happened to find your explanation and tried...I have happened to find your explanation and tried it. It worked. Thank you very much. In my case, I did not assign username to TM so I just used password.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-84855461474715869272016-10-18T09:09:15.789+01:002016-10-18T09:09:15.789+01:00OK so firstly /media/airport must exist already. ...OK so firstly /media/airport must exist already. And unless you are root (or you are sure that your user account has read/write/execute permissions on that folder) you might want to use "sudo mount" rather than just "mount" to make sure you don't get permission denied due to filesystem permissions on the local mount point.<br /><br />I can't recall whether non-root users can actually mount anything without special admin privileges so certainly try being root or using sudo.<br /><br />I'm not sure that you've got the options list correct. I would try sticking more closely to the examples. For one thing you haven't got '-o' before the password= option. I also don't see why you should need to override the UID option - that could cause a permission denied by itself unless you're root.<br /><br />As a last resort you might want to lose the space in the share name (TooneTown Media) or at least use the shell to escape it i.e. //10.0.0.1/TooneTown\ Media in case the %20 gets treated as a space by the shell - meaning that the number of parameters is wrong.<br /><br />Hope this helps<br /><br />Martinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-1582629048022414152016-10-18T06:31:46.389+01:002016-10-18T06:31:46.389+01:00I used this:
//10.0.0.1/TooneTown%20Media /media/a...I used this:<br />//10.0.0.1/TooneTown%20Media /media/airport cifs password=<($MyAirPortPasswd)>,uid=1000,sec=ntlm,user 0 0<br /><br />I replaced the password for securities sake<br />and it said mount error permission deniedAnonymoushttps://www.blogger.com/profile/02540575843695369909noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-44166635963692303302016-10-09T05:07:12.879+01:002016-10-09T05:07:12.879+01:00@Martin I just ran across this post.. a year later...@Martin I just ran across this post.. a year later. I realized I did not thank you. Thanks for the info. Stellarhttps://www.blogger.com/profile/06829997732476527996noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-44273349082967765342016-10-04T09:22:22.568+01:002016-10-04T09:22:22.568+01:00Hi, well if you enter the TC password when it prom...Hi, well if you enter the TC password when it prompts you, it will probably let you in!<br /><br />But if you want to get in without entering the password at the prompt, you might need single quotes rather than double quotes i.e. -o 'user=xxxx,pass=xxxx,sec=ntlm' - it may depend on whether your password has any characters in it that have special meaning in the Linux shell.<br /><br />Hope this helpsMartinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-43832840749034566582016-10-04T06:52:12.069+01:002016-10-04T06:52:12.069+01:00Hi Martin. I am trying to connect to my TC from a ...Hi Martin. I am trying to connect to my TC from a raspberry pi. When I use:<br />sudo mount.cifs //10.0.1.1/Data /home/pi/timecapsule/ -o “user=xxxx,pass=xxxx,sec=ntlm”<br />I get:<br />Password for root@//10.0.1.1/Data:<br /><br />Any help would be appreciated greatly!<br /><br /><br />Chrishttps://www.blogger.com/profile/09457939722064912361noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-15128179533659697522016-09-10T13:54:42.620+01:002016-09-10T13:54:42.620+01:00Yes you should be able to add an entry to the bott...Yes you should be able to add an entry to the bottom of /etc/fstab - googling that is left as an exercise for the reader. Only snag is that any login credentials will be readable by anyone who can see /etc/fstab . I don't know if that's world-readable, or needs to be,Martinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-47627542024224756832016-08-28T17:35:18.545+01:002016-08-28T17:35:18.545+01:00Owesome Martin!!!
This work for me!!!
Can we do a ...Owesome Martin!!!<br />This work for me!!!<br />Can we do a automount?Antonyhttps://www.blogger.com/profile/16031241701405223621noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-74300568225693795522016-08-08T06:45:04.317+01:002016-08-08T06:45:04.317+01:00OK to confirm the IP, this works... (if your time ...OK to confirm the IP, this works... (if your time capsule is called "capsule")<br /><br />$ nmblookup capsule<br />192.168.15.167 capsule<00><br /><br />This works for listing the share points (from 16.04 to Time Capsule)...<br /><br />$ smbclient -U example --option='client use spnego = no' -L capsule<br />WARNING: The "syslog" option is deprecated<br />Enter example's password: <br />Domain=[INTERNAL] OS=[Apple Base Station] Server=[CIFS 4.32]<br /><br /> Sharename Type Comment<br /> --------- ---- -------<br /> IPC$ IPC <br /> Data Disk <br />Domain=[INTERNAL] OS=[Apple Base Station] Server=[CIFS 4.32]<br /><br />This confirms that the share point name in this case is "Data".<br /><br />For actually mounting the share, this works...<br /><br />$ mkdir /tmp/mnt<br />$ sudo mount //192.168.15.167/Data -o'sec=ntlm' /tmp/mnt<br />Password for root@//192.168.15.167/Data: ********<br /><br />That seems to work but it needs the IP address not the hostname!<br /><br />Hope this helps<br /><br />Martinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-81734225367751342212016-08-08T01:56:20.958+01:002016-08-08T01:56:20.958+01:00I was using Kodi in 14.x with my Airport and Timec...I was using Kodi in 14.x with my Airport and Timecapsule, this was working fine. Now in 16.04 I'm not able to make it work, even doing different sort of tricks. Any help would be greatly appreciated.Marcinhttps://www.blogger.com/profile/09449581532782180045noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-14869618445584876882016-08-01T12:47:45.778+01:002016-08-01T12:47:45.778+01:00Interesting. I'll re-test from Ubuntu 16.04, f...Interesting. I'll re-test from Ubuntu 16.04, first taking any pending updates for the Time Capsule.Martinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-44202767735869648782016-07-25T16:55:47.117+01:002016-07-25T16:55:47.117+01:00Same thing happened to me. I was querying the Samb...Same thing happened to me. I was querying the Samba server via the nmlookup '*' command to extract the IP of the shares; however it seems that nmblookup is not working as expected from quite some time (back in February it was OK).Anonymoushttps://www.blogger.com/profile/06282547666419276763noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-30437097035153251192016-07-08T21:09:09.596+01:002016-07-08T21:09:09.596+01:00Hi Anthony... I saw your note. Your commands look...Hi Anthony... I saw your note. Your commands look fine. Is 192.168.0.17 definitely the Time Capsule? Is "Enable file sharing" definitely ticked in Airport Utility, on the Time Capsule under "Disks" ?Martinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-57012039746008978102016-07-04T12:37:04.077+01:002016-07-04T12:37:04.077+01:00Need to see exact syntax to debug that!
But take ...Need to see exact syntax to debug that!<br /><br />But take care to use quotation marks or backslashes if you have special characters (including spaces) in the share name or the mount point nameMartinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-8358815930883033482016-07-04T03:52:10.122+01:002016-07-04T03:52:10.122+01:00Hello Martin, i have try this but i have this erro...Hello Martin, i have try this but i have this error:<br /><br />Retrying with upper case share name<br />mount error(6): No such device or address<br />Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)<br /><br /><br />Any idea???Antonyhttps://www.blogger.com/profile/16031241701405223621noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-4025582061966245862016-02-17T02:53:15.606+00:002016-02-17T02:53:15.606+00:00you rock man, thank you for this entry blog...you rock man, thank you for this entry blog...Toufic KOURBEHhttps://www.blogger.com/profile/07296010155589868634noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-56019443170592611342015-04-02T10:12:22.537+01:002015-04-02T10:12:22.537+01:00Hi Pedro. Yes they will unmount. If you want pers...Hi Pedro. Yes they will unmount. If you want persistence across reboots, you will need to add a new line in /etc/fstab . Just be careful when editing that file! Don't corrupt any existing entries or your system might not boot again. See "man fstab" or https://help.ubuntu.com/community/Fstab Martinhttps://www.blogger.com/profile/03996533690674798085noreply@blogger.comtag:blogger.com,1999:blog-1299820040181797045.post-25561574148977479302015-04-02T02:48:24.944+01:002015-04-02T02:48:24.944+01:00Question, If I reboot, will the share unmount?Question, If I reboot, will the share unmount?Stellarhttps://www.blogger.com/profile/06829997732476527996noreply@blogger.com