The base name for your external USB device is /dev/sdb. Next, use udevinfo command with /dev/sdb as an argument to get model attribute:
Now, that we have model attribute, we can add it to /etc/udev/rules.d/50-udev-alias.rules by following line:
Reload udev daemon:
Plug-in pendrive and your new base name is: /dev/kingston1
$ udevadm info -a -p /sys/block/sdb/ | grep model
Now, that we have model attribute, we can add it to /etc/udev/rules.d/50-udev-alias.rules by following line:
KERNEL=="sd*[0-9]", ATTRS{model}=="DataTraveler 2.0", OPTIONS="all_partitions", SYMLINK+="kingston%n", GROUP="disk", MODE="0660"
Reload udev daemon:
sh /etc/rc.d/rc.udev force-reload
Plug-in pendrive and your new base name is: /dev/kingston1
Nenhum comentário:
Postar um comentário