[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

udev rule for my usb stick



root@cappuccino:/home/msoulier# fdisk -l /dev/sdb

Disk /dev/sdb: 3.8 GiB, 4009754624 bytes, 7831552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc3072e18

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *       48 7831551 7831504  3.8G  b W95 FAT32

root@cappuccino:/home/msoulier# udevadm info -a -p /sys/block/sdb | grep -i
model
    ATTRS{model}=="JD FireFly      "

root@cappuccino:/home/msoulier# cat /etc/udev/rules.d/custom.rules 
SUBSYSTEM=="scsi", ATTRS{model}=="JD FireFly      ", SYMLINK+="Lexar%n"

I restarted udev, plugged in the device, and I don't see any Lexar dev files.

root@cappuccino:/home/msoulier# ls /dev/Lex*
ls: cannot access /dev/Lex*: No such file or directory

I'd appreciate help on debugging this. I'd like a nice, predictable device
name for mounting.

Thanks,
Mike

Attachment: signature.asc
Description: Digital signature


Reply to: