pcmciautils and auto mount?
Steven Scholz
steven.scholz at imc-berlin.de
Tue Jul 19 09:44:28 EDT 2005
Dominik,
> On Tue, Jul 12, 2005 at 05:40:17PM +0200, Steven Scholz wrote:
>
>>default.hotplug[2110]: arguments (ide) env (DEBUG=yes ACTION=add OLDPWD=/
>>HOME=/ SEQNUM=605 DEVPATH=/devices/ide0/0.0 SUBSYSTEM=ide
>>PATH=/bin:/sbin:/usr/sbin:/usr/bin PHYSDEVBUS=ide PWD=/etc/hotplug)
>
>
>>So in /etc/hotplug/ide.agent I could use DEVPATH to find out which HDD and
>>which partitions exist?
>
> Yes, that is certainly something which you could try to out. Hope it works
> out well.
I think it's much better to use the block.agent for mounting instead of ide.agent:
block.agent gets called for the block device itself _and_ for every partition
with DEVPATH set to something like DEVPATH=/block/hda, DEVPATH=/block/hda/hda1 etc.:
default.hotplug[3415]: arguments (block) env (DEBUG=yes ACTION=add OLDPWD=/
HOME=/ SEQNUM=660 MAJOR=3 DEVPATH=/block/hda SUBSYSTEM=block
PATH=/bin:/sbin:/usr/sbin:/usr/bin MINOR=0 PHYSDEVPATH=/devices/ide0/0.0
PHYSDEVDRIVER=ide-disk PHYSDEVBUS=ide PWD=/etc/hotplug)
default.hotplug[3448]: arguments (block) env (DEBUG=yes ACTION=add OLDPWD=/
HOME=/ SEQNUM=661 MAJOR=3 DEVPATH=/block/hda/hda1 SUBSYSTEM=block
PATH=/bin:/sbin:/usr/sbin:/usr/bin MINOR=1 PHYSDEVPATH=/devices/ide0/0.0
PHYSDEVDRIVER=ide-disk PHYSDEVBUS=ide PWD=/etc/hotplug)
default.hotplug[3464]: arguments (block) env (DEBUG=yes ACTION=add OLDPWD=/
HOME=/ SEQNUM=662 MAJOR=3 DEVPATH=/block/hda/hda2 SUBSYSTEM=block
PATH=/bin:/sbin:/usr/sbin:/usr/bin MINOR=2 PHYSDEVPATH=/devices/ide0/0.0
PHYSDEVDRIVER=ide-disk PHYSDEVBUS=ide PWD=/etc/hotplug)
So I could use this to mount/umount my HDDs.
--
Steven
More information about the linux-pcmcia
mailing list