1) First, you need to install smbfs:
$ sudo apt-get install smbfs2) Create a directory to mount to:
$ sudo mkdir /mnt/netdrive3) Mount the remote filesystem:
sudo mount -t cifs //{remote_ip_address}/{windows_share_drive} /mnt/netdrive -o username=YourUsername,password=YourPassword4) Now, if you want this filesytem to mount each time you start Ubuntu add this entry to your /etc/fstab:
//{remote_ip_address}/{windows_share_drive} /mnt/netdrive cifs exec,credentials=/etc/passwdcifs 0 05) Create a file named /etc/passwdcifs and add these entries:
username=YourUsernamepassword=YourPassword6) Secure the permissions on the password file:
$ sudo chmod 600 /etc/passwdcifsNow when you reboot your filesystem should automatically be mounted. It's as easy as that!
share on: facebook



0 comments:
Post a Comment