To finish pulling notes from NAS://tin/Crashplan/
===== Setup # tested on lubuntu 13.10 desktop edition sudo apt-get install smbclient smbclient -L //server -U user # list shares, theres is a cifs-utils version now sudo apt-get install cifs-utils smbclient //server/share -U user # directly connect sudo mount -t cifs //192.168.0.5/myra ~/myra/ -o username=tin.pham,noexec Settled on, adding user phantom to folder in synology. ===== Initial Connections # see what mounts are available on target system with specified user and verify your password works smbclient -L //192.168.0.5 -U tin.pham Enter tin.pham's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.18] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service () tin.archive Disk tin Disk rsync Disk pham Disk NetBackup Disk System default shared folder myra Disk guest.public Disk Available to all and guests. home Disk home Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.18] Server Comment --------- ------- DISKSTATION Workgroup Master --------- ------- WORKGROUP W7KITCHEN ===== Connect Directly to Troubleshoot # Directly connect smbclient //192.168.0.5/guest.public -U tin.pham smb: \> # Run ls to see results and help to see list of commads smb: \>ls ===== List of mount # Backing Up su - phantom sudo mount -t cifs //192.168.0.5/guest.public /data/guest.public/ -o username=phantom,noexec sudo mount -t cifs //192.168.0.5/myra /data/myra/ -o username=phantom,noexec sudo mount -t cifs //192.168.0.5/pham /data/pham/ -o username=phantom,noexec sudo mount -t cifs //192.168.0.5/rsync /data/rsync/ -o username=rsync,noexec # remember to use different password sudo mount -t cifs //192.168.0.5/tin.archive /data/tin.archive -o username=phantom,noexec # For writing su - tin.pham sudo mount -t cifs //192.168.0.5/guest.public /mnt/guest.public/ -o username=tin.pham,noexec # Torrents # List samba cifs mounts sudo mount -t cifs # List all mounts with more details sudo mount -v
This CIFS Utils and Samba wikipedia article has lots good points,
- CIFS is the extension of the SMB protocol.
- In-kernel CIFS filesystem is generally the preferred method for mounting SMB/CIFS shares on Linux.
- The cifs-utils package is not part of Samba, although they were originally included with it.
apt-cache policy cifs-utils - see version installed