mounting windows share on linux

From WebHostingNeeds.com
Jump to: navigation, search

On windows, we have two shares, work and web, user name and password to access the shares are flashwebhost.


On linux, to mount these shares, i created two folders

mkdir /home/flashwebhost/Desktop/work
mkdir /home/flashwebhost/Desktop/web

To mount the share on boot, i added following to /etc/rc.local

mount -t cifs //192.168.0.1/work -o username=flashwebhost,password=flashwebhost /home/flashwebhost/Desktop/work
mount -t cifs //192.168.0.1/web -o username=flashwebhost,password=flashwebhost /home/flashwebhost/Desktop/web