Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
  • Ubuntu 13.10 - Need udev rule to change owner/permissions for /dev/sdb1 (usb pendrive) when plugged into computer.

All combinations tried so far under /etc/udev/rules.d/99-pendrive have failed to achieve result.

$ ls -l /dev/sdb*
brw-rw---- 1 root disk 8, 16 mar  1 15:58 /dev/sdb
brw-rw---- 1 root disk 8, 17 mar  1 15:58 /dev/sdb1

-- media information --

$ udevadm info -q all -n /dev/sdb1

P: /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host12/target12:0:0/12:0:0:0/block/sdb/sdb1
N: sdb1
S: disk/by-id/usb-Generic_Flash_Disk_2C88CA09-0:0-part1
S: disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0-part1
S: disk/by-uuid/BE6ED8126ED7C0F7
E: DEVLINKS=/dev/disk/by-id/usb-Generic_Flash_Disk_2C88CA09-0:0-part1 /dev/disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0-part1 /dev/disk/by-uuid/BE6ED8126ED7C0F7
E: DEVNAME=/dev/sdb1
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host12/target12:0:0/12:0:0:0/block/sdb/sdb1
E: DEVTYPE=partition
E: ID_BUS=usb
E: ID_FS_TYPE=ntfs
E: ID_FS_USAGE=filesystem
E: ID_FS_UUID=BE6ED8126ED7C0F7
E: ID_FS_UUID_ENC=BE6ED8126ED7C0F7
E: ID_INSTANCE=0:0
E: ID_MODEL=Flash_Disk
E: ID_MODEL_ENC=Flash\x20Disk\x20\x20\x20\x20\x20\x20
E: ID_MODEL_ID=6387
E: ID_PART_ENTRY_DISK=8:16
E: ID_PART_ENTRY_FLAGS=0x80
E: ID_PART_ENTRY_NUMBER=1
E: ID_PART_ENTRY_OFFSET=2048
E: ID_PART_ENTRY_SCHEME=dos
E: ID_PART_ENTRY_SIZE=15972352
E: ID_PART_ENTRY_TYPE=0x7
E: ID_PART_TABLE_TYPE=dos
E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_0-scsi-0_0_0_0
E: ID_REVISION=8.07
E: ID_SERIAL=Generic_Flash_Disk_2C88CA09-0:0
E: ID_SERIAL_SHORT=2C88CA09
E: ID_TYPE=disk
E: ID_USB_DRIVER=usb-storage
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=Generic
E: ID_VENDOR_ENC=Generic\x20
E: ID_VENDOR_ID=058f
E: MAJOR=8
E: MINOR=17
E: SUBSYSTEM=block
E: UDISKS_PARTITION=1
E: UDISKS_PARTITION_ALIGNMENT_OFFSET=0
E: UDISKS_PARTITION_FLAGS=boot
E: UDISKS_PARTITION_NUMBER=1
E: UDISKS_PARTITION_OFFSET=1048576
E: UDISKS_PARTITION_SCHEME=mbr
E: UDISKS_PARTITION_SIZE=8177844224
E: UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host12/target12:0:0/12:0:0:0/block/sdb
E: UDISKS_PARTITION_TYPE=0x07
E: UDISKS_PRESENTATION_NOPOLICY=0
E: USEC_INITIALIZED=22314581

Thx in advance.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.