pcmciautils and auto mount?
Steven Scholz
steven.scholz at imc-berlin.de
Tue Jul 12 11:40:17 EDT 2005
Dominik,
>>I tried the same with ide.agent: faking stab and calling the old
>>"/etc/pcmcia/ide start <drive>". But I don't now how to figure out the
>><drive>.
>>
>>But I am not sure if this is the way to go.
>>What's the difference between block.agent and ide.agent?
>
>
> Uh. block.agent possibly does the correct stuff, while ide is wrong. After
> all, the content in sysfs is in /sys/block/ and not /sys/class/ide/ ...
> Where did you find "block.agent"?
~ # pccardctl insert
kernel: Probing IDE interface ide0...
default.hotplug[2069]: arguments (pcmcia) env (DEBUG=yes ACTION=add OLDPWD=/
HOME=/ SEQNUM=604 SOCKET_NO=0 DEVPATH=/devices/platform/at91_cf/0.0
DEVICE_NO=00 SUBSYSTEM=pcmcia PATH=/bin:/sbin:/usr/sbin:/usr/bin
MODALIAS=pcmcia:m0045c0401f04fn00pfn00pa7A954BD9pb91844B1CpcAAC4295Bpd00000000
PHYSDEVBUS=pcmcia PWD=/etc/hotplug)
default.hotplug[2069]: invoke /etc/hotplug/pcmcia.agent ()
pcmcia.agent[2069]: 0 00
pcmcia:m0045c0401f04fn00pfn00pa7A954BD9pb91844B1CpcAAC4295Bpd00000000
/devices/platform/at91_cf/0.0
kernel: hda: SanDisk SDCFB-512, CFA DISK drive
kernel: ide0 at 0xc1852000-0xc1852007,0xc185200e on irq 55
kernel: hda: max request size: 128KiB
kernel: hda: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
kernel: hda: cache flushes not supported
default.hotplug[2122]: arguments (block) env (DEBUG=yes ACTION=add OLDPWD=/
HOME=/ SEQNUM=607 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)
kernel: hda1
kernel: ide-cs: hda: Vcc = 3.3, Vpp = 0.0
default.hotplug[2135]: arguments (block) env (DEBUG=yes ACTION=add OLDPWD=/
HOME=/ SEQNUM=606 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[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)
default.hotplug[2110]: invoke /etc/hotplug/ide.agent ()
default.hotplug[2122]: invoke /etc/hotplug/block.agent ()
default.hotplug[2135]: invoke /etc/hotplug/block.agent ()
So in /etc/hotplug/ide.agent I could use DEVPATH to find out which HDD and
which partitions exist?
--
Steven
More information about the linux-pcmcia
mailing list