Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-29-2010, 04:40 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Rep:
|
mounting network drive and placing icon permently on desktop
Hi I have managed to get my networkdrive to mount on boot to a windoze share. however how can i get it to permently show the mounted icon on the users desktop?
Its so simple a thing that there must be an easy way to do it.
Thanks for any help
|
|
|
|
03-29-2010, 04:41 AM
|
#2
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
How about a sym-link to the directory you mount the FS on?
|
|
|
|
03-29-2010, 06:10 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by rizhun
How about a sym-link to the directory you mount the FS on?
|
I am a complete NEWBE at all this,
I thought i had got the thing to auto allow the share, but now its asking for the default keyring to unlock, before allowing access.
I have to say windoze is a breeze comared to this, but I want to get my head around it......
I need a mapped drive to a share on a windoze box, permently mapped and on the users desktop. if anyone could please help a complete newbe, thanks
|
|
|
|
03-29-2010, 07:17 AM
|
#4
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
Ok,
If you want to mount a drive on a Windows box, you need to create a CIFS mount.
The best way of doing this is using the 'smbfstab'.
You're going to need to open a terminal.
You haven't mentioned which Linux you are using or if you've downloaded Samba, but you did say you've made a successful connection...
So you should have a file called smbfstab, make sure it exists:
Code:
ls -l /etc/samba/smbfstab
You need to edit this file and add the information to access the share:
Code:
sudo gedit /etc/samba/smbfstab
This will take the format:
Code:
//winhost/sharename /local/mount/point cifs username=whatever,password=something
Once you've edited and saved this file, turn on 'smbfs' at boot time:
Code:
sudo chkconfig smbfs on
Then mount your shares:
Code:
sudo /etc/init.d/smbfs start
To make a link on your desktop, you want something like:
Code:
ln -s /path/to/chosen/mount/point ~youusername/Desktop/ShareName
Last edited by rizhun; 03-29-2010 at 07:20 AM.
|
|
|
|
03-29-2010, 08:23 AM
|
#5
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
hi thanks I am trying to run UBUNTU
|
|
|
|
03-29-2010, 08:37 AM
|
#6
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
Try and run the steps from my last reply.
Post back if you have any problems.
|
|
|
|
03-30-2010, 06:23 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
This is driving me nuts, how do I log onto the root?
how do i then open the fstab, for editing
samba cannot be installed on the machine...
there is a samba folder but not populated
I am using UBUNTU perhaps i should just go back to windoze?
|
|
|
|
03-30-2010, 06:31 AM
|
#8
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
Run the following in terminal:
Code:
sudo apt-get update
sudo apt-get install smbfs
This will install smbfs and populate /etc/samba with the smbfstab file.
You should be able to follow my previously posted procedure now.
Quote:
|
This is driving me nuts, how do I log onto the root?
|
When you precede a command with 'sudo' it runs it with root privs.
Good luck.
Last edited by rizhun; 03-30-2010 at 06:32 AM.
|
|
|
|
03-30-2010, 09:40 AM
|
#9
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by rizhun
Run the following in terminal:
Code:
sudo apt-get update
sudo apt-get install smbfs
This will install smbfs and populate /etc/samba with the smbfstab file.
You should be able to follow my previously posted procedure now.
When you precede a command with 'sudo' it runs it with root privs.
Good luck.
|
Ok thanks for your help, I have downloaded and run the samba, and checked it exists.
now for the //winhost/sharename....I assume this is my windows server name and the file share but the local/mountpoint?
and how do i set the username and password for this file share.
thanks again.
|
|
|
|
03-30-2010, 09:47 AM
|
#10
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
sorry just re read your text about passwords,,,,
however i get an enter password for default keyring to unlock when i try the drive error in
usr/lib/gvfs/gvfsd-smb
|
|
|
|
03-30-2010, 09:54 AM
|
#11
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
Quote:
|
now for the //winhost/sharename....I assume this is my windows server name and the file share but the local/mountpoint?
|
Yes, you are correct, 'winhost' is the hostname of the Windows server that contains the share you would like to mount. And 'sharename' is the name of the share you would like to mount on said host.
The bit I've called '/local/mount/point' is a directory on your Ubuntu host where the Windows share will be mounted. You may want to:
Then you can replace '/local/mount/point' with '/mnt/winhost'.
This is the place on your file-system where you will go to see the files on the Windows share.
Quote:
|
how do i set the username and password for this file share.
|
The username and password are actually optional. They are only needed if your Windows host requires a username and password to access the share.
If you do not need a username and password do not include them.
|
|
|
|
03-31-2010, 02:28 AM
|
#12
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
How are you getting on?
Have you followed all the steps from post #4?
|
|
|
|
03-31-2010, 06:36 AM
|
#13
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
link now appears under places, but still cannot get it onto desktop
I am trying to network this;
\\gandalf\sen username=sen.password=sen
Any help gratefully recieved Thanks once again
|
|
|
|
03-31-2010, 07:41 AM
|
#14
|
|
Member
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268
Rep:
|
What mount point did you use?
You need to use the 'ln -s' command from post #4.
If you post the contents of /etc/samba/smbfstab, I can give you the exact command.
|
|
|
|
03-31-2010, 08:08 AM
|
#15
|
|
LQ Newbie
Registered: Mar 2010
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by rizhun
What mount point did you use?
You need to use the 'ln -s' command from post #4.
If you post the contents of /etc/samba/smbfstab, I can give you the exact command.
|
//gandalf/sen /local/mount/point cifs username=SEN,password=SEN
Thanks you have been extremely helpful, Just not used to the commands.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:12 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|