SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If sleeping or hibernating, hardware can be detached and reattached as long as it's the same port and interface without causing problems.
To be honest with you, all operating systems kinda behave this way. Windows, for example, will reattach a disconnected network1 device as network2 when reattached even if it's the same hardware as long as the system in in the active/running state.
I tested hotplugging a wireless usb device, same one, on slackware 14.1, and slackware current (as of today, dec 3rd, latest update) multiple times. So despite ReaperX7 speaking on how OS handle hotplugging, and despite what USUARIONUEVO shows in his 70-persistent-net.rules, I cannot reproduce the behavior. My device net dev name is persistent with udev and eudev. I did try different ports, but in my case, they appear to be all on the same bus. However, I think that usuario found this still even plugging into the same port multiple times. If that is the case, then I cannot reproduce his problem at all. I'm glad since I was a little worried that eudev was different for some reason.
Couldn't replicate this either, it's just a single line per interface here.
I may have an idea where it's coming from, you should be able to break it in (/lib/udev) 75-persistent-net-generator.rules
.. by dropping everything that isn't eth0 or wlan0 :
Code:
# device name whitelist
KERNEL!="eth0|wlan0", GOTO="persistent_net_generator_end"
.. and commenting out the renaming part :
Code:
# rename interface if needed
# ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
It's a theory anyway, not sure how this would work if copied from /lib/udev into /etc/udev
As others can't reproduce your issue, we should first make sure that it is not the consequence of a mistake done when upgrading.
In that aim I suggest that you do a fresh installation of Slackwate-current (32-bit or 64-bit) using one of the ISOs provided by Eric Hameleers here and see if the problem persists.
I test this in to a alienbob livecd iso beta 2 (liveslack) fresh boot (no persistency)
If reboot , then the device goes to permanent name. (slackware installed on hard disk or fresh install to original iso)
Then i think its because are added into hardware.db but no work if no reboot.
When start with device plugeed, is added to db and then the rule works when arrives to desktops.
When start with unpluged , then device is added but (i think) not in db , then the rule goes to dinamically
need static, without reboot.
no need plug/unplug ... rmmod/modprobe do the same.
I test with two different usb cards ,different chips , do the same actions.
You might want to consider talking to eudev or the kernel driver team. Also, I'm not sure what other network device you tried, but make sure you tried a device that has a completely different driver stack. There is such a thing called a "usb device #" that always increments on plugging a device--meaning every time you plug something in, it ensures that the device has a unique, fresh instance. ReaperX7 is right in his perspective of the usb subsystem, and that could be an influence eudev to not be persistent, if the information given eudev on the hotplug event is always different. There is something else going on. Personally I think that eudev isn't necessarily the culprit, but could be the driver stack your device uses. Or a failed upgrade. It definitely should not behave this way from the user perspective, so make sure that your eudev configuration is the same as stock and then pursue the driver/eudev interaction.
Last edited by the3dfxdude; 12-05-2015 at 03:23 PM.
I tested things out on my end and I did find that if I'm running the Huge kernel, eudev doesn't need to trigger an event to reload the driver module, but when I use the Generic kernel, each time, eudev triggers a reload event my device changes nodes.
Perhaps this is the issue. Some people that are mobile alot plug/unplug their external usb devices on demand, and could be even suspending their machine mostly. Not having persistent naming in these scenarios is unfriendly, as I never restart (or hibernate), but also never leave everything plugged in always. Also if this worked before where devices weren't continually added with their device number incremented on a live plugging, I would also appreciate that did so again now too. I will check into this, but I'd hope someone has already thought about this before.
For specific devices such as a USB to RS422 cable I add a symlink to the udev rule. That way I can unplug/plug it and the symlink will always be pointing to the right port.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.