LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mounting network drive and placing icon permently on desktop (http://www.linuxquestions.org/questions/linux-networking-3/mounting-network-drive-and-placing-icon-permently-on-desktop-798599/)

ITSFISKO 03-29-2010 04:40 AM

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

rizhun 03-29-2010 04:41 AM

How about a sym-link to the directory you mount the FS on?

Code:

man ln

ITSFISKO 03-29-2010 06:10 AM

Quote:

Originally Posted by rizhun (Post 3916450)
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

rizhun 03-29-2010 07:17 AM

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

ITSFISKO 03-29-2010 08:23 AM

hi thanks I am trying to run UBUNTU

rizhun 03-29-2010 08:37 AM

Try and run the steps from my last reply.
Post back if you have any problems.

ITSFISKO 03-30-2010 06:23 AM

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?

rizhun 03-30-2010 06:31 AM

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.

ITSFISKO 03-30-2010 09:40 AM

Quote:

Originally Posted by rizhun (Post 3917807)
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.

ITSFISKO 03-30-2010 09:47 AM

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

rizhun 03-30-2010 09:54 AM

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.

rizhun 03-31-2010 02:28 AM

How are you getting on?
Have you followed all the steps from post #4?

ITSFISKO 03-31-2010 06:36 AM

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

rizhun 03-31-2010 07:41 AM

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.

ITSFISKO 03-31-2010 08:08 AM

Quote:

Originally Posted by rizhun (Post 3919066)
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.


All times are GMT -5. The time now is 10:26 PM.