To finish pulling notes from NAS://tin/Crashplan/
===== Setup # tested on lubuntu 13.10, 16.04.2 desktop edition #sudo apt-get install smbclient #smbclient -L //server -U user # list shares, theres is a cifs-utils version now named (?) #smbclient //server/share -U user # directly connect sudo apt-get install cifs-utils 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 ===== Troubleshoot == Connect Directly using Samba to see if response is workig # You may need to install smblcient first. # 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 == Try Using Local Directory cd ~ mkdir guest.public sudo mount -t cifs //192.168.0.5/guest.public/ ~/guest.public/ -o username=tin.pham,noexec ===== 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
This is More Personal Just Dumping
Crashplan mounts using user phantom which only has read access,
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=phantom,noexe sudo mount -t cifs //192.168.0.5/tin.archive /data/tin.archive -o username=phantom,noexec
CrashPlan Client
Errors
Got this error on a fresh Ubuntu Desktop 16.05.2 LTS system
sudo mount -t cifs //192.168.0.5/guest.public/ ~/guest.public/ -o username=tin.pham,noexec mount: //192.168.0.5/guest.public/ is write-protected, mounting read-only mount: cannot mount //192.168.0.5/guest.public/ read-only
Answer is that you must instal cifs-utils which mount command then hooks into. Not very clear at all.