Skip to contentSkip to conversation

Volume Daemon for automatic device mounting

DISCUSSION reflex 2 participants 2 messages Oct 5, 2003 – Oct 14, 2003

lore
Share & tools
lore

reflex

author
#0 lore raw

Greetings all,

I am new to the list so I hope this mail gets through. I am currently writing an application, that can replace the mount -a on system startup and some other really neat things :-)

I wanted to mount my iPod automatically through hotplug. I was not able to do that properly because I never knew where it would appear. Since I also have a USB-Flash-Stick this became a really annoying problem. The thing that bothered me most was that every f***ing windows or Mac OS (even X!) was able to handle that without any problem.

Now the deamon works like this:
You give it a list of devices to scan (/dev/sda, /dev/sdb etc.) Then it scans them either periodically or on SIGUSR1. If a new device was found it detects fstype, volumename, UUID etc and mounts it under /Volumes/whatever or at a fixed point (defined previously).

The reason why I write to this list:
It would be cool if there was some sort of subscription service in hotplug where my program could subscribe and would be informed when a new (storage) device was inserted. That way it would know instantly what device it had to scan. Otherwise I will have to call it from one of the shellscripts and then rescan ALL devices probably causing nasty errormessages in syslog.

The Volume Daemon would also be able to replace devlabel. I will add a feature where you can give UUID's to all filesystems (even to those that do not support it natively)

Regards
Clemens

Signature · 13 lines
Clemens Wacha           [email protected]           ICQ:12620492

proudly running Debian/GNU Linux. See http://www.debian.org


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 8 lines · reflex

The reason why I write to this list:
It would be cool if there was some sort of subscription service in hotplug where my program could subscribe and would be informed when a new (storage) device was inserted. That way it would know instantly what device it had to scan. Otherwise I will have to call it from one of the shellscripts and then rescan ALL devices probably causing nasty errormessages in syslog.

You can drop in a link to your program into /etc/hotplug.d/default that will cause your program to get called for every hotplug event. Or you can use D-BUS to receive all hotplug events (someone is going to write a hotplug call -> D-BUS message program one of these days...)

Hope this helps,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel