Showing posts with label mounting at startup. Show all posts
Showing posts with label mounting at startup. Show all posts

Monday, November 12, 2012

Mounting windows remote folder(already shared in the network))

Suppose you have a directory on a windows machine, shared in the network.

We want to point, and mount, this folder, in read/write mode, on our Debain system.

We need the smbfs and samba-common packages.

apt-get install smbfs samba-common
 
echo 'smbfs' >> /etc/modules
 
mkdir /home/pippo/empty_directory
mount -t smbfs -o username=pippo //windows_machine_ip/remote_and_shared_folder /home/pippo/empty_directory 
or
mount -t smbfs -o username=pippo,password=pluto //windows_machine_ip/remote_and_shared_folder /home/pippo/empty_directory
 
If you want that the folder should be mounted automatically at the system startup edit the /etc/fstab file and
insert the below line:
 
//windows_machine_ip/remote_and_shared_folder /home/pippo/empty_directory smbfs defaults,user,noauto,username=pippo,password=pluto 0 0
 
For a most detailed guide refer to this page