USB Port Numbers Changing Randomly
-
I'm using 2 USB drives with my Retropie. The 1st has PSX games and a few movies and the 2nd is just a bunch of movies. Since I've added the 2nd USB drive, sometimes the USB0 and USB1 ports will get swapped. I won't be able to see PSX games and KODI won't be able to play the movies from the library. I just restart the Raspberry Pi until I see the PSX emulator show up in emulation station and then the KODI library works fine as well. It's just that sometimes I'll have to restart the device around 4 times before the USB drives find their right port. I won't unplug the USB drives either, which is just very strange. I'd have figured that the OS would iterate through it's physical ports 1 by 1 and in the same order, assigning port ID's as it went, but I guess that's not the case. Anyone else ever have the problem or know of a way to fix it?
-
@cerealspiller are the drives self powered or on a self powered usb hub?
-
@edmaul69 They are self powered. both are 128G Scandisk thumb drives. One is newer and uses USB 3.0 though.
-
@cerealspiller i could be wrong but my understanding is that the first device to startup is recognized as usb0. The reason it changes all of the time is because a different drive is recognized as starting first, I don't think you can do anything about this. You may try starting up with just one drive and then plug the second in and see if it will recognize them that way.
-
@cerealspiller ok so honestly i would swap the info on the two drives. One drive most likely powers up faster than the other. My guess is the 3.0 ones faster? And for future reference, they are not self powered. They would have to have their own power supply to be self powered.
-
@edmaul69 You're right, I jumped the gun without thinking about it too hard. I was thinking "self powered" = draw power from the usb port.
@TMNTturtlguy I never actually considered plugging them in one at a time. I kept the 1st USB plugged in on boot and then plugged in the 2nd after ES started. Launched KODI and all movies from both USB ports were loaded fine.
Before I added the 2nd USB, I had always made sure the USB with PSX games was plugged in before I powered the device on. I figured that if I didn't, Retropie wouldn't recognize it in time and not load the games. This method works fine!
-
@cerealspiller great! Glad it worked for you and thank you for the update!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.