LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   udev not creating links according to rules.d (https://www.linuxquestions.org/questions/slackware-14/udev-not-creating-links-according-to-rules-d-4175591692/)

dimm0k 10-18-2016 06:28 PM

udev not creating links according to rules.d
 
Running the latest Slackware64 14.2 with kernel 4.4.24 and am having some trouble getting symlinks created when I plug in several of my external USB drives. below is what my 04-local.rules file reads and is placed in /etc/udev/rules.d. the strange part is the first two drives get recognized and connected with no problems as I can see symlinks for usbhda* and usbhdb* created in /dev/. the latter two drives don't get recognized in similar fashion so I have to manually mount them as root. 'dmesg' shows them being connected, but udev for some reason won't. any suggestions?

Code:

SUBSYSTEMS=="scsi", ATTRS{model}=="00JB-00REA0    ", ATTRS{vendor}=="WDC WD25",
 KERNEL=="sd*", SYMLINK+="usbhda%n"

# Hitachi backup HD
SUBSYSTEMS=="scsi", ATTRS{model}=="HDS722020ALA330 ", ATTRS{vendor}=="Hitachi ",
 KERNEL=="sd*", SYMLINK+="usbhdb%n"

# Seagate 2TB backup HD
SUBSYSTEMS=="scsi", ATTRS{model}=="BUP Slim BL    ", ATTRS{vendor}=="Seagate ",
 KERNEL=="sd*", SYMLINK+="usbhdc%n"

# Seagate 4TB backup HD
SUBSYSTEMS=="scsi", ATTRS{model}=="BUP RD          ", ATTRS{vendor}=="Seagate ",
 KERNEL=="sd*", SYMLINK+="usbhdd%n"


chris.willing 10-18-2016 06:35 PM

Quote:

Originally Posted by dimm0k (Post 5619797)
Running the latest Slackware64 14.2 with kernel 4.4.24 and am having some trouble getting symlinks created when I plug in several of my external USB drives. below is what my 04-local.rules file reads and is placed in /etc/udev/rules.d. the strange part is the first two drives get recognized and connected with no problems as I can see symlinks for usbhda* and usbhdb* created in /dev/. the latter two drives don't get recognized in similar fashion so I have to manually mount them as root. 'dmesg' shows them being connected, but udev for some reason won't. any suggestions?

Code:

SUBSYSTEMS=="scsi", ATTRS{model}=="00JB-00REA0    ", ATTRS{vendor}=="WDC WD25",
 KERNEL=="sd*", SYMLINK+="usbhda%n"

# Hitachi backup HD
SUBSYSTEMS=="scsi", ATTRS{model}=="HDS722020ALA330 ", ATTRS{vendor}=="Hitachi ",
 KERNEL=="sd*", SYMLINK+="usbhdb%n"

# Seagate 2TB backup HD
SUBSYSTEMS=="scsi", ATTRS{model}=="BUP Slim BL    ", ATTRS{vendor}=="Seagate ",
 KERNEL=="sd*", SYMLINK+="usbhdc%n"

# Seagate 4TB backup HD
SUBSYSTEMS=="scsi", ATTRS{model}=="BUP RD          ", ATTRS{vendor}=="Seagate ",
 KERNEL=="sd*", SYMLINK+="usbhdd%n"


Its interesting that the two drives not being processed properly are both Seagates. As a test, how about swapping the order so that the two Seagates are listed first. That may give some indication whether its a counting problem (only first 2 drives are processed, for some reason) or a configuration problem (something about the way the Seagates are being described and/or detected).

chris

dimm0k 10-24-2016 11:12 PM

Quote:

Originally Posted by chris.willing (Post 5619805)
Its interesting that the two drives not being processed properly are both Seagates. As a test, how about swapping the order so that the two Seagates are listed first. That may give some indication whether its a counting problem (only first 2 drives are processed, for some reason) or a configuration problem (something about the way the Seagates are being described and/or detected).

chris

sorry it took so long to get back, but couldn't exactly reboot until just now... I've done as you mentioned, moving both the Seagate drives to the top and it looks like everything works now! very odd. Also tried moving them back and rebooting to verify and it looks to still be working!


All times are GMT -5. The time now is 02:03 PM.