LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2016, 06:28 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Rep: Reputation: 56
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"
 
Old 10-18-2016, 06:35 PM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by dimm0k View Post
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
 
1 members found this post helpful.
Old 10-24-2016, 11:12 PM   #3
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by chris.willing View Post
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RKHunter ASCII text in /dev/.udev/rules.d/root.rules metrx Linux - Security 2 03-07-2014 08:37 AM
Creating a Raw Device via Udev Rules trectenw Red Hat 1 04-14-2010 08:24 AM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM
Creating rules for udev wnaLinux Slackware 5 01-03-2008 09:21 AM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration