======Project: CIFS====== A project for HPC I by John Kosty during Fall 2014. =====Objectives===== * Access, read, and write to windows SMB shares =====Prerequisites===== In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved: * https://wiki.ubuntu.com/MountWindowsSharesPermanently * http://midactstech.blogspot.com/2013/09/how-to-mount-windows-cifs-share-on_18.html * https://wiki.debian.org/SAMBAClientSetup * General Command Line Use * Confidence in installing packages * Knowledge of command line editors =====Background===== * CIFS or Common Internet File System, is a way for me to easily reach my SMB shares as it runs the SMB protocol. * CIFS will allow me to mount a share using a single credential. * The reason for doing this is because Windows uses a different file system than linux =====Procedure===== * I begin by install it {{:opus:fall2014:jkosty6:cifs.jpg|}} * This installs almost all of the samba tools as well * Decided I would place the mount points in /mnt and made the directories {{:opus:fall2014:jkosty6:mnt1.jpg|}} * Next I need to specify the way that the share is being mounted * This is specified in /etc/fstab to make it automatic * I added the lines with 192.168.1.253 {{:opus:fall2014:jkosty6:mnt12.jpg|}} - The IP is the IP of the file server the files are stored on, SERVER-FILES - Multimedia and Downloads are the shares the file folders are in - \040 is the way of representing a space in a address - /mnt/abcd specifies the location the share will be mounted on the file system - cifs specifies the mount type - credentials are stored in a separate file /etc/cifspasswd .. really not needed but I like to - file mode and directory mode decide the control over the mount .. 777 may not be the best for production but fine for testing * To mount without restart I do a mount -a * Upon checking the mount locations, I can see it was successful all my "legitimate" movies are there {{:opus:fall2014:jkosty6:mountfinished.jpg|}} * The same can be said for the music {{:opus:fall2014:jkosty6:mountfinished2.jpg|}} * Something always important to check is that the special characters are coming in right. Dont want half you music to not show up {{:opus:fall2014:jkosty6:specialchars1.jpg|}} * Although it shows up, I may have to change settings in subsonic and plex itself later on =====Reflection===== I am sure there are many more efficient ways to do what I have done. The most obvious is to not use windows at all. Unfortunately, this is not an option at the time. I do occasionally experience speed issues with this setup, but I have been unable to find the cause. It's probably a driver issue. =====References===== In performing this project, the following resources were referenced: * https://wiki.ubuntu.com/MountWindowsSharesPermanently * http://midactstech.blogspot.com/2013/09/how-to-mount-windows-cifs-share-on_18.html * https://wiki.debian.org/SAMBAClientSetup