Re: execute script after (auto)mounting external device
- From: Patrick Drechsler <patrick@xxxxxxxxxxxxx>
- Date: Mon, 07 Dec 2009 20:08:27 +0100
Hi,
Currently I'm stuck with
=====================================
## /etc/udev/rules/70-myrules.rules
##
# $ udevadm info -a -p $(udevadm info -q path -n /dev/mapper/truecrypt1)
#
# Udevadm info starts with the device specified by the devpath and then
# walks up the chain of parent devices. It prints for every device
# found, all possible attributes in the udev rules key format.
# A rule to match, can be composed by the attributes of the device
# and the attributes from one single parent device.
#
# looking at device '/devices/virtual/block/dm-0':
# KERNEL=="dm-0"
# SUBSYSTEM=="block"
# DRIVER==""
# ATTR{range}=="1"
# ATTR{ext_range}=="1"
# ATTR{removable}=="0"
# ATTR{ro}=="0"
# ATTR{size}=="6290944"
# ATTR{alignment_offset}=="0"
# ATTR{capability}=="10"
# ATTR{stat}==" 6521 0 7172 5870 1 0
1 0 0 70 5870"
#
ACTION=="add", KERNEL=="dm-[0-9]*", SUBSYSTEM=="block",
ATTR{size}=="6290944", \
RUN+="/usr/bin/touch /home/patrick/test_$(bin/date +%F-%H%M%S).txt"
=====================================
This rule does nothing when I mount the truecrypt partition :-(
Any ideas?
Patrick
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- References:
- execute script after (auto)mounting external device
- From: Patrick Drechsler
- Re: execute script after (auto)mounting external device
- From: Fred Roller
- Re: execute script after (auto)mounting external device
- From: Tom H
- Re: execute script after (auto)mounting external device
- From: Fred Roller
- Re: execute script after (auto)mounting external device
- From: Tom H
- Re: execute script after (auto)mounting external device
- From: Patrick Drechsler
- execute script after (auto)mounting external device
- Prev by Date: Re: execute script after (auto)mounting external device
- Next by Date: Re: ntop username/password
- Previous by thread: Re: execute script after (auto)mounting external device
- Next by thread: Re: execute script after (auto)mounting external device
- Index(es):
Relevant Pages
|