First of all install cifs-utils smbclient packets, to browse and mount net folders..
So from command line:
apt-get install smbclient cifs-utils
Then you need to create a local folder to map remote folder
mkdir /home/username/example_folder
Then you can mount the remote folder by executing this:
mount -t cifs -o username=remote_pc_username //remote_pc_ip_address/remote_folder_shared_name /home/username/example_folder
Where:
remote_pc_username is the username of remote pc
remote_pc_ip_address is the remote ip address
remote_folder_shared_name is the name that the shared folder has into the local net.
Example 2:
mount -t cifs -o username=pippo //192.168.1.2/shared /home/pluto/example_folder
Terminal will prompts to you the password request....
Give it and then you will have correctly mapped your remote folder into your local example_folder
Bye..
Showing posts with label mounting folder. Show all posts
Showing posts with label mounting folder. Show all posts
Wednesday, October 23, 2013
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.
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 0For a most detailed guide refer to this page
Subscribe to:
Posts (Atom)