LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-31-2005, 08:31 PM   #1
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Rep: Reputation: 37
permanent mount of win shares


I am using the following commands to mount my windows shared folders:

mount -t smbfs -o username=val,password=val //compname/sharedfolder /mnt

this puts a nice icon on my desktop which I can then open up and use like a regular hd.

How do I make this permanent? In other words, how do I modify the command so that this shared folder is always on my desktop? Everytime I logout I lose it.

Thanks,
 
Old 01-31-2005, 08:35 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
you just need to add an entry in your /etc/fstab file for the share...

i'm not 100% sure what it would look like, but this search should show you the way:

http://www.google.com/linux?hl=en&lr...=Google+Search

this is the second result i got with that search, it seems to explain exactly what you need to do:

http://www.justlinux.com/nhf/Filesys...rmanently.html

i hope this helps... good luck...

Last edited by win32sux; 01-31-2005 at 08:36 PM.
 
Old 01-31-2005, 08:44 PM   #3
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Original Poster
Rep: Reputation: 37
that looks like exactly what I need. Thanks!
 
Old 01-31-2005, 11:52 PM   #4
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 25;CentOS 7; Kubuntu; Debian
Posts: 860

Original Poster
Rep: Reputation: 37
to anyone else: on the link win32sux suggested, everything works except for the part where it says to use chmod to allow non root users to mount. Any ideas? It keeps telling me that only root can mount it.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set permanent read-write permission on shares Randall Slack Linux - Networking 1 10-30-2005 08:54 PM
permanent network mount? Dr Gutiemouth Linux - Networking 5 11-01-2004 09:47 AM
How can I permanent mount an exixting Partition mwj Linux - General 9 01-23-2004 12:48 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
permanent mount jerrod Linux - Newbie 4 04-14-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration