LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2005, 09:28 AM   #1
kemkem42
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Rep: Reputation: 0
autofs


Hi there,

I'm tryin to do some special stuff using autofs/automount.

I access a share via samba on my fileserver.
I want an automounter on my server, mounting partition as needeed.
BUT, I want to execute a script before mounting..

Is that possible ??
and... How ??

Thanks for help..

marc
 
Old 09-22-2005, 01:22 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,153
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
I'm not sure what you are wanting to do. You can make a script to mount shares with.
Code:
mount -t smbfs //machinename/share /mounting/point
If you are using KDE
Code:
kdesu mount -t smbfs //machinename/share /mounting/point
and you will be prompted for root psswrd.

Then there is
LinNeighborhood
smb4k
Konqueror will mount shares with fish://machine/share
There is also the Lisa demon, but I've never had much luck with it.
And you can make an entry in your /etc/fstab to mount a share.

You say auto mount shares. Do you mean as soon as the share turns on you want the linux box to 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs fitteschleiker Slackware 2 06-28-2005 04:17 PM
Autofs tefal Linux - Software 4 07-20-2004 10:58 AM
Using Autofs guygriffiths Linux - Software 1 09-17-2003 10:31 AM
Autofs...help please yourcompadre Linux - Networking 0 06-03-2003 09:07 PM
Please help! autofs foetus66 Linux - General 1 03-25-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:40 AM.

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