#!/bin/bash # This script mounts remote Windows shared drives to the local filesystem. # See unmount.script to unmount drives prior to shutdown. # Assumes you have created the mount points in /mnt. Also assumes you have the file, "credentials" in the # proper location. Credentials file takes the form of username on one line, password on next line, and that's all. # mount server1.domain.tld/bubba$ to /mnt/home mount -t smbfs -o credentials=/home/bubba/.scripts/credentials,uid=bubba,gid=users //192.168.0.2/bubba$ /mnt/h # mount server1.domain.tld/shared to /mnt/shared mount -t smbfs -o credentials=/home/bubba/.scripts/credentials,uid=bubba,gid=users //192.168.0.2/shared /mnt/g # mount server2.domain.tld/sharedir to /mnt/server2 mount -t smbfs -o credentials=/home/bubba/.scripts/credentials,uid=bubba,gid=users //192.168.0.3/sharedir /mnt/server2