LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 20; Arch; Kubuntu; Debian
Posts: 710

Rep: Reputation: 31
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
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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 20; Arch; Kubuntu; Debian
Posts: 710

Original Poster
Rep: Reputation: 31
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 20; Arch; Kubuntu; Debian
Posts: 710

Original Poster
Rep: Reputation: 31
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


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 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


All times are GMT -5. The time now is 06:06 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