Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 741  / 1 Year ago, tue, november 29, 2022, 3:59:15

I've got a network with several machines running Ubuntu 12.04 and one server running Windows7. The server has many shared folders. I've managed to connect to those folders and add them inside nautilus as bookmarks, so they mount whenever I click on them, which is fine. Now I'd like to add those same folder on the desktop, but I can't find a way to do it.


More From » 12.04

 Answers
5

I found no "easy" way to do this (easy= drag and drop kind of solution), but here is a reasonable solution for unprotected (guest) network folders.



Install CFIS



sudo apt-get install cifs-utils


Create the mount directory. You will need a separate directory for each mount.



sudo mkdir /media/windowsshare


Then edit your /etc/fstab file (with root privileges) to add this line:



//servername/sharename  /media/windowsshare  cifs  guest,uid=1000,iocharset=utf8  0  0


Where "guest" indicates you don't need a password to access the share, "uid=1000" makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files, "iocharset=utf8" allows access to files with names in non-English languages.



After you add the entry to /etc/fstab type:



sudo mount -a


This will (re)mount all entries listed in /etc/fstab.



Source: https://wiki.ubuntu.com/MountWindowsSharesPermanently


[#30407] Wednesday, November 30, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
singerrupt

Total Points: 435
Total Questions: 111
Total Answers: 109

Location: Angola
Member since Tue, May 5, 2020
4 Years ago
;