Sunday, December 24, 2017

Fiddling with old Time Capsule 1st gen and linux


So I got my hands on an old Apple Time Capsule (1st generation) just to see what it would do.

I wanted to see if it would mount under ubuntu 17.10 with cifs, and the instructions here were pretty useful.

http://blog.martinshouse.com/2014/09/mounting-apple-time-capsule-share-from.html


There was a little snag: It kept giving me Error 112 Host is down.

sudo mount.cifs //1.2.3.4/data -opassword=mypassword,sec=ntlm /mnt/mymountpoint
mount error(112): Host is down


Looking at the dmesg output:
dmesg

[716567.498354] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[716567.500002] CIFS VFS: SMB response too short (35 bytes)
[716567.500038] CIFS VFS: cifs_mount failed w/return code = -112


I needed to specify the SMB version as 1.0 for mount.cifs or it wouldn't work.


sudo mount.cifs //1.2.3.4/data -opassword=mypassword,sec=ntlm,vers=1.0 /mnt/mymountpoint



=============================================


and interestingly, smbclient won't display the actual share until you tell it not to use ntlmv2.

It will connect but it won't display the Disk.

smbclient -L //1.2.3.4
WARNING: The "syslog" option is deprecated
Server does not support EXTENDED_SECURITY but 'client use spnego = yes' and 'client ntlmv2 auth = yes' is set
Anonymous login successful
Domain=[WORKGROUP] OS=[Apple Base Station] Server=[CIFS 4.32]
Enter WORKGROUP\me's password:

Sharename Type Comment
--------- ---- -------
IPC$ IPC


But if we give it an option of 'client ntlmv2 auth=no', then we can see it.


smbclient -L //1.2.3.4 --option='client ntlmv2 auth=no' -U example

smbclient -L //1.2.3.4 --option='client ntlmv2 auth=no' -U example
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\example's password:
Domain=[WORKGROUP] OS=[Apple Base Station] Server=[CIFS 4.32]

Sharename Type Comment
--------- ---- -------
IPC$ IPC
data Disk


And we can see "data".

No comments:

Post a Comment