Article 6PA7Q udev rule for usb external disk with symlink not working

udev rule for usb external disk with symlink not working

by
lupe
from LinuxQuestions.org on (#6PA7Q)
Hi,

My external USB disk, formatted with one encrypted (LUKS) partition, can be identified by:

Code:# udevadm info /dev/sdc1 | grep ID_SERIAL_SHORT
E: ID_SERIAL_SHORT=15LXUB6ASThe udev rule I created was:

Code:# cat /etc/udev/rules.d/55-usb-data_extended.rules
ENV{ID_SERIAL_SHORT}=="15LXUB6AS", ACTION=="add", SYMLINK+="usb_de"But no /dev/usb_de is created after running

Code:udevadm control --reload
udevadm triggerWhat might be missing?

The complete output of the command is:
Code:# udevadm info /dev/sdc1
calling: info
P: /devices/pci0000:00/0000:00:07.1/0000:2a:00.3/usb4/4-4/4-4:1.0/host9/target9:0:0/9:0:0:0/block/sdc/sdc1
N: sdc1
S: disk/by-id/ata-TOSHIBA_DT01ACA200_15LXUB6AS-part1
S: disk/by-id/wwn-0x5000039ffae94899-part1
S: disk/by-partuuid/fddb416c-0cc2-4250-a062-197548b21645
S: disk/by-path/pci-0000:2a:00.3-usb-0:4:1.0-scsi-0:0:0:0-part1
S: disk/by-uuid/d9d32560-597f-4272-aa46-fab4e22fb5dc
E: DEVLINKS=/dev/disk/by-id/ata-TOSHIBA_DT01ACA200_15LXUB6AS-part1 /dev/disk/by-id/wwn-0x5000039ffae94899-part1 /dev/disk/by-partuuid/fddb416c-0cc2-4250-a062-197548b21645 /dev/disk/by-path/pci-0000:2a:00.3-usb-0:4:1.0-scsi-0:0:0:0-part1 /dev/disk/by-uuid/d9d32560-597f-4272-aa46-fab4e22fb5dc
E: DEVNAME=/dev/sdc1
E: DEVPATH=/devices/pci0000:00/0000:00:07.1/0000:2a:00.3/usb4/4-4/4-4:1.0/host9/target9:0:0/9:0:0:0/block/sdc/sdc1
E: DEVTYPE=partition
E: DISKSEQ=52
E: ID_ATA=1
E: ID_ATA_DOWNLOAD_MICROCODE=1
E: ID_ATA_FEATURE_SET_APM=1
E: ID_ATA_FEATURE_SET_APM_ENABLED=0
E: ID_ATA_FEATURE_SET_HPA=1
E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=1
E: ID_ATA_FEATURE_SET_PUIS=1
E: ID_ATA_FEATURE_SET_PUIS_ENABLED=0
E: ID_ATA_FEATURE_SET_SECURITY=1
E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=328
E: ID_ATA_FEATURE_SET_SMART=1
E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
E: ID_ATA_ROTATION_RATE_RPM=7200
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
E: ID_ATA_WRITE_CACHE=1
E: ID_ATA_WRITE_CACHE_ENABLED=1
E: ID_BUS=ata
E: ID_FS_TYPE=crypto_LUKS
E: ID_FS_USAGE=crypto
E: ID_FS_UUID=d9d32560-597f-4272-aa46-fab4e22fb5dc
E: ID_FS_UUID_ENC=d9d32560-597f-4272-aa46-fab4e22fb5dc
E: ID_FS_VERSION=2
E: ID_MODEL=TOSHIBA_DT01ACA200
E: ID_MODEL_ENC=TOSHIBA\x20DT01ACA200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_PART_ENTRY_DISK=8:32
E: ID_PART_ENTRY_NUMBER=1
E: ID_PART_ENTRY_OFFSET=2048
E: ID_PART_ENTRY_SCHEME=gpt
E: ID_PART_ENTRY_SIZE=3907026944
E: ID_PART_ENTRY_TYPE=0fc63daf-8483-4772-8e79-3d69d8477de4
E: ID_PART_ENTRY_UUID=fddb416c-0cc2-4250-a062-197548b21645
E: ID_PART_TABLE_TYPE=gpt
E: ID_PART_TABLE_UUID=be849eda-b2dc-4e27-b112-3209fd2651a8
E: ID_PATH=pci-0000:2a:00.3-usb-0:4:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_2a_00_3-usb-0_4_1_0-scsi-0_0_0_0
E: ID_REVISION=MX4OABB0
E: ID_SERIAL=TOSHIBA_DT01ACA200_15LXUB6AS
E: ID_SERIAL_SHORT=15LXUB6AS
E: ID_TYPE=disk
E: ID_WWN=0x5000039ffae94899
E: ID_WWN_WITH_EXTENSION=0x5000039ffae94899
E: MAJOR=8
E: MINOR=33
E: PARTN=1
E: SUBSYSTEM=block
E: UDISKS_PARTITION=1
E: UDISKS_PARTITION_ALIGNMENT_OFFSET=0
E: UDISKS_PARTITION_NUMBER=1
E: UDISKS_PARTITION_OFFSET=1048576
E: UDISKS_PARTITION_SCHEME=gpt
E: UDISKS_PARTITION_SIZE=2000397795328
E: UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:07.1/0000:2a:00.3/usb4/4-4/4-4:1.0/host9/target9:0:0/9:0:0:0/block/sdc
E: UDISKS_PARTITION_TYPE=0FC63DAF-8483-4772-8E79-3D69D8477DE4
E: UDISKS_PARTITION_UUID=FDDB416C-0CC2-4250-A062-197548B21645
E: UDISKS_PRESENTATION_NOPOLICY=0
E: USEC_INITIALIZED=1905378793
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments