Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automounting USB-HDD and autostopping nfs/smbd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
twilight
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2003
Posts: 144
Location: Linuxland

PostPosted: Wed Nov 11, 2009 4:53 pm    Post subject: Automounting USB-HDD and autostopping nfs/smbd Reply with quote

Hello Forum,

it has been a long time. :-)

I've got a question. For a customer I need a Linux-System that is as minimalistic as possible.
The only two things it needs to do is offer NFS and SMB-Shares.

These shares reside on a USB_Harddisc which gets removed over nights and weekends for security reasons.

So: The two daemons are sharing the USB-hdd, somebody unplugs the hdd, and I need the two daemons
to stop.

Then somebody re-plugs in the hdd, and I need it to be automounted and the two daemons to get started.

How would I do that? I am sort of blank of ideas :-(

Thanks for any hints in the right direction!

twilight
_________________
- The day Micro$oft produces anything that doens`t suck, is probably the day, they start making vacuum cleaners-

"The Box said: Requires Micro$oft Windows XP or better, so I installed Linux"
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Thu Nov 12, 2009 12:40 am    Post subject: Reply with quote

Well, for starters you want to make sure the disks are not mounted async, right?

Simplest way could be to use ivman, which can be configured to execute commands on specific hal events.

Or just make a script which runs very few seconds to check if the disks are connected or not, and then starts/stops samba accordingly.
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum