Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0

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

Old 09-22-2005, 01:22 PM   #2
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,889

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

Then there is
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?


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
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 please yourcompadre Linux - Networking 0 06-03-2003 09:07 PM
Please help! autofs foetus66 Linux - General 1 03-25-2003 07:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:44 PM.

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