LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-29-2010, 04:40 AM   #1
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
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
 
Old 03-29-2010, 04:41 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
How about a sym-link to the directory you mount the FS on?

Code:
man ln
 
Old 03-29-2010, 06:10 AM   #3
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rizhun View Post
How about a sym-link to the directory you mount the FS on?

Code:
man ln
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
 
Old 03-29-2010, 07:17 AM   #4
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
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.
 
Old 03-29-2010, 08:23 AM   #5
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
hi thanks I am trying to run UBUNTU
 
Old 03-29-2010, 08:37 AM   #6
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Try and run the steps from my last reply.
Post back if you have any problems.
 
Old 03-30-2010, 06:23 AM   #7
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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?
 
Old 03-30-2010, 06:31 AM   #8
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
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.
 
Old 03-30-2010, 09:40 AM   #9
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rizhun View Post
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.
 
Old 03-30-2010, 09:47 AM   #10
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 03-30-2010, 09:54 AM   #11
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
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:

Code:
mkdir /mnt/winhost
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.
 
Old 03-31-2010, 02:28 AM   #12
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
How are you getting on?
Have you followed all the steps from post #4?
 
Old 03-31-2010, 06:36 AM   #13
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 03-31-2010, 07:41 AM   #14
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
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.
 
Old 03-31-2010, 08:08 AM   #15
ITSFISKO
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rizhun View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No USB drive icon on the desktop em21701 Slackware 2 02-26-2008 10:45 AM
Placing Trash Icon on the Desktop-Ubuntu nthillaiarasu Ubuntu 1 02-06-2008 07:58 PM
K icon change and hard drive mounting ylawayjdp Suse/Novell 5 10-14-2004 03:47 PM
CD icon appears on desktop when cd is put in drive murray_linux Slackware 11 05-17-2004 05:30 PM
Hard drive and cdrom icon on desktop help jbumgar Linux - Newbie 4 07-29-2003 10:57 AM


All times are GMT -5. The time now is 05:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration